Call Center Systems — Africa
How to Build an AI Voice Agent in Kenya (2026)
A developer guide to building an AI voice agent in Kenya with a programmable voice API and an LLM - number, webhook, TTS, DTMF and streaming.
An AI voice agent is a program that answers or places phone calls and holds a real spoken conversation, driven by your own AI or LLM. To build one in Kenya you need three things: a local phone number from a programmable voice API, a webhook that returns voice actions (speak, listen, stream), and an LLM that decides what to say next. You can ship a working turn-based agent in an afternoon.
If you have engineers, you do not have to buy a closed AI-receptionist product. You can build exactly the agent you want on a programmable voice API and keep control of the model, the prompts and the data. This guide uses SautiKit as the voice layer because it provisions local Kenyan numbers over an API and bills per second in KES. Prefer to buy? See our buyer guide to the best AI call center software in Kenya.
Note: numbers provisioned this way are not configured for emergency (999/112) calling. Do not build life-safety or emergency services on them.
npm i @sautikit/node. Auth: Authorization: Bearer $SAUTIKIT_API_KEY. Base URL https://api.sautikit.com, version v1.SautiKit hits your webhook, you return a JSON envelope of voice actions, and the caller response comes back to your callback. The verbs you need: say (text-to-speech), play (audio file), getDigits (collect DTMF, optional nested prompt), record, dial, hangup. The webhook always returns an actions array:
{
"actions": [
{ "say": { "text": "Karibu HelloDuty. How can I help you today?" } },
{ "getDigits": { "numDigits": 1, "say": { "text": "Press 1 for sales, 2 for support." } } }
]
}Placing or handling a call starts with POST /v1/calls, which takes from, to (an array) and webhook_url:
import { SautiKit } from '@sautikit/node';
const sk = new SautiKit({ apiKey: process.env.SAUTIKIT_API_KEY });
await sk.calls.create({
from: '+254200000001',
to: ['+254712345678'],
webhook_url: 'https://your-app.co.ke/voice/incoming'
});Your webhook turns the caller input into an LLM decision, then returns the next action:
app.post('/voice/incoming', async (req, res) => {
const digit = req.body.digits;
if (!digit) {
return res.json({ actions: [
{ say: { text: 'Karibu. Press 1 for account balance, 2 to talk to an agent.' } },
{ getDigits: { numDigits: 1 } }
]});
}
const reply = await myLLM.respond({ intent: digit });
return res.json({ actions: [ { say: { text: reply } }, { hangup: {} } ] });
});That is a working voice agent: it answers a Kenyan number, prompts in English or Swahili, routes the caller choice through your LLM, and speaks the answer. Swap getDigits for record (plus your own transcription) when you want callers to speak instead of press.
When you want the caller to just talk, use the stream verb to fork live call audio to your WebSocket:
{ "actions": [ { "stream": { "url": "wss://your-app.co.ke/media" } } ] }Your socket receives caller audio, you run STT, pass text to your LLM, synthesise the reply and stream audio back. One firm requirement from the docs: the WebSocket must advertise the audio.drachtio.org subprotocol or the media handshake fails. The exact per-message audio format and full parameter set for stream are not fully published, so confirm them against the live voice-actions docs before building the media path.
You claim a local Kenyan number from the voice API (about KES 100/month on SautiKit), then set its webhook to your app. Every inbound call then hits your webhook and your agent answers. No SIM cards, no PBX, no porting.
A low-volume AI line can cost a few hundred shillings a month plus your model usage. Re-verify SautiKit figures on the pricing page; rates are ex-VAT and can change.
Build when you need a custom flow, want to own the model and data, or are embedding voice in your own product. If you want agent desktops, queueing, QA, CRM and reporting out of the box, buy a managed AI contact centre - HelloDuty gives you the AI receptionist plus the human-agent operation on one Kenyan platform, priced in KES.
When your agent hands a caller to a person, that person needs a desk to pick up from. SautiDesk's browser-based call centre software, from the HelloDuty team, is one option.
What is an AI voice agent? A program that answers or places calls and holds a spoken conversation, driven by an LLM - greeting callers, understanding intent (DTMF, speech or streaming), taking actions, and responding in English, Swahili or Sheng.
Can I build a voice AI agent in Kenya? Yes. With a programmable voice API such as SautiKit you provision a local number, point it at a webhook, and return voice actions (say, getDigits, stream) driven by your own LLM.
Do I need a voice API, or can I use my normal SIM? You need a programmable voice API. A normal SIM cannot receive webhooks, return voice actions, stream audio or bill per second.
How much does it cost to run a self-built AI voice agent? On SautiKit, roughly KES 100/month per number, ~KES 0.05/second outbound, free inbound, ~KES 0.50/minute recording, plus your own LLM and speech costs.
Turn-based or real-time streaming - which should I build? Start turn-based; add the stream verb for full-duplex conversation only where a flow needs it.
Is a self-built AI voice agent suitable for emergency lines? No. Programmable-voice numbers are not configured for emergency calling.
Should I build or just buy? Build for a custom flow or to own the model and data. Buy a managed AI contact centre like HelloDuty for agents, queueing, QA, CRM and reporting.
Provision a Kenyan number, wire a webhook, bring your own LLM. Start building on SautiKit. Prefer a managed AI contact centre? See HelloDuty.

Are you ready to get started? Sign up here for a demo of the HelloDuty CRM and customer engagement automation software now.

Plan, engage, and analyse with ease. Transform your customer relationship with an all-in-one platform.
