An AI-powered customer support chatbot built for Khedmah — Oman's trusted digital services platform. The chatbot assists customers with real-time order tracking and delivery support, providing instant, conversational help throughout the delivery experience.
Instant, bilingual, and intelligent — delivering a 24/7 conversational support experience for Oman's digital services platform.

Khedmah needed a scalable way to handle high volumes of customer inquiries regarding digital services, bill payments, and order tracking. The existing human-only support model caused bottlenecks during peak hours, and customers expected instant resolution. The challenge was building an AI agent that could accurately understand bilingual queries (Arabic and English), integrate securely with Khedmah's backend to fetch real-time user data, and seamlessly hand off complex issues to human agents without dropping context.
We engineered a production-grade LLM architecture utilizing specialized intent-recognition models. The system was designed to classify user queries, securely retrieve transaction statuses via API integrations, and generate contextual responses in both English and Arabic. We implemented strict fallback mechanisms and human-in-the-loop escalation to guarantee reliability.
The Khedmah AI Chatbot now autonomously handles a significant portion of tier-1 support queries, drastically reducing average response times and improving overall customer satisfaction. It operates 24/7 across multiple channels, including WhatsApp, providing a frictionless support experience for users.
Core capabilities built into the product to solve real user problems.
Natively understands and responds in both Arabic and English, handling regional dialects and mixed-language queries effectively.
Integrates with Khedmah's backend to instantly retrieve and communicate the status of bill payments, services, and orders.
Automatically detects when a user needs human assistance and seamlessly transfers the full conversation history to a live agent.
Deployed across web, mobile apps, and WhatsApp, ensuring users can get help on their preferred platform.
AI & NLP
Backend
Integrations
Short version: FNA Technology built a production AI customer support chatbot for Khedmah, Oman's digital services platform. It understands Arabic and English natively, looks up bill payments, services and orders in real time through secure backend integrations, runs on WhatsApp, web and mobile, and hands complex cases to a human agent with the full conversation history attached.
| Client | Khedmah, Oman's digital services platform (khedmah.om) |
| Built by | FNA Technology |
| Project type | AI customer support chatbot (LLM + RAG) |
| Year | 2024 |
| Languages | Arabic (including regional dialects) and English, with mixed-language support |
| Channels | WhatsApp Business API, web, mobile apps |
| AI & NLP | Large Language Models, LangChain, vector embeddings, intent-recognition models |
| Backend | Node.js, Python, PostgreSQL |
| Integrations | WhatsApp Business API, Khedmah core systems |
| Escalation | Confidence-based handoff to live agents with full conversation context |
Khedmah is Oman's trusted platform for digital services, bill payments and order tracking. As more customers came onto the platform, the volume of routine questions grew with it. Most of them were variations of "Where is my order?" and "Has my bill been paid?"
The support model was human-only, and that created bottlenecks during peak hours. Customers expected an instant answer, and a queue was the opposite of what a digital-first service should offer. Traditional rule-based chatbots were not a realistic fix. They depend on rigid decision trees, they handle regional Arabic poorly, and they cannot fetch live account data.
The brief for FNA Technology had three parts:
The agent sits as a secure middleware layer between the customer (on WhatsApp, web or mobile) and Khedmah's core systems. Every message follows the same four-step pipeline, which keeps answers accurate and sensitive data protected.
If a request falls below a set confidence threshold, or the customer asks for a person, the agent escalates instead of guessing.
We designed a decoupled architecture so each layer can be improved or scaled on its own, with speed, reliability and data security as the priorities.
The conversational layer combines Large Language Models with LangChain for orchestration. For policy and FAQ questions, we use Retrieval-Augmented Generation (RAG) with vector embeddings. The bot retrieves the answer from Khedmah's verified knowledge base rather than improvising, which keeps responses grounded in approved content.
Account-specific questions never get a static answer. A Node.js and Python backend, with PostgreSQL, runs live queries against Khedmah's core systems. When a customer asks whether a payment went through, the agent authenticates the request, checks the transaction record and returns the actual status. Queries run over encrypted APIs, and data is held only long enough to compose the reply.
Customers prefer to ask for help where they already are. We integrated the agent with the WhatsApp Business API and deployed the same agent across web and mobile apps, so the experience and the logic stay consistent on every channel. If you are planning something similar, see our WhatsApp chatbot development services.
Arabic support was the hardest technical requirement. Many off-the-shelf NLP tools struggle with Arabic syntax, regional dialects and right-to-left context, and customers often switch languages mid-conversation.
We handled this with preprocessing pipelines for Arabic input and by choosing models with strong cross-lingual performance. The agent understands mixed-language queries and replies in the language the customer is using. We apply the same approach to our Arabic chatbot development work for businesses across the GCC.
Support conversations about bills and orders involve sensitive information, so the agent was designed around privacy from the start. It does not store personally identifiable information (PII) or transaction data in its conversational logs. Every data query runs through an encrypted API, and the information is held in memory only long enough to compose the response.
This matters for two reasons. It limits what could be exposed if conversation logs were ever accessed, and it keeps Khedmah's core systems as the single source of truth. The agent reads live data, answers, and moves on, rather than building a second copy of customer records.
A support bot is only as trustworthy as its willingness to step aside. The agent uses a confidence-scoring mechanism on every query. When confidence falls below a predetermined threshold, or when the customer explicitly asks for a person, it triggers a handoff to a live support representative.
The transfer carries the entire conversation history. The human agent sees what was asked, what the bot answered and which details were already provided, so the customer does not have to start again. This is the difference between a chatbot that deflects customers and one that actually resolves their issues.
The agent currently processes text-based interactions. Because many WhatsApp users send voice notes, the architecture was designed so that audio transcription models, such as Whisper, can be added in a future iteration to handle voice queries without redesigning the pipeline.
The chatbot now handles a significant share of tier-1 support queries on its own, which has drastically reduced average response times and improved the overall customer experience.
| Feature | Traditional Rule-Based Bots | FNA AI Support Agent |
|---|---|---|
| Interaction model | Rigid decision trees and keyword matching. | Natural language understanding and context awareness. |
| Language support | Often limited; struggles with dialects. | Arabic (including regional dialects) and English, with mixed-language handling. |
| Data integration | Usually disconnected from core systems. | Real-time API integration for account-specific answers. |
| Knowledge answers | Fixed scripted replies. | RAG over a verified knowledge base. |
| Escalation | Drops context when transferring to humans. | Confidence-based handoff with full conversational history. |
The Khedmah project is one example of how we deliver production AI agents: senior engineers, secure integrations with your existing systems, and a design that knows when to hand over to a human. To see the wider capability, explore our AI chatbot development services and AI agent development.

A comprehensive web platform helping aspiring pilots find and compare DGCA, FAA, and EASA-approved…

An advanced chatbot powered by Large Language Models, capable of context-aware conversations,…

A conversational AI sales assistant trained to engage leads, answer product questions, qualify…
Tell us your business goals and constraints. We will propose the right scope, stack, and timeline.