AI WhatsApp lead-generation bot
A WhatsApp bot that qualifies inbound leads with Claude Haiku, stores them in Supabase and pings the business owner on WhatsApp the moment a lead lands.
Problem
Small businesses get enquiries on WhatsApp at all hours and lose them when nobody replies fast. [FILL: the specific business type you built this for.]
My role
Built it alone: webhook, prompt, data model, alerting, deploy.
Architecture
Key decisions and trade-offs
Claude Haiku instead of a larger model
Lead qualification is short, structured extraction. A small, fast model keeps reply latency and cost low. [FILL: which Haiku version, and how you get reliable structured output: tool use / JSON schema?]
What the model is not allowed to do
[FILL: guardrails. Does it ever quote prices or promise availability? How do you stop it?]
Instant owner alert
The owner gets a WhatsApp message with the lead summary as soon as it is stored. [FILL: what happens if the alert fails? Retry? Is the lead still saved?]
Hard bug I fixed
[FILL: symptom → diagnosis → root cause → fix. WhatsApp webhooks are retried by Meta, so duplicate leads are a common one. Did you hit it?]
Outcome / status
Demo-ready on Railway. Not yet running for a paying client. [FILL: update when it is.]
Stack
- Python
- FastAPI
- Claude Haiku
- Supabase
- WhatsApp Cloud API
- Railway