Swahili chatbot quality: testing customer support in local languages

For companies4 min read

A Swahili chatbot that handles customer support has to understand real messages, answer correctly and sound natural to a native speaker. Public benchmarks suggest this is harder than it is in English. Here is a test plan built on your own tickets and graded by native speakers.

What public benchmarks suggest about local-language quality

IrokoBench tested 10 open and six proprietary models on tasks in 17 low-resource African languages. Its authors report that performance is much lower than on high-resource languages such as English and French, and that proprietary models outperformed open ones. The best open model, Gemma 2 27B, reached 63% of GPT-4o's performance.

Source: IrokoBench: A New Benchmark for African Languages in the Age of Large Language Models (arXiv:2406.03368)(opens in a new tab)

The same study found that translating test sets into English before evaluation narrowed the gap for larger English-centric models. For a support bot this suggests a design choice to test: translate in and out, or answer directly. Neither is always better, and your own data will tell you.

Check the paper's language list before citing it for Swahili specifically. Belebele, a reading comprehension set in 122 language variants, is another place to look for broad language coverage.

Source: The Belebele Benchmark: a Parallel Reading Comprehension Dataset in 122 Language Variants (arXiv:2308.16884)(opens in a new tab)

Start from real tickets

Public benchmarks do not contain your refund rules or your product names. Pull 300 or so real support messages in the language, remove personal data and sort them by topic: billing, delivery, account access, complaints, questions about the product. Weight the set toward the topics that cost you most.

Include the messy ones. Real customers write short, misspelt, angry or mixed-language messages. A clean test set made of textbook sentences will flatter your bot.

Who should grade a Swahili chatbot

Use native speakers with some customer service background, not translators alone. A translator can tell whether the meaning matches. A support agent can tell whether the tone would calm a customer or annoy one, and whether the reply follows your policy.

CheckGraderExample failure
MeaningNative speakerReply answers a different question
FluencyNative speakerWord-for-word translation from English
RegisterNative speaker, support experienceToo formal or too casual for the customer
PolicyYour support leadPromises a refund that policy does not allow
SafetyNative speaker plus safety leadRepeats an insult or shares private data

Grade with error types, not just a score

A large study of machine translation found that ranking systems with error-by-error marking by professional translators, who had full document context, differed substantially from the ranking produced by crowd workers. The lesson for a support bot is to ask graders to mark each error and its type, and not just to give an overall impression.

Source: Experts, Errors, and Context: A Large-Scale Study of Human Evaluation for Machine Translation (arXiv:2104.14478)(opens in a new tab)

  • Wrong meaning: the reply misreads the customer.
  • Wrong fact: it states a policy or price incorrectly.
  • Unnatural wording: understandable but clearly foreign.
  • Wrong register: tone does not fit the situation.
  • Missing step: it does not tell the customer what to do next.
  • Unsafe: it leaks data or encourages harm.

Test escalation and refusal

A support bot must know when to hand over to a person. Write test messages where the right behaviour is to escalate: a complaint about fraud, a safety issue, a customer in distress. Ask graders to mark whether the bot recognised the case and whether the handover message was clear in the local language.

A first test run in five steps

  1. Sample 300 tickets and anonymise them.
  2. Have a native-speaking agent write the ideal reply to a third of them as a reference.
  3. Run the bot on all 300 and keep the full transcripts.
  4. Have two graders mark errors by type, and a lead settle disagreements.
  5. Report error counts per topic and list the five most frequent mistakes with examples.

Repeat the run whenever you change the model, the prompt or the knowledge base, and keep the grader guidelines under version control so scores can be compared over time.

Watch cost and speed as well

Answers that are correct but slow lose customers. Record response time and the number of turns needed to solve each case, and compare the bot with a human agent on the same tickets. If the bot needs five turns where an agent needs two, the graders' notes on missing steps will show why. Also record how often customers ask for a human, since that is the clearest behavioural signal of a weak reply.

Finally, plan updates. Product names, prices and rules change, and a bot trained or prompted last quarter may now give old information. Keep a list of facts that change and re-test those items first after every update.

Curatrain vets linguists and other experts with graded skill tests, and companies get a shortlist of experts who passed the tests their project needs, with confirmed resumes. You approve each match through a secure link.