Book a demo

WhatsApp Chatbot: How It Works, Meta's Rules and Setup

Gaurav Mukherjee
Gaurav Mukherjee · Co-founder & CTO, Flowcall
·22 min read
WhatsApp Chatbot: How It Works, Meta's Rules and Setup

A WhatsApp chatbot is software that replies to customers on your business's WhatsApp number automatically, through Meta's official WhatsApp Business Platform (the WhatsApp Business API). For a consumer brand, a useful one does more than answer FAQs: it checks and changes orders, confirms cash-on-delivery orders, collects photos for returns, recommends products and hands the rest to an agent with the context. It does all of this within Meta's rules on opt-in, templates and the 24-hour reply window.

A WhatsApp chatbot isn't Meta AI, the assistant people chat with inside WhatsApp for themselves. This guide is about the chatbot a brand runs on its own number for its customers, with Meta's rules as checked on 1 October 2026.

In short

  • There are three kinds: menu (rule-based) bots, AI chatbots that answer from your content (including Meta's own Meta Business Agent), and AI agents that check your order systems and make changes under your rules.
  • Order questions (status, changes, returns, refunds) need a bot that can see and change the order. How natural it sounds matters less.
  • Meta's rules shape the design: opt-in before you message first, approved templates outside the 24-hour window, a clear route to a human agent, and, from 1 October 2026, a charge for service messages after 1,000 free a month per number.
  • Test with real customer messages, including the awkward ones, before launch, and measure what the bot settles rather than how many chats it touches.

Three kinds of WhatsApp chatbot

"WhatsApp chatbot" covers three different tools (our guide to what is a chatbot covers the general idea). They differ in what they can do with a customer's message. Here is one message to a fashion brand, sent at 10 pm: "My order hasn't shipped yet. Can you send it to my office instead? I'm paying cash on delivery."

What it does with the message What it needs
Menu (rule-based) bot Replies with buttons: "Track order", "Returns", "Talk to us". The customer taps "Talk to us" and waits for the morning A decision tree someone keeps up to date
AI chatbot that answers Understands the question, explains that addresses can change before dispatch, and asks the customer to contact support Your policies, FAQs and product information
AI agent connected to your systems Finds the order from the customer's number, checks it hasn't shipped, collects the new address, updates the order and confirms Your rules, and access to the order and courier systems

Menu bots are cheap and predictable, and they work for a short list of fixed answers. Their limit is the menu: on WhatsApp, customers type the way they talk, often mixing English with Hindi or another language, send photos, and ask two things in one message. A bot built as a flowchart of buttons handles only what's on the chart, and everything else dead-ends, loops or lands with an agent.

AI chatbots understand free text and answer from your content. Meta now offers its own. Meta Business Agent is an AI service a business can switch on to answer questions about its hours, products, prices, discounts, payment and shipping, and to recommend products, using the business's catalogue, website and profile. Meta says it is available to select businesses in limited countries, and that chats where it is switched on may be used to improve AI at Meta. On the Business Platform, Meta has charged for its messages by the token since 1 August 2026. An answering bot can explain your address-change policy. It can't change the address.

AI agents complete the request. The gap between answering and completing is the subject of our guide to customer service automation, and on WhatsApp it decides the outcome whenever a message is about a specific order: where it is, changing it, returning it, or getting money back.

Flowcall's AI Agent is the third kind, and it runs on what we call the SOP Engine. It follows your written procedure step by step while talking naturally, your rules make each decision, and order, delivery and payment details come from your systems, so the AI doesn't make them up. Ready-made workflows cover returns, refunds, exchanges, cancellations, COD and damaged products. Once a workflow is set up correctly, it gives the same result on every run, and a fix stays fixed. It replies in the customer's language and switches when they do.

What a WhatsApp chatbot should do for a consumer brand

A chatbot is one part of WhatsApp customer service; agents handle the rest. Start from the messages your team already gets. At a consumer brand they fall into six jobs, and each needs something different from the bot (our WhatsApp chatbot examples show each one as a full conversation).

Job Typical message What the bot needs WhatsApp feature that does the job
Order status "Where is my order?" Order and courier tracking data, matched to the customer's number A status reply with the expected date, and a "Still need help" button
Changes before dispatch "Change the address", "Cancel it", "Size L instead" Rules for when a change is allowed, and a way to make it in your order system A form for the new address; reply buttons to confirm
Cash on delivery A reply to the order confirmation: "Yes", or "I didn't order this" The order, and a way to confirm or cancel it A template with "Confirm" and "Cancel" buttons (utility, or marketing if it carries a prepaid offer)
Returns, exchanges and damaged items "It arrived broken" Your return window and product rules, and the customer's photo Photo upload in the chat; a form for the reason and pickup slot
Refunds "Where's my refund?" Refund status from your store or payment gateway A status reply with the date
Before buying "Do you have this in a size 8?" "Something for dry skin under ₹1,000?" Your catalogue, with sizes, stock and prices Product messages from a catalogue linked to your WhatsApp account

Order status is the natural first job: the answer is already in your data (see order and delivery support). Changes, returns and refunds need written rules as well as data, because the bot has to decide what the customer qualifies for; see returns, refunds and exchanges.

With cash on delivery (COD), an option Indian shoppers expect, the customer pays the courier on arrival. A COD order the customer no longer wants comes back unpaid, and the brand pays the shipping both ways, so a WhatsApp confirmation before dispatch is worth sending. Our guide to COD orders covers confirmation, failed deliveries and refunds on COD orders.

Selling in the chat

Meta lets a business connect a product catalogue to its WhatsApp account and send single-product messages, multi-product messages of up to 30 items, and scrollable product carousels; customers can add items to a cart without leaving the chat. That is the basis of WhatsApp commerce, and our guide to the WhatsApp catalogue covers setting one up.

A bot that recommends products needs what a good shop assistant needs: accurate sizes, colours, stock and prices, and an understanding of the request. "Something for dry skin under ₹1,000" is a filter on your catalogue, not a keyword. Our guide to the WhatsApp chatbot for ecommerce goes job by job through an online store's setup.

Flowcall's AI shopping assistant does this on the same number as support. Customers describe what they want, or send a photo or screenshot, and the AI Agent finds, filters and compares products from your catalogue (imported from Shopify, WooCommerce, Magento or files). On WhatsApp it shows them as a product carousel with images, prices and buy links, and in India it can send a payment link or UPI request in the chat. The same AI Agent then handles the delivery and return questions that follow the purchase.

Meta's rules for WhatsApp chatbots

A brand's chatbot runs on the WhatsApp Business API, which Meta now calls the WhatsApp Business Platform. The rules below come from Meta's own documentation and policies, checked on 1 October 2026. Meta changes them from time to time, so check the date on any guide you rely on.

The Business Platform, not the Business app

The free WhatsApp Business app has two simple automatic replies, a greeting message for new customers and an away message outside business hours, plus quick replies that someone saves and sends by hand (see our guides to WhatsApp auto reply and WhatsApp greeting message examples). A chatbot that follows your rules and connects to your order system runs on the WhatsApp Business Platform, either directly through Meta's Cloud API or through a provider. Meta also lets a business keep using the app on a number connected to the platform, which it calls WhatsApp Coexistence. Our comparison of WhatsApp Business vs WhatsApp Business API sets out the differences, and what is WhatsApp Business API explains the platform itself.

Opt-in before you message first

Under Meta's Business Messaging Policy, you may contact people on WhatsApp only if they have given you their number and agreed to receive messages from you. The opt-in must say clearly what they're agreeing to, name your business, and meet local law. You can collect it on any channel, such as the checkout, a website form, a call or in a store, and you must honour every request to opt out. Meta suggests covering each kind of message in the opt-in, or asking separately for each, so a customer can keep order updates and stop offers.

Opt-in governs the messages you start. When a customer writes first, the chatbot can reply.

The 24-hour customer service window

When a customer messages or calls your WhatsApp number, a 24-hour customer service window opens, and each new message from them resets it. Inside the window, the bot can send any kind of message. Once it closes, you can send only templates that Meta has approved.

Inside the 24-hour window After it closes
Who wrote last The customer, less than 24 hours ago The customer, more than 24 hours ago, or never
What the bot can send Free text, images, documents, reply buttons (up to three), lists, forms and product messages Approved templates only
Meta's charge (from 1 October 2026) Service messages: 1,000 free per business number a month, then per message; utility templates are charged Per delivered template, by category and the customer's country

Two things follow for a chatbot. A conversation handed over at night has to reach an agent before the window closes, or the agent's first reply must be a template. And anything the bot promises to send later, such as a refund confirmation, needs an approved template after 24 hours.

Templates

Templates are messages you write in advance and Meta approves before use. Each is categorised as marketing, utility (order and account updates) or authentication (one-time codes). Review can take up to 24 hours, and Meta can recategorise a utility template it finds promotional. A template can carry buttons such as "Track" and "Talk to us", and the customer's reply opens the window again. Our WhatsApp message templates library has examples, and the WhatsApp order template guide has 17 order messages, from the confirmation to the refund.

One US detail: Meta doesn't currently deliver marketing templates to WhatsApp users with US phone numbers. For US customers, that leaves WhatsApp for support conversations and utility messages such as order updates.

A route to a human agent

The Business Messaging Policy requires businesses that automate conversations to offer prompt, clear and direct escalation paths, such as an in-chat transfer to a human agent, a phone number, email or web support. A bot with no way out breaks the policy as well as annoying the customer.

What Meta charges

Meta charges per delivered message, by message category and the customer's country. From 1 October 2026, service messages (free-form replies inside the window, from the bot or an agent) are charged per message after a free tier of 1,000 a month for each business phone number. Utility templates sent inside the window are charged too. Guides written before October may still say service messages are free. Our guide to WhatsApp Business API pricing has the current rates.

Flowcall's WhatsApp Marketing works inside these rules. You create templates in Flowcall and send them for Meta's approval, then send or schedule campaigns to segments built from order history or synced from Shopify, and customers who opt out stop receiving them. Order updates go out automatically when an order is confirmed, shipped, delayed or delivered, and Flowcall's COD confirmation confirms each COD order and offers a discount to pay online in the same message. When a customer replies to any of these, the reply can start an AI Agent workflow, so the conversation that follows is handled by the same AI.

One COD order, two chatbots

On a Friday night, a customer orders trainers from a footwear brand and chooses cash on delivery. The brand sends a WhatsApp confirmation template with "Confirm" and "Cancel" buttons. She taps neither, and types: "Can I get size 9 instead? And deliver to my office please."

With a menu bot. The bot doesn't recognise the message and replies with its menu. She taps "Talk to us"; it's 11 pm, so the bot says an agent will reply. At 10 am an agent asks for her order number, then the new address, checks stock in the store admin and edits the order by hand. By then the warehouse has packed size 8. The parcel ships in the wrong size, she refuses it at the door, and the brand pays shipping both ways.

With an AI agent. The bot recognises her number and finds the order. It checks the order hasn't shipped and that size 9 is in stock, swaps the size, and sends a short form for the new address with her name and phone already filled in. She submits it, and the bot updates the order and confirms it as COD, at 11 pm, in the same chat. A week later the shoes arrive with a scuffed toe. She sends a photo; the bot checks it against the return window and the product rules, offers a replacement, and creates the replacement order when she accepts.

The customer, the channel and the template are the same in both versions. What changed is whether the bot could see and change the order.

The second version is how Flowcall handles it. The AI Agent collects addresses, dates, choices, photos and documents in a form inside the WhatsApp conversation, with fields already filled from what the customer has said. A template's button can open the form directly, so a COD confirmation can carry a "Change address" form. Forms can run across several screens, with conditions and live data from your systems, such as the customer's Shopify orders in a dropdown. The AI Agent also assesses the damage photo and creates the replacement in your order system once your rules pass. Meta calls these in-chat forms WhatsApp Flows; our WhatsApp form guide covers which form suits each job, with six to copy.

When the chatbot should hand over to an agent

Some conversations should go to an agent however capable the bot: a customer who asks for one, a request your rules don't cover, a refund above your limit, suspected abuse, a safety issue, or a customer who is upset. Our comparison of chatbot vs live chat lists seven triggers, and our guide to escalation management covers the team side. On WhatsApp, two things matter more than elsewhere.

  1. The clock. Hand over early enough for an agent to reply inside the 24-hour window, and tell the customer when the team is back so they don't chase.
  2. What the agent receives. The conversation, plus what the bot has already collected: the matched order, the photos, the form answers, what it checked and why it stopped. Without them, the agent's first message asks for an order number the customer sent hours ago.

In Flowcall, when an agent is needed, the AI Agent creates a ticket with the conversation, a summary, the customer and order context and what's left to do. It routes the ticket to the right team, and outside business hours it tells the customer when the team is back. Agents work the ticket in the AI Helpdesk, which shows the customer's orders, delivery, payments and refunds. They process the refund or replacement from the ticket with a ticket action: the AI fills the form from the conversation and your systems, and the agent checks it and clicks once. When the agent's step is done, the AI Agent can pick the customer's journey up again.

What it takes to set up a WhatsApp chatbot

The connection to WhatsApp is the quick part. Most of the work is in the rules and the data. Before launch you need:

  1. A WhatsApp Business Platform account: a Meta business portfolio, a phone number registered on the platform (through Meta's Cloud API or a provider) and your business profile. Decide whether the WhatsApp Business app stays on the same number.
  2. Enough sending capacity for what you send first. Meta limits how many customers a new account can message outside the window: 250 unique customers in a moving 24 hours, rising to 2,000, 10,000, 100,000 and unlimited. Verifying your business is one route to the higher tiers, and it matters if you plan to confirm every COD order.
  3. Your top request types, taken from last month's WhatsApp conversations, with their volumes.
  4. Written rules for each: when an address or size can change, your return window, which products can't be returned, refund limits, and when to hand over.
  5. Connections to the systems that hold the answers: your store (our Shopify WhatsApp integration page covers Shopify), courier tracking, refund status and the product catalogue.
  6. Approved templates for what you send first: order and COD confirmations, shipping and delivery updates.
  7. Opt-in at checkout, and a way to record opt-outs.
  8. A handoff plan: which team takes which conversations, during which hours, and how fast they must reply.

Flowcall connects WhatsApp Business numbers as a Meta Tech Partner. If your staff keep the WhatsApp Business app on the same number through Coexistence, Flowcall's AI Agent keeps replying while they use the app.

For a step-by-step build, see how to create a WhatsApp chatbot.

How to test a WhatsApp chatbot before launch

Test with the messages customers actually send. Take a few dozen real messages for each request type from last month's conversations, add the awkward ones, and write down what should happen before you run each.

What to test Example What should happen
Missing details "Where's my order?" from a number with two open orders Shows both and asks which one
Two requests in one message "Cancel the blue one and keep the other" Handles both, or confirms each
Mixed language and typos "mera order kab aayega" ("when will my order come?") Understands it and replies in the customer's language
Out of policy A return on day 40 of a 30-day window Declines politely, or hands over if your rule says so
Photos A blurred photo of a damaged item Asks for a clearer photo, or hands over
Asking for a human agent "agent pls" Hands over at once
Actions An address change after the order is packed Blocks the change and explains why
After the window A refund update due 30 hours after the last message Goes out as an approved template
Opt-out "Stop sending me offers" Offers stop, and the opt-out is recorded

Run actions against test orders, not live ones, and rerun the whole set after every change to a rule, template or integration. Then launch with one request type or a share of customers, read the first week's conversations, and widen.

Flowcall builds this into setup. You run simulated customer conversations against a workflow before it goes live, and rerun them after every change. The AI writes test cases for the happy path, edge cases and errors, explains why a test failed, and turns real failures into regression tests. Test runs stay out of live queues, reports and CSAT.

How to measure a WhatsApp chatbot after launch

A bot that replies in seconds makes response times look good whatever happens next. Measure what it settles:

  • Settled without an agent, by request type: conversations closed by the bot with no repeat contact about the same order within 7 days, divided by all conversations of that type.
  • Handoffs by reason: asked for an agent, outside the rules, the bot failing. Each tells you what to fix or add next.
  • Handoffs answered inside the window: the share of handed-over WhatsApp conversations that got an agent's reply within 24 hours.
  • CSAT by path: bot only, bot then agent, and agent only.
  • Opt-outs after each template or campaign: a sign a message isn't wanted.

Read a sample of handed-over conversations every week too, because numbers miss tone. Our guide to customer service metrics covers the rest.

How Flowcall fits

Flowcall runs the whole WhatsApp conversation in one place. The AI Agent answers, sells and completes order requests on your WhatsApp number under your rules, with forms and product carousels for collecting details and browsing. WhatsApp Marketing sends the templates that start conversations, and the AI Helpdesk gives agents the rest with the context attached. The same AI Agent works on Instagram, Live Chat and email for omnichannel customer service. Flowcall's team sets up the workflows and integrations with you, and qualifying brands can begin with a free proof of concept on one service problem, such as a returns workflow, product recommendations or quality checks across conversations.

If you'd like to see Flowcall's AI Agent confirm a COD order, change an address in a WhatsApp form and hand a damage claim to an agent with the photo attached, book a demo.

Frequently Asked Questions

How do I set up a chatbot on WhatsApp?

Register a phone number on the WhatsApp Business Platform (through Meta's Cloud API or a provider) and connect a chatbot platform to it. Then write the rules for your main request types, connect your order and product data, get your templates approved and test with real customer messages, as in the setup checklist above.

Is a WhatsApp chatbot free?

Rarely, once it runs at volume. There are two costs: the chatbot platform (priced per month, per conversation or per resolution, depending on the vendor) and Meta's charge for each delivered message. From 1 October 2026, Meta gives each business phone number 1,000 free service messages a month and charges for the rest, and it charges for every delivered template.

Which AI chatbot is best for WhatsApp?

It depends on the job. If customers mostly ask general questions, an AI chatbot that answers from your content may be enough. If most messages are about orders, choose one that can look up and change orders in your systems under your rules, hand over with the context, and send approved templates. Our list of the 11 best WhatsApp chatbot platforms compares the options.

Are AI chatbots allowed on WhatsApp?

Yes, for a business's own customers. Meta's terms for the WhatsApp Business Platform (last modified 23 September 2026) bar providers of AI technologies, including general-purpose AI assistants, from using the platform when the AI is the primary functionality being offered, rather than incidental to it, as Meta decides. It is aimed at AI companies offering their own assistant over WhatsApp. A brand's AI that serves its own customers about their orders, products and policies uses AI as part of its service, and Meta offers its own Meta Business Agent to businesses. Our guide to AI chatbots for customer service covers the wider choice.

How do I know if I'm chatting with a bot on WhatsApp?

Ask. A well-run brand says when a customer is talking to AI and offers a human agent. WhatsApp tells customers the first time they chat with a business that has Meta Business Agent switched on. In the EU, since 2 August 2026, providers of AI systems that talk directly with people must make sure people are told they're interacting with AI, unless it's obvious.

How can I send 10,000 messages on WhatsApp?

Through the WhatsApp Business Platform, to customers who have opted in, using approved templates. Meta limits how many customers a business can message first in a moving 24 hours: new accounts start at 250 and move up to 2,000, 10,000, 100,000 and unlimited as the business is verified and its messages stay high quality. Our guide to WhatsApp broadcast covers how to plan a send.

Share:
Gaurav Mukherjee
Gaurav Mukherjee
Co-founder & CTO, Flowcall

Co-founder and CTO of Flowcall, where he leads product and engineering for its omnichannel AI customer service platform. Previously Principal Software Engineer at F5 and Atlassian.

Connect on LinkedIn

See How 80%+ Automation Actually Works

We'll show you real conversations—AI handling refunds, tracking orders, switching languages—all fully automated, end to end.