The 3 ways to build a WhatsApp chatbot
1. No-code with flow builder (fastest)
Drag-and-drop platforms:
- Zavu Flow Builder
- ManyChat
- LandBot
- Tidio
- Wati
2. AI agent connected to WhatsApp (medium)
Combines LLM (GPT, Claude) with the WhatsApp API. Handles complex questions with a knowledge base.
Time: 1-3 daysCost: $50-$500/month (volume + LLM tokens)For whom: SaaS, e-commerce, 24/7 support3. Custom bot with code (most control)
You build your own bot connecting WhatsApp Business API to your backend.
Time: 1-4 weeksCost: dev time + infra + WhatsApp ($0.005-$0.025 per conversation)For whom: very specific logic, complex integrationsRoute 1: No-code chatbot with Zavu Flow Builder
Zavu includes a visual flow builder in its Hobby plan ($25/month):Result: chatbot answering 24/7 without writing a line of code.
Route 2: AI chatbot (RAG agent)
If you want a bot that answers based on your docs, FAQs and catalog, use an AI agent with RAG (Retrieval Augmented Generation):
typescriptimport Zavu from "@zavudev/sdk" const zavu = new Zavu({ apiKey: process.env.ZAVU_API_KEY }) // 1. Create agent with knowledge base const agent = await zavu.agents.create({ name: "Store Support", model: "gpt-4o-mini", systemPrompt: "You're XYZ Store's assistant. Answer based on docs. Escalate to human if unsure.", channels: ["whatsapp"] }) // 2. Upload knowledge base documents await zavu.agents.knowledgeBase.upload({ agentId: agent.id, files: [ "./docs/faq.md", "./docs/return-policy.pdf", "./docs/product-catalog.json" ] }) // 3. Connect to webhook (Zavu does it automatically) // 4. Done β customer messages β agent answers with KB info
The agent:
- Reads the customer question
- Searches relevant pieces of your documentation
- Generates response with citations
- If it doesn't have enough info, transfers to human
- Learns from team corrections
Route 3: Custom bot with code
For very specific logic (database integration, ERP, complex conditional behavior):
typescript// app/api/whatsapp-webhook/route.ts import Zavu from "@zavudev/sdk" const zavu = new Zavu({ apiKey: process.env.ZAVU_API_KEY }) export async function POST(req: Request) { const event = await req.json() if (event.type !== "message.inbound") return new Response("ok") const text = event.message.text?.toLowerCase()agent/)) { // Transfer to team await transferToAgent(from) } else { // Default await zavu.messages.send({ to: from, channel: "whatsapp", text: "Hi! π I'm the assistant. What can I help with? (tracking, pricing, talk to human)" }) } return new Response("ok") }
"" const from = event.message.from // Bot logic if (text.match(/tracking order where/)) { // Query database const order = await db.orders.findByPhone(from) if (order) { await zavu.messages.send({ to: from, channel: "whatsapp", text: Your order #${order.id} is ${order.status}.}) } else { await zavu.messages.send({ to: from, channel: "whatsapp", text: "I couldn't find your order. Can you share the order number?" }) } } else if (text.match(/pricecost how much/)) { await zavu.messages.send({ to: from, channel: "whatsapp", messageType: "buttons", text: "Which product?", content: { buttons: [ { id: "p1", title: "Basic Plan" }, { id: "p2", title: "Pro Plan" }, { id: "p3", title: "Talk to sales" } ] } }) } else if (text.match(/human person
Combine with your business logic, database, ML, whatever.
Requirements to build a WhatsApp chatbot
Real chatbot costs in 2026 (US)
For a business with 5,000 conversations/month:
| Component | Cost (USD/month) |
|---|
| Zavu Pro plan | $199 (includes 25k messages bundled) |
|---|---|
| Meta conversations (mix 60% utility, 30% marketing, 10% service) | $70 |
| GPT-4o-mini tokens (if using AI) | $30 |
| Total | ~$300/month |
- 1 full-time agent (US) = $3,000-5,000/month
- 24/7 coverage = 3+ agents = $9,000+/month
- Chatbot handles 70% without intervention + scales without hiring more
WhatsApp chatbot best practices
Common mistakes
1. Bot pretending to be human. Customer figures out and gets angry. Be honest.2. No escape to human. Bot just loops "I don't understand" without transfer option = customer loss.3. Long answers. What's 3 paragraphs in email is 1 sentence in WhatsApp.4. No testing before launch. Test with 10 colleagues before launch. You'll find 20 things to fix.5. Marketing outside templates. Sending raw promo outside 24h window without approved template = number ban.Related resources
- WhatsApp API for developers
- WhatsApp Cloud API tutorial
- AI agents for WhatsApp
- Build an agent with Python + FastAPI
- Zavu documentation