← All work

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.

Status
Demo
Role
Solo builder.
Period
[FILL]
Demo
Demo [FILL: demo link or WhatsApp number, or delete this line]

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

A prospect messages the business on WhatsApp; FastAPI asks Claude Haiku to qualify and extract fields; the lead is stored and the owner is alerted.INBOUND: Prospect. Then BACKEND (RAILWAY): FastAPI. Then SERVICES: Claude Haiku, Supabase. Then OUTBOUND: Owner alert.INBOUNDProspectWhatsAppBACKEND (RAILWAY)FastAPIwebhookSERVICESClaude Haikuqualify + extractSupabaseleads tableOUTBOUNDOwner alertWhatsApp
A prospect messages the business on WhatsApp; FastAPI asks Claude Haiku to qualify and extract fields; the lead is stored and the owner is alerted.

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