Skip to content
AI MarketingUAE18 November 20266 min read

Building an Arabic WhatsApp chatbot: write the tests first

Collect real customer messages in Gulf Arabic, formal Arabic and Arabizi, write the right answer for each, then build. Eight steps, plus the message bill.

The short answer

Write the tests before you build an Arabic WhatsApp chatbot. Collect real customer messages in Gulf Arabic, formal Arabic, Arabizi and mixed Arabic and English, write the answer you'd accept for each, and set the rule for handing over to a person. Then build, score every group separately and launch only when each passes. Budget for service replies, which Meta now charges beyond 1,000 a month per number.

Write the test sheet before anyone writes a single bot answer. A customer judges a WhatsApp chatbot in Arabic by the one message it gets wrong, and the only way to find that message before they do is to collect it first, from your own inbox, in the way your customers actually type.

Teams that build first and test afterwards end up testing what the bot is good at. The vendor's demo questions are tidy, the developer's are in formal Arabic, and nobody types "kam el price 7ag el big one?" until a real customer does on a Friday night. A test sheet written in advance stops the bot from defining its own success.

The eight steps, in order

  1. 01Export real messages. Pull the last three months of WhatsApp chats and take the customer's first message from each, plus any message where they changed subject. If chats are scattered across staff phones, ask each person to forward 30 recent customer openers to one shared place. It's slower, and it still works. A new business with no history should have three native speakers write openers modelled on competitors' public reviews and their own customer calls.
  2. 02Strip personal details before anyone outside the team sees the file. Remove names, phone numbers, Emirates ID and passport numbers, addresses and anything about health. Building a chatbot dataset from your own chats lists what to remove and why the law's status needs a date on it. If you can't clean a message properly, leave it out.
  3. 03Sort every message by script and by job. The four scripts are Gulf Arabic, formal Modern Standard Arabic, Arabizi and mixed Arabic and English. The jobs are whatever your customers want: price, booking, location, delivery, complaint and so on. If a script group has fewer than 20 messages, have a native speaker write more, modelled closely on the real ones.
  4. 04Write the expected answer for each message, in the language and register you'd accept. For some messages the right answer is "hand over", and that counts as an answer. If two members of staff disagree on what the right answer is, you've found a policy gap, not a bot problem, so settle the policy first.
  5. 05Set the handover rule in writing. Hand over on complaint words in both languages, on any request for a person (أبي أكلم موظف, "agent", "human"), after two failed answers in a row, and on any health, money or legal question. Write the exact message the customer sees at handover, including when a person will reply. If nobody is on shift at night, the bot says when someone will pick it up and the CRM creates a task for the morning.
  6. 06Build, then run the whole sheet. Score each reply as correct, acceptable, wrong or missed handover. Missed handover is the worst score, because it means the bot answered something it should never have touched.
  7. 07Set the pass mark for each script group separately, not as one average. A strong Gulf Arabic score can hide a weak Arabizi score, and the Arabizi customers will find out first.
  8. 08Re-run the full sheet after every change to the knowledge base, the instructions or the model. Add every real failure from live chats to the sheet, so the same mistake can't come back quietly.

What goes on the test sheet?

One row per message and six columns. A spreadsheet is enough, and the examples below are made up.

Test sheet columns, with made-up example entries
ColumnWhat to writeExample
MessageThe exact text, typos and all3ndkom delivery 7ag Ajman?
ScriptGulf Arabic, formal Arabic, Arabizi or mixedArabizi
JobWhat the customer wantsDelivery
Expected answerThe reply you'd accept, or "hand over"Yes, Ajman delivery is next day, with the charge shown
Reply languageThe language and register the reply should useArabic, Gulf register, or Arabizi if that's your policy
ResultCorrect, acceptable, wrong or missed handoverFilled in after each run

Decide one policy before you start: when a customer writes in Arabizi, does the bot reply in Arabizi, in Arabic script or in English? There's no single right answer, but there must be one answer, applied every time.

What do you do when the bot fails a dialect test?

Work out which kind of failure it is before you change anything, because each kind has a different fix. Five kinds cover nearly every case.

  • It misread the question. Add Gulf and Arabizi phrasings of that question to the knowledge base or the examples the bot uses for intent classification, then re-run only that job's rows before the full sheet.
  • It understood but answered in the wrong register, such as formal Arabic to a casual Khaleeji message. Fix the instructions and give the bot example replies written by a native Gulf speaker. Examples change the output more than instructions do.
  • It answered in the wrong language. Set the rule to follow the customer's most recent message, then test the switch in both directions.
  • It answered when it should have handed over. Tighten the handover triggers before anything else, because this is the failure that ends up in a screenshot.
  • It fails a whole script group badly. Don't launch to that group. Route those messages to a person until a retest passes, and ask the vendor whether a different model handles that script better.

If two rounds of fixes don't cure a failure, stop tuning and make a scope decision. Take that job off the bot's list, let it hand over, and revisit it when the model or the vendor changes. A well-built human handoff is part of the product, and customers rarely mind one that's quick.

How much will the WhatsApp side cost?

Budget per message, because that's how Meta bills, and stop assuming service replies are free. Meta has charged for WhatsApp Business Platform messages per delivered message since 1 July 2025. From 1 October 2026 it resumed charges for service messages and for utility messages sent in reply to customers, leaving each business phone number 1,000 free delivered service messages a month.

Say your bot handles 1,500 chats a month and sends four replies in each on average. That's 6,000 service messages, of which 1,000 are free, so 5,000 are charged at the UAE rate on Meta's card. Rates differ by market and category and change over time, so take your figure from Meta's rate card or your provider's invoice rather than a blog, this one included.

Two design choices move the bill. A bot that answers in one complete message instead of three short ones sends fewer messages, and a bot that never sends filler such as "one moment please" as its own message saves a charge on every chat. Add your provider's software fee on top. Estimating your WhatsApp API bill works through the whole sum, and the WhatsApp service message entry explains the category.

When is the bot ready to go live?

When every script group passes its own mark, the handover works at 2 am on a Friday as well as at 11 am on a Tuesday, and one named person owns the test sheet. The third condition is the one that slips. A sheet nobody owns stops growing, and a bot with a frozen sheet gets worse every time a price or a policy changes.

Go live on a slice first: one branch, one campaign or evening hours only. Read every handover for the first two weeks and add each failure to the sheet. If you want the build and the tests handled for you, our marketing automation team works this way, and the buyer's overview of Arabic chatbots covers what to build and what to buy.

Questions people ask

01Can a WhatsApp chatbot reply in Arabic?

Yes. WhatsApp carries Arabic text like any other language, and the quality of the bot's Arabic depends on the model and the knowledge base behind it, not on WhatsApp. Test Gulf Arabic, formal Arabic and Arabizi separately, because a bot can be fluent in one and confused by another.

02Do I need the WhatsApp Business API for an Arabic chatbot?

For a bot that reads your calendar, stock or CRM, you'll be on the WhatsApp Business Platform, usually through a provider. Meta bills per delivered message, and since 1 October 2026 each number gets 1,000 free service messages a month before service replies are charged.

03How many test messages does an Arabic chatbot need?

Enough in each script group to judge that group on its own. A workable start is 20 to 50 real messages per group across Gulf Arabic, formal Arabic, Arabizi and mixed Arabic and English, plus hard cases such as complaints and requests for a person. Add every real failure after launch.

04What should a WhatsApp bot do when it doesn't understand?

Say so in one line, offer a person and say when that person will reply. Guessing is worse than admitting it, because a wrong answer on WhatsApp sits in writing on the customer's phone. Two failed answers in a row should trigger a handover without the customer having to ask.

Find the hours

What could AItake off you?

The free cost review ranks the repetitive work AI could take over by what it would save, in writing within 72 hours.

hello@magnetickeys.comWhatsApp +971 52 529 5577Al Khawaneej, Dubai · United Arab Emirates