WazaBot — AI Business Brain for African SMBs on WhatsApp. Automate customer replies, orders, payments 24/7.
# WazaBot 🤖
> **The AI Business Brain for African SMBs on WhatsApp**
WazaBot automates WhatsApp customer replies, order collection, appointment booking, and payment follow-ups 24/7. Built for African businesses. Priced in Naira.
## 🚀 Quick Start
### 1. Clone & Setup Backend
```bash
cd backend
cp .env.example .env
# Fill in your environment variables
pip install -r requirements.txt
uvicorn main:app --reload
```
### 2. Frontend
Open `frontend/index.html` in a browser — no build step needed.
Update the `API` constant in the JS to your Render URL.
### 3. Deploy to Render
1. Push this repo to GitHub
2. Go to
render.com → New → Web Service
3. Connect your GitHub repo
4. Select "Docker" as environment
5. Point to `render.yaml`
6. Set environment variables (see below)
## 🔧 Environment Variables
```
SECRET_KEY= # Auto-generated on Render
PAYSTACK_SECRET_KEY= # From
dashboard.paystack.com
OPENROUTER_API_KEY= # From
openrouter.ai (FREE models available)
WAZABOT_ADMIN_SECRET= # Your admin panel password
BASE_URL= # Your deployed URL
```
## 📡 API Endpoints
```
POST /auth/register Register new user
POST /auth/login Login
GET /auth/me Get current user
POST /bot/configure Configure AI bot
GET /bot/status Bot status
POST /bot/chat Send message to bot
GET /bot/conversations Get conversation history
GET /analytics/overview Dashboard analytics
POST /payments/initialize Init Paystack payment
POST /payments/webhook Paystack webhook
POST /api/message External API endpoint (API key)
GET /admin/stats Admin stats (admin secret required)
GET /docs Swagger UI documentation
```
## 💰 Pricing Plans
| Plan | Price | Replies/mo | Numbers |
|------------|-------------|------------|---------|
| Starter | ₦3,500/mo | 500 | 1 |
| Growth | ₦8,000/mo | 2,000 | 3 |
| Pro | ₦18,000/mo | Unlimited | 1 …