Bilingual Conversational AI

Designing an Arabic Chatbot: Bilingual Conversations in Arabic and English

Star Bit Solutions10 min read

Customers in the UAE switch between Arabic and English, write in Gulf dialect and type Arabic in Latin letters. Here is how to design an Arabic chatbot that keeps up, from language detection and right-to-left layouts to tone, bilingual handover and testing with real customers.

Two chat windows, one in English and one right to left in Arabic, linked by a language switch and a handover to a bilingual agent
Scroll

Key takeaways

  • Keep a conversation language and switch only on clear evidence; short replies, numbers and order references should never flip the bot's language.
  • Detection that only checks the alphabet can mistake Arabizi for English, so train intents on the dialect, Arabizi and mixed phrases in your own transcripts.
  • Understand Gulf and other dialects, reply in warm Modern Standard Arabic, and phrase questions so they do not assume the customer's gender.
  • Right to left means a mirrored layout, isolated numbers and links, and testing on real phones, not just right-aligned text.
  • Route Arabic chats to Arabic-speaking staff with the transcript, and compare fallbacks and satisfaction by language during the pilot.

Ask a customer service team in Dubai or Ajman which language customers write in and the honest answer is "both, often in the same message". A greeting in Arabic, a product name in English, a time typed as a number, and now and then a whole sentence of Arabic spelled in Latin letters.

An Arabic chatbot that only understands textbook Arabic, or a translated copy of an English bot, struggles with that reality. This guide covers the design decisions that make a bilingual chatbot work in the UAE, from language switching and dialect to right-to-left layouts, tone, handover and testing.

Why an Arabic Chatbot Needs More than Translation

Translating your English answers into Arabic is a sensible first step, but it only covers what the bot says. The harder half is what customers say to it. Arabic speakers in the UAE come from across the region, write in their own dialects, mix in English and switch scripts.

A good bilingual design treats Arabic and English as two first-class languages that share one set of intents, flows and policies. The knowledge base holds an approved answer in each language, written by fluent writers rather than pasted from a translation tool, and both versions change together when a policy changes.

Language Detection and Switching Mid-Conversation

Many chatbot platforms detect the language of each message. That is necessary but not sufficient, because many messages carry no language at all: "ok", a thumbs-up, an order number, a phone number or a time such as "8:30". A bot that re-decides the language on every message flips back and forth for no reason.

Make the Conversation Language Sticky

A more reliable pattern keeps a conversation language and changes it only on clear evidence:

  • Set the language from the customer's first meaningful message, or from the page or channel they started on if that message is neutral.
  • Treat short replies, numbers, emojis and button taps as neutral, and keep the current language.
  • Switch when the customer writes a full sentence in the other language, and simply carry on in that language.
  • Offer a visible language button, labeled عربي and English, and remember the choice for signed-in customers.

Mixed Messages and Arabizi

Code-switching is normal. A customer might write ابي احجز table لشخصين ("I want to book a table for two"), with one English word inside an Arabic sentence. The rule of thumb is to follow the language of the sentence, not of individual words, so this stays an Arabic conversation.

Arabizi is harder. It is Arabic written in Latin letters, with digits standing in for sounds English lacks: 3 for ع and 7 for ح are the best known, and other conventions vary by country. "mar7aba, abi a7jiz" (hello, I want to book) is an Arabic sentence, but a detector that only looks at the alphabet may label it English. If your transcripts show customers writing like this, add Arabizi examples to the training phrases for your main intents, and decide whether the bot replies in Arabic script or asks once which language the customer prefers.

Modern Standard Arabic, Gulf Dialect and Arabizi

Modern Standard Arabic (MSA) is the shared written standard of news, government and most formal writing. In chat, customers usually write closer to how they speak: Emirati and wider Gulf Arabic for many, and Egyptian, Levantine and other dialects for the many Arabs from elsewhere who live and work in the UAE. The same request can arrive in several forms.

How it arrivesExampleWhat the bot should do
Modern Standard Arabicأين طلبي؟ (Where is my order?)Understand it and reply in MSA
Gulf dialectوين طلبي؟ (the same question)Recognize dialect words such as وين (where), ابي (I want) and باجر (tomorrow) in training phrases
Arabiziwain talabi?Train with Latin-letter examples, then reply in Arabic script or offer a choice
Mixed Arabic and Englishعندكم delivery لعجمان؟ (Do you deliver to Ajman?)Follow the sentence language and pick up the English word as normal

Which register should the bot reply in? For most UAE businesses, clear and warm MSA is the safest default. Every Arabic reader understands it, it suits a brand voice, and it avoids a bot attempting a dialect that some customers do not share. Understanding dialect matters far more than producing it.

Tip: Normalize Arabic text on both sides before matching it against intents, products and records. The same word can be typed with different forms of alef, with ة or ه at the end, with ى or ي, and with or without diacritics. Numbers arrive as Western digits or Arabic-Indic digits such as ٤٥٢١, so convert both to one form before looking up order 4521.

Have a question about this guide? Ask the engineers who wrote it.

Designing Right-to-Left Chat Interfaces

Arabic is written right to left, but a bilingual chat window has to handle both directions, often in a single bubble. Getting it wrong produces the familiar bugs: a question mark at the wrong end of a sentence, an order number that looks scrambled, a send button on the wrong side.

For web widgets, the World Wide Web Consortium (W3C) guidance on structural markup and right-to-left text in HTML is the best place to start. In practice, check these points:

  • Set the base direction from the conversation language with the dir attribute, not in the stylesheet, and mirror the layout: input box, send button, avatars and timestamps.
  • Give each message bubble dir="auto", so an English reply inside an Arabic conversation still reads correctly.
  • Isolate opposite-direction text such as order numbers, email addresses, links and product codes, as described in the W3C article on inline markup and bidirectional text.
  • Mirror icons that point somewhere, such as back arrows, but not logos, media playback controls or digits. Numbers are still written left to right inside Arabic text.
  • Use logical properties in your CSS (cascading style sheets), start and end rather than left and right, so one stylesheet serves both directions.
  • Choose a font with clear Arabic letterforms at chat sizes, allow a little more line height, and avoid letter-spacing and capital-letter styling. Arabic has no capitals, and extra spacing can break how letters join.
  • Let buttons and quick replies wrap, because Arabic and English labels for the same action rarely have the same length.

On WhatsApp and social inboxes the app handles direction, so the work moves to content: native Arabic templates and quick replies, short button labels, and a check on both iPhone and Android.

Tone, Politeness and Gender-Neutral Phrasing

Courtesy works differently in Arabic customer conversations, and a literal translation of an English script often misses it. A customer who opens with السلام عليكم expects وعليكم السلام in return, not a generic "Hello". Small touches like this tell the customer the bot was designed for them, not converted for them.

  • Return greetings in kind. Map common greetings and courtesies to their proper replies in both languages.
  • Do not assume gender. Arabic addresses men and women differently: "you want" is تريد to a man and تريدين to a woman. Rephrase around it, for example هل نؤكد الحجز؟ (Shall we confirm the booking?).
  • Be warm, not over-familiar. Keep slang and terms of endearment out of replies unless your brand voice genuinely uses them.
  • Confirm commitments with buttons. A courteous reply such as "in sha Allah" (God willing) is not a booking or a payment instruction, so end those flows with an explicit Confirm button.
  • Plan for the calendar. Prepare Ramadan and Eid greetings, changed opening hours and holiday messages in both languages ahead of time, and have a native speaker review them.

Handover to Bilingual Staff

Even a well-trained bot hands some conversations to people: complaints, unusual requests, anything sensitive. Handover is where many bilingual designs quietly fail, because the bot speaks Arabic but the person who picks up the chat does not. Our chatbot buying guide covers handover triggers in general; for two languages, add these rules:

  • Tag every conversation with its language, and route Arabic conversations to agents who read and write Arabic fluently.
  • Show the agent the full transcript in the original language, with the details the bot has already captured, so the customer never repeats themselves.
  • If no Arabic-speaking agent is on shift, say so honestly in Arabic and offer a call-back, rather than switching to English without asking.
  • Give agents saved replies in both languages, written or reviewed by fluent writers, for the situations that come up most.

Testing an Arabic Chatbot with Real Customers

Internal testers tend to write tidy sentences. Customers do not. The most useful test material is your own history: past WhatsApp chats, website inquiries, emails and call notes, with personal details removed.

  1. Build a test set from real messages. For each top intent, collect real phrasings in MSA, Gulf dialect, the other dialects your customers use, Arabizi, mixed Arabic and English, and common typos.
  2. Include the awkward cases. Neutral replies, Arabic-Indic digits, dual forms such as شخصين (two people) and ليلتين (two nights), voice notes and photos. Decide what the bot does with each, even if the answer is a polite request to type or a handover.
  3. Review with native speakers. Ask fluent reviewers, ideally from more than one Arabic-speaking background, to score answers for accuracy, tone and naturalness.
  4. Pilot with a limited audience. Open one channel or one section of your website, and read transcripts daily in both languages.
  5. Compare the languages. Track fallbacks (messages the bot could not handle), handovers and satisfaction separately for Arabic and English. A gap usually points to missing training phrases or weaker content in one language.
  6. Fix, retest and widen. Add the missing phrases and answers, rerun the test set, then open the next channel.

A Worked Example: A Restaurant Booking in Two Languages

Here is how the pieces fit together for a hotel restaurant taking bookings on WhatsApp, a common pattern in hospitality. A guest writes مرحبا، ابي احجز table لشخصين باجر الساعة 8 (Hello, I want to book a table for two tomorrow at 8).

  1. Language. The sentence is Arabic with one English word, so the conversation language is Arabic.
  2. Details. لشخصين gives a party size of two through the dual form, باجر is Gulf dialect for tomorrow, and "8" still needs a time of day.
  3. Clarify, neutrally. The bot replies in MSA, أهلاً بك! هل الحجز الساعة 8 مساءً؟ (Welcome! Is the booking for 8 in the evening?), with two buttons: yes, or another time. The wording suits any guest.
  4. Switch on evidence. The guest answers in a full English sentence: "Yes, and can you arrange a birthday cake?" The bot continues in English.
  5. Hand over the special request. The bot checks availability and confirms the table, and the cake request goes to the restaurant team with the transcript, booking details and language tag. A bilingual host replies in English.
  6. Confirm clearly. The confirmation repeats the date, time and party size in English.

How Star Bit Solutions Can Help

StarBot, our conversational AI chatbot, is built for this mix. It detects Arabic and English in every message, replies in the customer's language and keeps context across turns through its dialogue manager. Its answers, guided flows and handover messages are maintained in both languages from one knowledge base. Intent detection is trained on your own phrases and customer vocabulary, so the way your customers really write becomes training data. Handover routes conversations by topic, language, channel and business hours, with the full transcript passed to the agent.

We start by building the knowledge base with you in Arabic and English, then pilot on one channel, such as your website or WhatsApp, and review transcripts together before scaling up. StarBot can also look up orders in StarBiz or in Odoo through OdooStar, and check calendars for bookings. To see it answer your own questions in both languages, book a free consultation, call +971 55 973 4524 or email [email protected].

Star Bit Solutions logo
Written by the Star Bit Solutions team

Star Bit Solutions is a software company in Ajman, UAE, founded in 2014. We implement and customize Odoo Enterprise and Odoo Community, and build StarBiz (AI-driven ERP), StarHub (life super app), StarBot (conversational AI), StarLearn (adaptive learning) and StarSense (AI and IoT platform). About us

StarBot by Star Bit Solutions

Answer Customers in Arabic and English, the Way They Write.

Send us your most common customer questions in Arabic and English, and we will build a free StarBot demo around them and walk you through it.

Not Sure Which Solution Fits?

Tell us about your business and we will recommend the right starting point, free of charge.