WhatsApp-native order & inventory management system for Nairobi SMEs — AI-powered order parsing, Mpesa integration, and real-time dashboard
# WhatsApp Order Management System
### Built for Nairobi SMEs — Pharmacies, Butcheries, Grocers, Boutiques & More
---
## Overview
Thousands of small businesses in Nairobi already run their orders through WhatsApp. Customers message to ask about stock, place orders, and request prices — but the shop owner manages it all from a single chaotic inbox with no record-keeping, no inventory tracking, and no payment confirmation.
**This system fixes that.**
It connects to a business's WhatsApp Business account and turns incoming order messages into structured order records — automatically. The shop owner gets a clean web dashboard showing all open orders, inventory levels, and daily revenue. When an order comes in, the system auto-replies with a confirmation and an Mpesa STK push. When payment is confirmed, the order moves to "paid" and inventory is decremented automatically.
**Core loop:**
```
Customer messages → AI parses order → Confirmation sent → Mpesa STK pushed → Payment confirmed → Inventory decremented → Owner notified
```
---
## Key Features
| Feature | Description |
|---|---|
| **AI Order Parsing** | Handles Swahili, Sheng, and mixed-language messages — "niletee kilo moja nyama na bread mbili" parses correctly |
| **Mpesa STK Push** | Full STK push flow with timeout, failure, and retry handling |
| **WhatsApp Cloud API** | Meta's official API — real-time webhooks, template messages, catalogue sharing |
| **Live Dashboard** | Mobile-first dashboard showing orders, inventory, and revenue in real time |
| **Inventory Management** | Variants (size, colour, weight), low-stock alerts, and supplier reorder workflows |
| **Customer Loyalty** | Loyalty tracker built from WhatsApp order history |
| **Multi-staff Access** | Two employees can manage orders simultaneously without collisions |
| **End-of-day Reports** | Automatic daily summary sent to owner's WhatsApp |
| **Broadcast Messages** | Send promotions and stock availability to customer lists |
| **Anal …