A WhatsApp AI chatbot is built from four parts: a phone number registered on Meta's WhatsApp Business Platform (Cloud API), a server that receives incoming messages through a webhook, a RAG layer that grounds every answer in your own company documents, and an operator panel that hands the conversation to a person when needed. The automated messages in the regular WhatsApp Business app are fixed, rule-based texts; answering free-form questions with AI requires the Business Platform. The bot can reply freely inside the 24-hour customer service window that opens when a user writes to you, and outside that window only templates approved by Meta can be sent.
This guide is for businesses and product teams that want to answer customer questions on WhatsApp with AI. Marketing campaigns and bulk messaging are out of scope. How we build the same kind of bot for websites and in-app chat as well is described on our AI chatbot and WhatsApp bot development page; here we focus on what is specific to WhatsApp: the platform rules, the architecture and the setup steps.
WhatsApp Business app vs. WhatsApp Business Platform: what is the difference?
When people search for "WhatsApp auto reply", they usually mean the WhatsApp Business app on a phone. The app offers ready-made automation such as a greeting message, an away message and quick replies. These are texts you write in advance. They do not understand the question and they never look at your documents. An AI chatbot reads the question, finds the relevant information and writes a fresh answer each time. For that, messages have to reach your software programmatically, which is what the WhatsApp Business Platform (often called the WhatsApp Business API) provides.
In practice you will run into four options:
| Option | How it answers | Knowledge source and integrations | When it fits |
|---|---|---|---|
| Automated messages in the WhatsApp Business app | Fixed texts written in advance | None; no CRM or document connection | Small businesses with low volume that answer most questions themselves |
| Meta's own business AI agent | An agent run by Meta, based on your business information | Limited to the settings and connections Meta offers; availability and terms can vary by country | Businesses that want to start quickly and do not need deep system integration |
| Off-the-shelf chatbot platform (through a provider) | The platform's flow builder or AI module | As far as the platform's built-in integrations go | Teams whose needs fit standard flows and who prefer a subscription |
| Custom build on the Business Platform | Your own RAG layer and the model you choose | Your documents, CRM and internal systems; you design the data boundary | Businesses that need answers grounded in their own data, custom handoff rules and CRM integration |
Whichever route you take, Meta's rules are the same. The differences lie in what the answer is based on, which systems you can connect and where the conversation data is stored.
Meta's rules: the 24-hour window, templates, opt-in and pricing
Customer service window. When a user messages your business, a 24-hour window opens, and every new message from the user resets it. While the window is open, the bot can reply with free-form text. Once it closes, the business can only send message templates that Meta has approved in advance. This rule shapes the design of an AI chatbot: it handles conversations the user starts and does not open conversations on its own.
Opt-in before contacting people. Meta's WhatsApp Business Messaging Policy requires a business to obtain opt-in before messaging someone and to respect every request to stop messages or block the business. Local law adds its own layer: in the EU, data protection and electronic marketing rules apply, and in Turkey commercial electronic messages need the recipient's prior consent under Law No. 6563 on the Regulation of Electronic Commerce, with the national message management system (İYS) also in play. Check the current rules for your market with legal counsel; this article is not legal advice.
A path to a human. The same policy allows automation inside the 24-hour window but also requires a prompt, clear and direct way for the user to reach a human agent. Transferring the chat to an agent is one of the accepted paths. In other words, human handoff is not a nice-to-have on WhatsApp; it is a condition for automating at all.
General-purpose AI assistants. With the terms Meta updated in January 2026, AI providers that develop technologies such as large language models may only offer general-purpose AI assistants on the Business Platform where Meta is legally required to permit it (see Meta's page on AI providers). A bot that answers questions about a company's own products and services is a different use case, but it is still worth comparing your setup with Meta's current terms.
Pricing. According to Meta's pricing page, the platform has charged per message since July 1, 2025. Only messages the business sends and that are delivered are billed, and messages users send to you are free. Free-form replies inside the window, known as service messages, are billed from October 1, 2026 after a monthly free tier of 1,000 messages per business phone number. Template prices depend on the category and on the recipient's country. All of this comes on top of what the AI model costs for every answer it writes.
What are the building blocks of a WhatsApp AI chatbot?
The user sees a single chat, but five connected parts work behind it:
- WhatsApp Business account and number: a phone number registered on the Business Platform under your Meta business account, with an approved display name.
- Webhook service: Meta notifies your server about new messages. The service checks the signature to confirm the notification really comes from Meta, expects that the same notification can arrive more than once and pushes slow work to a queue.
- RAG layer: finds the document passages closest to the question and passes only those to the model.
- Language model and answer rules: writes the answer from those passages; when there is nothing to base an answer on, it follows the handoff rule instead of guessing.
- Operator panel and CRM connection: where your team watches conversations, takes over whenever it wants and where information from the chat is written to the CRM.
Choosing the model is only one link in this chain. A small model is often enough for short, repetitive questions, while questions that require reading several documents together call for a stronger one. Caching, short context and a spending cap per conversation keep the cost per message under control; we covered these techniques in our article on LLM cost optimization.
How to build a WhatsApp chatbot, step by step
- Write down the scope. Pull the most frequent questions from the last few months of real customer messages. Turn them into a written list of topics the bot answers and topics it hands straight to your team.
- Prepare the Meta side. Set up the Meta business account, the WhatsApp Business account and the number. Steps such as business verification and display name approval depend on Meta's review, so plan your timeline around them.
- Build the webhook service. Write the service that receives messages, verifies the signature, ignores duplicate notifications and sends the reply back through the Cloud API. A user's message must never get lost, even if the bot is slow to answer.
- Prepare the knowledge base. Collect FAQs, product information, return and delivery policies and similar documents. Remove texts that contradict each other or are out of date, then split the documents into passages and index them.
- Write the answer rules. The bot should say in its first message that it is an AI assistant, never ask for ID numbers or card details, keep answers short enough for a chat screen and refuse to guess when the documents do not cover a question.
- Define the handoff conditions. Typical triggers are a user asking for a person, the bot finding no supporting document, or topics such as complaints and refunds. The operator who takes over must see the whole conversation.
- Connect the CRM and internal systems. Decide which record each piece of information from the chat is written to. If the bot looks up data such as order status, give it read access to that data and nothing more.
- Test and launch in a controlled way. Build a test set from real questions, compare the answers with your documents, and after launch track why conversations are handed off and which questions remain unanswered.
When the bot can reach internal systems such as orders or customer records, permissions should be kept narrow from day one. We collected the principles for setting up that access safely in our article on taking AI agents to production with secure system access.
Where does the bot find its answers with RAG, and where does the data live?
With retrieval-augmented generation (RAG), the bot answers from your documents rather than from the model's general knowledge. The passages closest in meaning to the user's question are retrieved, and the model writes its answer based on them. When a document changes, the new version is re-indexed and the bot uses it from the next question onwards, without retraining the model.
The data boundary matters even more on WhatsApp, because users readily type personal details into a chat. Before setup, decide which documents the bot may use as sources, which fields are masked before they reach the model and how long conversation records are kept. Showing a link to your privacy notice at the start of the conversation is good practice. In the bots we build, conversation records are stored encrypted and kept only as long as necessary. We go deeper into this in our article on data boundaries for GDPR-compliant AI.
How do you design human handoff?
Good handoff means the user never has to explain the same thing twice. Before handing off, the bot collects the details the team will need (name, order number, topic), and the operator sees the full conversation when taking over. The user is told clearly that they are being transferred to a person.
Handoff works in two directions. The first is the bot handing off by itself: the business defines in its own panel when that happens and can change those conditions over time. The second is the operator stepping in: in the bots we build, an operator can join any conversation at any time. In both cases the bot should stay out of the conversation once it has been handed off; otherwise the user receives two different answers at once.
Handoff becomes more valuable when the CRM gets the context. If a summary of the chat, the user's request and the reason for handoff land on the right record, the team sees everything in one place. So far we have built integrations with Pipedrive, HubSpot and Uyumsoft. For other systems, the interface each system offers determines how deep the connection can go.
What can a WhatsApp AI chatbot not do?
- It cannot send free-form messages outside the window. After the 24-hour window closes, only approved templates can be sent. Campaigns and bulk announcements are not the job of a bot that answers questions.
- It cannot produce correct information that is not in your documents. If your documents are incomplete or contradictory, the bot does not fix that; it makes the gap visible. The list of unanswered questions shows what is missing.
- It does not take decisions that need a person. Approving refunds, resolving complaints, negotiating prices and giving legal, medical or financial advice should stay with your team.
- It cannot guarantee that every answer is right. Grounded answers and handoff rules lower the chance of mistakes but do not remove it, which is why conversation logs need regular review.
- It cannot bend Meta's rules. Users blocking or reporting your business can affect how Meta rates the quality of your number. A setup that sends unwanted messages puts the number at risk, however good the bot is.
We build the WhatsApp integration ourselves, directly on Meta's WhatsApp Business Platform, with no third-party intermediary in between, and Meta's rules always apply. The bots we build only answer conversations that users start. After launch there is a free support period, sized to the project, in which we handle small fixes; maintenance after that is billed separately. If the chatbot is part of a broader AI project, see our AI solutions page, or describe what you need through the quick quote form.
Frequently Asked Questions
Does Meta allow AI chatbots on WhatsApp? On the Business Platform, automation that answers your own customers' questions is allowed under conditions: the bot works inside the 24-hour window the user opens, users get a clear way to reach a human agent, and Meta's messaging policies are followed. Meta restricts general-purpose assistants offered by AI providers on the platform, so compare your use case with the current terms.
Can I connect AI to the regular WhatsApp Business app? The app's own automated messages are fixed texts and do not connect to outside software. Meta also offers its own business AI agent through the app, but availability and terms can change. A bot connected to your own documents and systems needs the Business Platform (Cloud API).
Can we use our existing WhatsApp number for the bot? In most cases yes, but the number has to be registered on the Business Platform. If it is currently used in the app, there are two routes: moving the number to the platform, or using the app and the platform on the same number, which Meta allows under certain conditions. Meta's onboarding flow and current terms decide which route is available.
Can the bot message customers first? Outside the window, messages can only be sent with templates approved by Meta and with the person's prior opt-in. Local law, such as consent and İYS rules for commercial messages in Turkey, applies on top. The bots we build only answer conversations that users start.
Are WhatsApp Business Platform messages paid? Meta charges per message and counts only delivered messages sent by the business; messages users send are free. From October 1, 2026, service messages inside the window have a monthly free tier of 1,000 per phone number, and the rest are billed. Template prices vary by category and country. The cost of the AI model comes on top.
Will an AI chatbot make up answers? A model can produce a plausible but wrong answer when it has nothing to base it on. To reduce this, answers are grounded in documents, questions without support go to the handoff rule instead of a guess, and unanswered questions are reviewed regularly. No setup can guarantee that every answer is correct.
How long does it take to set up a WhatsApp AI chatbot? It depends on the number of channels, how ready your documents are, the CRM and internal integrations, and Meta's verification and approval steps. Meta's review times are outside the business's control. A reliable timeline can only be given once the scope is written down.