Contact Centres

Reply by voice in Kinyarwanda and Oshiwambo

Workflow purpose

This guide demonstrates how to use Proto's AI agent to hold a conversation by voice in Kinyarwanda or Oshiwambo – the person speaks a question into WhatsApp or Webchat, and the AI agent answers with a voice message in the same language.

The workflow turns on speech-to-text and text-to-speech on the AI agent's Voice tab, lets the person choose their language, and answers questions from a knowledge base written in that language. Replies are written to be heard rather than read: short sentences, numbers in words, one idea at a time. On Webchat, people can also talk to the AI agent hands-free.

Many people are more comfortable speaking their home language than reading or typing it, and some can't read at all. A spoken answer in Kinyarwanda or Oshiwambo reaches people that a written English FAQ never will.

Who can benefit from this guide:

  • Central banks and financial regulators running public education and complaints services
  • Government agencies serving citizens in Rwanda and Namibia
  • Mobile money providers and banks reaching first-time customers
  • Health services sharing guidance with patients and carers
  • Any organisation serving people with low literacy

Reply by voice

This workflow answers voice messages with spoken replies in Kinyarwanda and Oshiwambo, on WhatsApp and Webchat. See how to build a voice reply workflow.

Just starting with the platform?
For initial setup of your AI agent – including workspace setup, agent training, and channel deployment – please start here. This workflow guide assumes your AI agent is set up and ready for more advanced configurations.

1. Create a trigger

Start the flow when a person asks a question about your services.

  • Navigate to the Workflows tab in the AI agent settings.
  • Click New workflow and select Message received as the Workflow type.
  • Name the trigger (e.g. “Ask a Question”) and add a short description (e.g. “Triggers when the person asks a general question about money, banks, mobile money, fees, savings, fake notes or how to complain.”).
  • Add training phrases in every language you serve (e.g. “How do I complain about my bank”, “Is this note real”, “How do I save money”). Ask native speakers to write the Kinyarwanda and Oshiwambo phrases the way people actually say them, including the short, informal versions that come out of a voice message transcript.

A voice message is transcribed before the AI agent reads it, so the same trigger works for typed and spoken questions.

2. Turn on voice for the AI agent

Switch on listening and speaking for the whole AI agent.

On the AI agent’s Agent tab, add Kinyarwanda and Oshiwambo to Languages and choose your Default language. Then open the Voice tab:

Setting Value
Enable speech-to-text recognition On, with Kinyarwanda and Oshiwambo selected under Languages
Enable text-to-speech generation On
Languages (text-to-speech) Kinyarwanda and Oshiwambo
Gender Male or Female – the voice people will hear
Include audio transcript On – voice and text are sent as two separate messages

Kinyarwanda and Oshiwambo replies use Proto’s own voice models, built for these languages. Text-to-speech also works in other languages with a general-purpose voice, so you can add English or French to the same lists if your audience needs them.

Keep Include audio transcript on unless you have a reason not to. The written copy lets a person check a number or a name later, and gives family members who read a way to help.

Then set up each channel:

  • WhatsApp – people record voice notes as usual. No extra setting is needed.
  • Webchat – on the AI agent’s Publish tab, open your Webchat channel and, under Voice and audio, turn on Enable audio messaging (people can record a message) and Enable message playback (people can play the AI agent’s messages aloud).

3. Let the person choose their language

Confirm the language before answering, so the reply is spoken in the right one.

Edit the default Chat started workflow. Add a Send message with the greeting written in all three languages, and quick reply options: Ikinyarwanda | Oshiwambo | English.

Under a Message received sub-trigger for each option, add a Switch language action set to that language, then a Send message confirming the choice in it. Include training phrases for the spoken name of each language, so a voice reply of “Kinyarwanda” works as well as a tap.

Add a separate workflow (training phrases: change language, speak Oshiwambo, another language) with the same quick replies, so people can switch at any point. Every Send message has a version per language, so write each message in Kinyarwanda, Oshiwambo and English – the AI agent sends the one that matches the conversation’s language.

4. Know when the AI agent speaks

Plan the conversation around what is spoken and what stays as text.

  • The AI agent replies by voice only when the person’s latest message was a voice message. If they type, the reply is text. This follows the person’s own choice message by message.
  • Send message text and knowledge base answers are spoken. Ask survey questions, carousels and other actions are sent as text.
  • Quick replies still appear as buttons under a voice reply, so people can tap instead of speaking.

So that people who can’t read don’t hit a wall of text, keep Ask survey to the details you really need, and ask for them with a spoken Send message first: “I’ll ask you for your phone number next. You can say it or type it.”

5. Write replies that sound right when spoken

Write each message for the ear, not the eye.

Text-to-speech reads exactly what you write. Rewrite messages before they go into a voice agent:

Written for reading Written for listening
“Fees: RWF 500 (≤ RWF 10,000).” “The fee is five hundred francs for amounts up to ten thousand francs.”
“Call 1234 / visit www.example.org/complaints” “You can call one, two, three, four. The number is also in the written message.”
“Pls bring ID, proof of addr., & acc. no.” “Please bring three things. Your ID card. A letter showing where you live. And your account number.”
A list of six options Two or three options, then “Do you want to hear more?”
  • Keep sentences under 15 words, with one idea in each.
  • Write numbers, dates and amounts out in words. Keep the digits in the written transcript only where a person may need to copy them.
  • Avoid symbols, abbreviations, brackets and links – they’re read out or skipped.
  • Repeat the key fact at the end: “So, five hundred francs.”
  • Ask a native speaker to listen to every message in the Voice language, not just read it. Text that reads well can sound wrong when spoken.

6. Answer from a knowledge base in the language

Give the AI agent approved answers in Kinyarwanda and Oshiwambo, not only in English.

On the AI agent’s Knowledge tab, open Knowledge base and add your guidance in each language with Upload file, Add URL or Paste snippet. Turn on Large language model under Personalization on the Agent tab.

Under the trigger from Step 1, add an LLM Processing action:

  • Input: {_user_input}
  • Temperature: 0
  • System Prompt: “Answer in the language of the question, only from the knowledge provided. Your answer will be read aloud. Use under 60 words, short sentences and everyday words. Write numbers in words. Do not use lists, symbols or links. If the knowledge does not answer the question, say so and offer to connect the person to our team.”
  • Turn on Use Knowledge info to provide more context
  • Resulting variable: spoken_answer

Then add a Send message with {spoken_answer} and quick reply options: Another question | Talk to a person. Under a sub-trigger for Talk to a person, add a Jump to Step 8.

Where your guidance only exists in English, translate the most-asked topics first – fees, fraud, complaints – and have the translations checked before uploading.

7. Offer hands-free voice conversations in Webchat

Let people talk to the AI agent like a phone call, without tapping record each time.

On your Webchat channel, under Voice and audio, turn on Enable voice conversations. The option is available only when both speech-to-text and text-to-speech are on in the Voice tab, and only on the Webchat widget – full-screen Webchat doesn’t offer it.

People then see two tabs in the widget: Chat and Voice. In Voice, they speak to start, and the widget shows when the AI agent is Listening, Thinking… and Speaking. They can choose the language they’ll speak in. The browser asks for microphone access first, and voice mode isn’t available while a live agent is handling the conversation.

Hands-free conversation works best for short questions and answers. Keep flows that collect details in the Chat tab.

8. Hand over to a live agent

Route anything the AI agent can’t answer to your team, with the transcript attached.

Add a Live agent handoff action, assigned to the team that answers public enquiries. Turn on Live agent availability check, and under If there is no live agent online, add a spoken Send message: “Our team is not available now. We are open Monday to Friday, from eight in the morning to five in the afternoon. Please send your question again then.”

Live agents pick up the full conversation in the Inbox, including the AI agent’s earlier replies. If they don’t speak the person’s language, they can use live translation in the Inbox. Text-to-speech applies to the AI agent’s own replies, so live agents answer in text – ask them to keep replies short and simple, in everyday words.

9. Test the flow

Validate every path before going live using the AI agent tester side panel.

  • Type questions in Kinyarwanda, Oshiwambo and English and check the right trigger fires and spoken_answer stays under 60 words with numbers in words.
  • Switch language mid-conversation and confirm the next Send message uses the new language’s version.
  • Ask a question the knowledge base doesn’t cover and confirm the Talk to a person path reaches the handoff.
  • The tester doesn’t record or play audio. Test voice on a real phone over WhatsApp and in Webchat: send a voice note in each language and check the spoken reply and transcript, then type a message and confirm the reply is text. Try a hands-free conversation in the Webchat Voice tab with a native speaker listening.
  • Build and test in an undeployed version – Duplicate the live version first – then Deploy it once every path passes.

Finalise the AI agent deployment by configuring your preferred channels and languages.