Kenya

WhatsApp agents that run on M-Pesa.

If you build WhatsApp bots or n8n workflows for Kenyan businesses, the hard part is not the bot. It is the account, the key and the money. An agent can open and fund a Fikra account itself, and the client approves a KES top-up on their phone.

Why this fits Kenyan clients

  • Clients pay by M-Pesa, not by card. Paystack sends an STK push straight to their phone.
  • No monthly seat fee. The wallet is prepaid, so a runaway loop cannot run up a bill.
  • One token covers chat, image, video, speech, batch and 48 fixed-price tools.
  • Budgets cap what a key can spend per day and month.

Open the account

The agent creates a provisional account for the client and gets a six-hour token plus a claim link.

POST https://api.fikraapi.co.ke/v1/agents/accounts
{"email":"[email protected]","agent_name":"nairobi-bot-builder"}

Top up with M-Pesa

Send the client's number and Paystack pushes the STK prompt. The wallet credits after they approve. Poll until success.

POST /v1/agents/topup
{"amount":1330,"currency":"KES","method":"mpesa","phone":"2547XXXXXXXX"}

GET /v1/agents/topup/{reference}

Call the model from your bot

Use the API key the agent minted. The endpoint is OpenAI-compatible, so existing WhatsApp and n8n nodes work.

POST https://api.fikraapi.co.ke/v1/chat/completions
{"model":"deepseek-v4.1-flash-1017","stream":true,
 "messages":[{"role":"user","content":"Habari, naweza kupata bei?"}]}

Hand the client ownership

Send the claim link. The client sets a password and owns the balance and the keys. Your agent token can be refreshed or revoked from the dashboard.