Server is running

aiWhatsApp Voice Ordering

Voice-driven WhatsApp ordering powered by Qwen Omni Realtime. The server is up and listening — pick where you want to go next.

Admin

Open admin dashboard →

Sign in to manage companies, products, salesmen, prompts, SO numbers, and view order history with conversation playback.

/admin/login
API

OpenAPI docs →

Interactive Swagger UI for the link-generation API. Test POST /api/links/generate from the browser.

/docs
Status

Health check →

Plain JSON endpoint for monitoring. Returns {"ok": true} when the server is alive.

/healthz

System checks

Database data/voiceorder.db exists
DashScope API key configured
UltraMsg configured (PDF will be sent via WhatsApp)
Admin password customised
.env file present

Customer voice page

Customer pages live at /<CompanyCode>/<phone>?t=<token>. You cannot open them directly — they need a token. Generate one via the API:

curl -X POST http://localhost:9898/api/links/generate \
     -H "Content-Type: application/json" \
     -d '{"company_code":"M1Mart","phone_number":"60123456789"}'

Response includes a URL — open it in a browser to see the voice page.