An Arabic AI assistant must handle dialects, mixed-language messages and right-to-left screens. Here is what to design and test before customers use it.
A customer writes to a company's WhatsApp assistant: marhaba, I need to change my delivery to bukra, same address, and please send the invoice in Arabic. That is three languages, two scripts and one request. A support agent understands it in a second. An Arabic AI assistant built and tested only in English will answer in the wrong language or miss that it is a change request. In the UAE, mixed-language messages are normal, so design for them from day one.
Modern Standard Arabic and dialects are different tasks
Arabic as written in newspapers, contracts and official letters is well covered by current language models. What people type to a company is often different: Gulf, Egyptian, Levantine or other dialects, in Arabic script or in Latin letters with numbers standing in for sounds. Dialect spelling is not standardised, so one word may be written several ways.
Decide what your assistant must understand, and which channels it will live on, since website chat, WhatsApp and email each bring different habits. A bank's formal notices need Modern Standard Arabic. A restaurant's ordering assistant will meet Gulf dialect all day. Collect real messages from your own channels, with permission and personal details removed, and let that sample define the requirement.
Decide the reply language too. Many customers are happy with clear, simple Modern Standard Arabic even when they wrote in dialect, but nobody likes stiff, machine-sounding phrasing. A sensible rule is to reply in the language of the customer's last message unless they ask otherwise.
How should it handle mixed-language messages?
Expect people to switch inside a sentence, especially around product names, addresses, order numbers and technical terms, and put these cases in your tests. The usual trouble spots are these.
- Names and addresses in both scripts, where the same person or street is spelled differently in each.
- Western and Eastern Arabic numerals, mixed date formats, and phone numbers with or without the country code.
- Product codes and email addresses inside Arabic sentences, which can display in a confusing order.
- Transliteration, where Arabic words are typed in Latin letters and must still match the right record.
Where the assistant reads from your ERP, the data itself has to be bilingual. If customer names exist only in English, an Arabic message about them will not match, and fixing master data is often the first practical step. In the assistant projects NST builds, we add Arabic and English name fields and a transliteration column to customer records early, so that matching works in both directions.
Voice notes deserve a mention. Many customers in the Gulf send them instead of typing. Speech-to-text works well on clear Modern Standard Arabic and less well on fast dialect speech with background noise, so test transcripts the same way you test typed messages, and let the assistant ask for confirmation when a transcript is shaky.
Right-to-left screens need real design
Flipping the text direction does not make a chat window, portal or form right-to-left. Layouts should mirror, including direction-implying icons, progress bars, back arrows, tables and menus. A number or Latin word inside an Arabic sentence has to stay in the right place. Fonts must read well at small sizes, and line height usually needs to be larger than for Latin text.
Have a native speaker write the interface text instead of translating word by word, and keep the tone in line with how your company speaks to customers.
An assistant that understands Arabic only when it is formal has learned the paperwork, not the language.
Test with the people who will use it
Build a test set of a few hundred real or realistic messages across languages, dialects and topics, with the expected outcome for each. Run it every time something changes. Have native speakers from different backgrounds review the answers for tone as well as correctness, since a reply that is right and sounds rude is still a failure.
Include the awkward cases: abbreviations, spelling mistakes, voice-note transcripts, angry customers and requests the assistant should not handle. Decide what it does when unsure. Usually the right behaviour is to say so and pass the conversation to a person, with the history attached. Make that handover work in the same language, with an Arabic-speaking agent available during the hours the assistant is live.
A quick first step: take fifty recent customer messages, remove personal details and sort them by language and dialect. You will see at once what the assistant has to cope with. NST builds bilingual assistants connected to ERP data and can turn that sample into a proper test set.