Back to Blog
WhatsApp and M-Pesa AI Agents: What Kenyan Businesses Can Automate Now
AI

WhatsApp and M-Pesa AI Agents: What Kenyan Businesses Can Automate Now

October 11, 2026GashoTech Team

WhatsApp and M-Pesa AI Agents: What Kenyan Businesses Can Automate Now



The evening rush at a Nairobi shop no longer happens in the shop. It happens on a phone screen, hours after the shutters come down. Someone wants to know if the three-seater sofa is still available. Someone else paid and wants confirmation. A delivery rider needs the gate code. The owner answers between dinner and sleep, and the same questions arrive again in the morning.

That nightly backlog is the reason Kenyan businesses keep looking at AI agents. WhatsApp is already where customers are, and M-Pesa is already how they pay. The gap sits everywhere in between: taking the order, confirming the money, updating the records, and knowing when to hand a real problem to a real person. Some of that gap can be closed now, with tools that exist and work. Some of it still cannot.

What WhatsApp Business Can Actually Handle



Start with the workflows that are repetitive, text-based, and easy to verify. Order taking is the clearest one. A customer sends a product name, the agent checks availability against the stock list, quotes the price, and builds the order in the chat. Nothing exotic about it. The value is that it happens at 11pm and again at 6am without the owner touching the phone.

Frequently asked questions come next: delivery zones, working hours, whether an item arrives in other colours, whether a deposit is required. A well-built agent answers these from the business's own documents and price list instead of from guesswork.

Appointment booking fits well too. Salons, clinics, repair shops, and consultancies all run on slots. The agent checks the calendar, offers available times, books the slot, and sends a reminder the day before. Confirmation and rescheduling messages are where most no-shows get reduced.

Support triage is the fourth common case. The agent sorts incoming messages into buckets like order status, delivery problem, payment issue, and general enquiry, answers what it can, and passes the rest to a staff member with the conversation history attached. The handoff matters more than the automation. A customer who has to repeat themselves after a transfer will blame the business, not the software.

M-Pesa Workflows Worth Automating



Money is where automation earns its keep, and where it has to be careful. The most useful workflows sit around the payment rather than inside it.

Payment confirmation is the obvious one. When a customer pays, an agent listening for the official M-Pesa callback can match the transaction to the order and reply on WhatsApp with a receipt. Few people ask "did you receive my money?" when the answer arrives before the question does.

Reconciliation follows the same logic at the end of the working day. Matching pay bill or till transactions to orders is dull, error-prone work that eats an hour every evening. An agent can do the matching, list what it could not match, and export a clean summary. The unmatched items are exactly the ones that need a person.

Receipts and ledger syncing sit at the low-drama end of the range. Once a payment is confirmed, the agent can send a numbered receipt, attach it to the order record, and push the entry into whatever accounting tool the business uses. The team stops retyping transaction IDs.

One rule applies across all of this: use the official M-Pesa APIs and validate every callback. Anything that asks customers for their PIN, or asks staff to forward payment messages from personal phones, is a fraud pattern waiting to happen.

What Separates an AI Agent From a Chatbot



Plenty of Kenyan businesses already run chatbots on WhatsApp, and most of them are flowcharts. The customer picks a number from a menu, the bot follows a script, and anything off-script ends in a dead end. That works for very narrow tasks and fails almost everywhere else.

An agent differs in three practical ways. First, tool use: it calls real systems. It queries the stock file, creates an order in the sales sheet, triggers an STK push, reads the payment callback. Second, memory: it knows that this customer ordered two weeks ago and that the delivery went to Kilimani, so the conversation starts from context instead of zero. Third, judgment about handoff: it reads an angry message, a refund request, or a legal threat as something a person should see immediately.

None of this means the agent runs unattended. Someone still owns the price list, the delivery policy, and the exceptions. The agent compresses the routine so that human time goes where it counts.

A Worked Example: Mwangaza Home & Kitchen



Take a fictional but typical business: Mwangaza Home & Kitchen, a furniture and kitchenware shop on Ngong Road that delivers across Nairobi. Two staff members handle sales, and the owner answers WhatsApp until midnight.

Before automation, an order ran like this. The customer sent a photo, staff checked a paper stock list, quoted a price, shared the pay bill number, then scrolled back through messages at night to find who had paid. Mismatched payments surfaced two or three days later.

With an agent in the chat, the same order moves differently. The customer asks about a storage rack. The agent checks the stock file, confirms availability and the delivery fee to Westlands, and writes the order into the sales sheet. It sends an STK push to the customer's phone. When the callback arrives, the agent validates the transaction reference, marks the order paid, and sends a receipt on WhatsApp. The rider's dispatch list updates with the address.

What the agent does not do: approve a discount it was not authorised to give, promise a delivery date the shop cannot meet, or decide on a refund when a leg arrives scratched. Those land on the owner's phone as short summaries with the relevant messages attached. The shop runs the same operation with fewer late nights, not without people.

Where Humans Still Need to Be in the Loop



Three areas keep a person in charge. The first is compliance. The Data Protection Act applies to customer phone numbers and message history, so consent, retention, and access rules need to be settled before anything is automated. WhatsApp's own business policy sets limits on how and when a company can message customers, and anything touching payments sits under CBK expectations as well.

The second is exception handling. Refunds, disputed deliveries, and payments that landed on the wrong till are rare, messy, and high-stakes. An agent can gather the context and draft a reply. A person decides.

The third is quality. An agent answering from a stale price list does damage quietly, one wrong quote at a time. Someone has to own the source documents and read what the agent said last week. Businesses that skip this step lose trust faster than they save time.

How to Start Small



Pick one workflow with a clear boundary, such as order confirmations or FAQ answers, and run it beside the current process for a week. Use the official WhatsApp Business API through an approved provider and the official M-Pesa APIs. Keep customer data where it belongs and log every automated action.

Measure two things: how many messages the team no longer answers by hand, and how often the agent gets something wrong. Both numbers tell you whether to widen the scope. GashoTech is a Nairobi-based AI automation agency that builds these workflows for local businesses, and our team designs custom AI agents for companies that need more than a template. Build with us or with someone else, but insist on the same discipline: one workflow first, humans on the exceptions, and nothing automated that cannot be audited afterwards.

Questions Business Owners Ask



Do I need the WhatsApp Business API, or is the regular WhatsApp Business app enough?



The free app is fine for manual chats and quick replies, but automation needs the API. The API gives you message templates, proper session handling, and the hooks an agent needs to respond without a phone sitting on a desk. An approved provider handles the setup, and Meta reviews the business before the number goes live.

Can an AI agent take M-Pesa payments on its own?



It can request a payment and confirm the result, but the money movement itself runs through Safaricom's official flow. The agent triggers an STK push, waits for the callback, and marks the order paid from validated transaction data. It never sees a customer's PIN and should never ask for one.

How long does it take to set up one workflow?



A focused workflow, such as confirmations plus a receipt message, is usually live within a few weeks rather than a few months. The slow parts are approvals and data cleanup: API onboarding on one side, and turning the shop's price list and delivery rules into something the agent can trust on the other.

Will customers know they are talking to an agent?



They should, and the opening message should say so plainly while offering a staff member at any point. Customers rarely object to an agent that answers instantly and hands over cleanly. They object to being trapped in a loop.

Want to learn more?

Contact GashoTech for personalized consultations on AI, automation, and cybersecurity solutions.

Get in Touch