Languages
How assistants reply in English, Kiswahili and mixed messages, and what the assistant's language setting does.
Customers in East Africa often switch between English and Kiswahili, sometimes in one sentence. BotBaseX assistants are built for this. They reply in the language the person is writing in, whatever language your documents or website use.
#The short version
- A customer writes in Kiswahili: the assistant answers in Kiswahili.
- A customer writes in English: the assistant answers in English.
- A customer switches language part-way: the assistant switches with them.
- Your documents can be in either language. The answer follows the customer, not the document.
#How the reply language is chosen
The assistant follows these rules, in order:
- Reply in the language the customer is writing in right now.
- If the customer asks for a language, switch at once. For example "Please answer in English" or "Naomba unijibu kwa Kiswahili".
- If the customer changes language, change with them from that message onwards.
- Short messages keep the current language. "Ok", "sawa", "asante", "yes" or an emoji continue in the language already used in the conversation.
- Only when nothing else tells it the language, it uses the assistant's main language from your settings.
It never mixes two languages inside one reply, and it does not translate what the customer wrote unless asked.
#Mixed messages
A message like "Habari, how much is delivery to Arusha?" is common. The assistant replies in the main language of the message and answers the question fully. Behind the scenes, Kiswahili and mixed questions are also searched in English, so a Kiswahili question can find the answer in an English price list.
#Names and numbers stay the same
Product names, personal names, prices, units and technical terms are kept as they are. "Samsung Galaxy A15" and "TZS 450,000" are not translated.
#Example
Your price list is in English. A customer writes:
Customer: Mambo! Mnauza mashine za kufulia?
Assistant: Poa! Ndiyo, tunauza mashine za kufulia. Tuna LG 7kg kwa TZS 850,000
na Samsung 8kg kwa TZS 1,050,000. Ungependa ipi?
Customer: What about delivery to Moshi?
Assistant: We deliver to Moshi within 2 to 3 days. Delivery costs TZS 15,000.The facts come from your English price list each time. Only the language of the reply changes.
#The assistant's language setting
Every assistant has a Language setting (shown as Main language in Settings). You choose it in the builder's personality step, or later in Settings with Edit.
The choices are English, Swahili, French, Arabic and Portuguese.
The setting is a fallback, not a lock. It is used:
- when a message does not show a clear language (for example the very first message is only "👋"), and
- for the rare fallback message when the assistant could not put an answer together, such as "Samahani — sijaweza kuunda jibu kwa swali hilo…" for a Swahili assistant.
Visitors can still write in English or Kiswahili and get a reply in their language, whatever the setting.
#Forcing one language
If you need the assistant to always reply in a single language, say so in its instructions, for example:
Always reply in Kiswahili, even if the customer writes in English.Your instructions take priority over the automatic language choice. Use this carefully: most customers prefer an answer in the language they wrote in.
#Tips for bilingual businesses
- You do not need two copies of every document. One clear document in either language is enough.
- Write the welcome message in the language most of your visitors use, or in both: "Karibu! Welcome! Uliza swali lolote / Ask me anything."
- If your guidelines say "Always greet in Swahili first", the assistant follows that and then continues in the customer's language.
- Test in both languages in Try it before going live. See Testing your assistant.