What is a chatbot?
A chatbot is software that holds a conversation with customers on its own. On WhatsApp it greets the customer, works out what they want, answers or completes a simple task — tracking an order, booking a slot, sharing a brochure — and hands the conversation to a human agent when it reaches the edge of what it can do. It runs inside the chat thread the customer already uses, with no app to install and no login to remember.
Chatbots span a spectrum. Rule-based bots use reply buttons, list menus and keyword triggers, so every path is designed in advance and behaves predictably. NLU bots classify free text into intents ("track order", "refund") and extract details such as an order number. LLM-powered bots generate answers from your knowledge base, and at the far end an AI agent plans steps and calls your systems to act. Most production WhatsApp bots are hybrids: buttons for common journeys, AI for free text, and a clear path to a person.
Technically, a WhatsApp chatbot is a service behind your webhook. Each customer message arrives as a messages webhook; the bot looks up the conversation state, decides the next step and replies through the Cloud API. WhatsApp's rules shape what it can send: free-form messages only inside the 24-hour customer service window, approved templates to start or restart a conversation, and — under the Business Messaging Policy — prompt, clear escalation paths to a human whenever automation is answering.
Nearby terms cover the pieces around it. An auto-reply is the single-rule tier below a chatbot; WhatsApp Flows are native multi-screen forms a bot can open; a no-code chatbot builder is one way of building a bot rather than a kind of bot. And since 15 January 2026 WhatsApp's terms bar general-purpose AI assistants as a core product, while bots serving a business's own customers are unaffected.
Key takeaways
- A chatbot is software that converses with customers on its own, answering questions and completing simple tasks before handing over to a person.
- WhatsApp chatbots range from button-and-keyword bots to NLU, LLM-powered bots and AI agents; most production bots are hybrids.
- A bot may send free-form replies only within 24 hours of the customer's last message; to start a conversation it needs an approved template.
- In India each bot reply inside the window is a service message charged at ₹0.145 since 1 October 2026.
- WhatsApp's Business Messaging Policy requires a prompt, clear escalation path to a human whenever automation is replying.
One hybrid bot, three tiers in a single chat
Corner Grocery
- Customer: Hi10:30
- Corner Grocery: Hi! What can we help you with?Choose an option10:31ReadChoose an optionTrack my order (chosen)Return or exchangeStore timingsTalk to a person
- Customer: Track my order10:32
- Corner Grocery: Sure — please type your order number.10:33Read
- Customer: ORD-7712010:34
- Corner Grocery: Order ORD-77120 is out for delivery and should reach you by 7 pm today.10:35Read
- Customer: can the delivery guy call before coming? gate is locked10:36
- Corner Grocery: Done — I've asked the courier to call before arriving. Anything else?10:37DeliveredThat's allTalk to a person
Message 8 of 8
Corner GroceryReply buttonsDelivered (two grey ticks)
The AI tier answered and added the note through the order API. A person stays one tap away, as WhatsApp's policy expects.
Interactive reply buttons: up to three quick replies the customer taps instead of typing.
Message 8 of 8: Corner Grocery, Reply buttons, Delivered (two grey ticks). The AI tier answered and added the note through the order API. A person stays one tap away, as WhatsApp's policy expects.
How does InfiQ help with a chatbot?
InfiQ's Flow Builder lets you build WhatsApp chatbots by dragging blocks onto a canvas, with buttons, lists, questions and actions, and a phone preview of what the customer sees. When a chat needs a person, it moves to the shared inbox.
- A waiting bot resumes at the same step, however late the reply.
- Reports and a drop-off heatmap show where customers leave.
How does a chatbot work?
A message arrives
The customer's text, button tap or list choice reaches your webhook as a
messagesevent and opens or refreshes the 24-hour customer service window.Understand it
Rule-based bots match the button or list ID or a keyword; NLU and LLM bots classify the intent and pull out details such as an order number or PIN code.
Decide the next step
Using the stored conversation state, the bot picks the next node: ask a question, look up data in your systems, show a menu, open a Flow or answer.
Reply
It sends text, reply buttons (up to three), a list (up to ten rows) or media through
POST /{PHONE_NUMBER_ID}/messages, and saves the new state.Hand off when needed
On request, after repeated misunderstandings or for sensitive topics, it passes the chat and its history to the shared team inbox and stays silent while a person owns it.
Re-engage with templates
To start a conversation later — a reminder, a delivery update — the bot must use an approved template, billed per delivered message by its category.
Example: Admissions questions at a Lucknow coaching institute
A parent taps a Click-to-WhatsApp ad and types "fees for class 11 science?". The bot replies at once with a list of courses; the parent picks JEE Foundation, receives the fee brochure as a PDF, answers the student's current class with a button and books a free demo class. Because the chat began from the ad and the bot answered immediately, a free entry point window of up to 7 days applies to these replies. When the parent asks whether the hostel serves vegetarian food — outside the bot's flows — it hands the chat, with course and class already captured, to a counsellor.
Why does a chatbot matter?
In India WhatsApp is where customers already message friends and family, so it is where they expect instant answers — at night, on Sundays and during festival rushes. A chatbot lets a small team cover those hours, answers the repetitive questions that make up much of inbound volume (order status, timings, delivery areas, prices) and qualifies leads before a salesperson picks up. The value comes from doing a few journeys well and handing off cleanly; a bot that traps people in menus loses more customers than it saves agent hours.
A chatbot in code
// Buttons and lists for known journeys, stored state for follow-ups, a menu as fallback.app.post("/webhooks/whatsapp", async (req, res) => {res.sendStatus(200); // acknowledge first (signature check omitted for brevity)const value = req.body.entry?.[0]?.changes?.[0]?.value;const msg = value?.messages?.[0];if (!msg) return; // a status update, not a customer messageconst state = (await store.get(msg.from)) ?? { step: "idle" };const choice =msg.interactive?.button_reply?.id ??msg.interactive?.list_reply?.id ??msg.text?.body?.trim().toLowerCase();if (choice === "agent") return handoff(msg.from, state);if (choice === "track_order") {await store.set(msg.from, { step: "awaiting_order_id" });return sendText(msg.from, "Sure - please type your order number.");}if (state.step === "awaiting_order_id") {const order = await orders.find(choice, msg.from);await store.set(msg.from, { step: "idle" });return sendText(msg.from, order? `Order ${order.id}: ${order.status}`: "I couldn't find that order. Tap Talk to a person for help.");}return sendMenu(msg.from); // fallback: show the main list menu});
Route on interactive reply IDs first, use stored state to read follow-up answers, and always keep a person one tap away.
Key facts at a glance
A chatbot: key facts and limits
- Bot types
- Rule/button, NLU (intent), LLM-powered, AI agent
- Reply buttons
- Up to 3 per interactive message
- List messages
- Up to 10 rows across up to 10 sections
- Free-form replies
- Only within 24 hours of the customer's last message
- Starting a conversation
- Approved template, billed per delivery by category
- Bot replies (India)
- ₹0.145 per service message since 1 October 2026
- Human escalation
- Required by WhatsApp's Business Messaging Policy
- General-purpose AI bots
- Barred as a core product since 15 January 2026
Common wrong turns
Common mistakes with a chatbot
Dead-end menus
Customers forgive a bot that says "let me get a person"; they do not forgive one that loops. Put "Talk to a person" in every menu and escalate after two misunderstandings in a row.
Automating everything at once
Covering every edge case on day one produces a fragile maze. Launch with the top five journeys by volume and expand using the log of unmatched messages.
Ignoring the window and template categories
A bot cannot send a free-form follow-up two days later. Design re-engagement around approved templates and choose categories honestly — mixed or promotional content is treated as marketing.
Forgetting state
If the bot forgets that it just asked for an order number, the customer's reply falls into the fallback. Persist the current step per customer, with a timeout.
Never measuring
A bot nobody reviews slowly rots. Track containment rate, handoff reasons, fallback rate and CSAT, and read real transcripts every week.
Chatbot FAQs
What is a WhatsApp chatbot in simple terms?+
Is a chatbot the same as AI?+
How much does a WhatsApp chatbot cost to run?+
Can a chatbot message customers first?+
Do I need to code to build a WhatsApp chatbot?+
Good practice
Best practices for a chatbot
- Use buttons and lists for choices; reserve free text for details such as order numbers.
- Write in the language your customers use, including Hinglish and regional languages.
- Pass the transcript and captured details at handoff so customers never repeat themselves.
- Keep messages short — one idea per bubble reads better on a phone.
- Count every bot reply as a billed message when you estimate running costs.
* Per-message rates for India, ex-GST: marketing, utility and authentication effective 1 July 2026; service messages ₹0.145 since 1 October 2026 after the first 1,000 a month on each WhatsApp number, which are free (all were ₹0 until 30 September 2026). Volume commitments earn discounts — final rate is confirmed on your account; applicable GST extra. Rates for other countries differ (see the international rate table on /pricing).