An intelligent AI agent that automates WhatsApp customer inquiries for a Nigerian e-commerce fashion accessories store.
Kemi handles order classification, stock checking, Shopify draft creation, auto-replies, and daily logging — saving hours of manual work daily.
- Real-time WhatsApp message processing via Cloud API
- Intelligent classification using Grok (xAI)
- Automatic stock checking from Google Sheets
- Creates Shopify draft orders
- Warm, natural Nigerian English replies
- Full conversation logging
- Production-ready FastAPI backend
- Backend: FastAPI + Uvicorn
- AI: Grok-3 (via xAI API)
- Integrations:
- WhatsApp Cloud API
- Google Sheets (Supplier Stock + Logs)
- Shopify API
- Python: 3.10+
kemi-agent/
├── main.py # FastAPI app + webhook endpoints
├── config.py # Environment configuration
├── kemi_agent.py # Core AI agent logic
├── tools.py # Helper functions (Shopify, Sheets, WhatsApp)
├── requirements.txt
├── .env.example
├── .gitignore
└── README.md