Small retail in Kenya runs on three systems that do not talk to each other: a till or notebook, a WhatsApp number, and M-Pesa. The owner reconciles them at night, usually from memory. Automation here is less about "AI strategy" and more about closing the gaps between those three records.

This page covers where a duka, minimart or single-branch shop loses money, what is worth automating first, and what should stay with the owner.

Where small retail actually leaks money

  • Stock that is bought but not sold. Fast movers run out while slow movers sit on the shelf. Without a sales history, reordering is guesswork.
  • M-Pesa payments that are not matched. A customer pays, sends a screenshot, and the shop marks the order paid. If the confirmation is not checked against the statement, the loss is silent.
  • WhatsApp orders that get lost. Orders arrive as text, voice notes and photos. During a rush, two or three are missed, and the customer simply does not come back.
  • Credit given on trust. A notebook of "will pay Friday" balances is not a ledger, and it cannot tell the owner who is overdue.
  • Price changes that do not reach the till. The shelf label and the till disagree, and the cashier absorbs the argument.

What to automate first

The order below is deliberate: each step produces a record the next step needs.

StepWhat it doesEffort
1. Sales captureRecord every sale against a product, even if it is entered at close of dayLow — a simple POS or a daily sheet
2. Payment matchingMatch M-Pesa confirmations to orders and flag unmatched amountsMedium — needs statement access
3. WhatsApp order intakeTurn messages into a structured order list with a referenceMedium — needs a catalogue
4. Reorder suggestionsSuggest what to buy based on recent sales and lead timeMedium — needs 6-8 weeks of data
5. Credit ledgerTrack who owes what and when it is dueLow — but discipline matters

Most shops should not start at step 3. WhatsApp ordering is visible and satisfying, but without sales capture and payment matching it creates more messages to lose. Start with the boring record.

What the WhatsApp assistant should and should not do

A useful assistant answers four questions: is this item in stock, what does it cost, where is my order, and how do I pay. It should hand over to a person when the customer asks for credit, complains, or wants something not in the catalogue.

Two rules keep it honest:

  1. Never confirm an order the shop cannot fulfil. Check stock before promising, and offer an alternative or a collection time instead of a vague "yes".
  2. Never mark a payment received from a screenshot. Match against the M-Pesa statement, and treat everything else as pending.

Kenya's messaging rules are also part of the design. Outside a 24-hour customer service window, business-initiated messages must use approved templates, and marketing messages need opt-in. A shop that blasts promotions to every number that ever messaged it is one report away from losing the number.

What stays human

The owner should keep pricing decisions, credit approval and supplier negotiation. A model can suggest a reorder quantity; it cannot judge that a supplier will be late before a public holiday, or that a loyal customer is worth a small credit risk.

Cashiers should keep the final say on a disputed price at the counter, with a simple override reason recorded so the owner can see patterns later.

Integrations that are realistic for one shop

  • M-Pesa: Paybill or Till statements, imported daily. Daraja APIs can confirm individual transactions, but statement-level reconciliation is usually enough to start.
  • POS: a system that exports daily sales and stock movements. If the shop still uses a notebook, a structured daily sheet is an acceptable first step.
  • WhatsApp Business: the official API for the assistant, with the shop's existing number where possible.
  • Accounting: a simple ledger export for the owner's records; full accounting integration is not worth the effort at this size.

A four-week first phase

WeekFocusResult
1Catalogue the top 100 products with prices and stockA single source of truth
2Capture sales daily and import M-Pesa statementsMatched and unmatched payments visible
3Add WhatsApp order intake for in-stock itemsOrders with references, fewer lost messages
4Review the mismatch report with the ownerA short list of leaks worth fixing

Metrics to watch

  • Unmatched M-Pesa payments per week, and their value.
  • Stockouts on the top 20 products, counted from the shelf, not the system.
  • Orders received vs orders fulfilled through WhatsApp.
  • Overdue credit beyond the agreed terms.
  • Cash variance at close of day.

Failure modes

Automating before recording. A WhatsApp bot on top of an uncatalogued shop produces confident wrong answers. Fix the catalogue first.

Over-promising stock. If the system says "in stock" but the shelf disagrees, customers lose trust faster than they would with a human "let me check".

Ignoring the 24-hour window. Template and opt-in rules are not optional, and a suspended number costs more than the automation saved.

No owner involvement. The owner is the only person who knows the supplier quirks and the credit relationships. A system installed without them gets abandoned in a month.

Where to start

Start with one shop, one catalogue and one week of matched M-Pesa statements. That single report — how much came in, how much was recorded, and what did not match — usually makes the case for the rest.