# WhatsApp Chatbot: What It Is, How It Works and How to Build One

> WhatsApp chatbot explained end to end: what it is, how the bot works with rules or AI, free app or official API, how to build one in six steps, what it costs and examples by industry.

- **HTML version:** https://dev.tolky.to/en/blog/whatsapp-chatbot-how-it-works-how-to-create
- **Author:** [Marlos Carmo](https://dev.tolky.to/en/author/marlos), Co-founder of Tolky
- **Published:** June 4, 2026
- **Reviewed:** November 25, 2026
- **Language:** en

## Summary

A **WhatsApp chatbot** is software that receives the customer's message on the business number and replies on its own, using fixed rules (menus) or AI (an agent that understands intent and checks your systems), handing off to a person when needed. For a business, the path is the **official WhatsApp API** with a platform, in six steps: portfolio and verification, number, platform, content and templates, testing and measurement. The cost adds Meta's per-delivered-message rate to the platform subscription.

You want your business WhatsApp to answer on its own, at any hour, without turning into the "press 1" menu customers abandon. The question is where to start: free app or API, rule-based bot or AI, what it costs and what Meta allows.

This guide answers all of that in order and points to the deep dives on each detail: cost, Meta's rules, industry examples and building an AI agent.

*Updated in November 2026.*

**In short:**

- A **WhatsApp chatbot** is software that replies on its own from the business number. It works with **rules** (menus and buttons) or with **AI** (it understands free text, remembers context and checks your systems).
- The WhatsApp Business app has basic, free automations; flows, AI connected to your data, a team and integrations require the **official API** with a platform.
- Building a chatbot takes six steps: portfolio and verification on Meta, number connection, platform, content and templates, end-to-end testing and measurement.
- The cost has two parts: Meta's rate per delivered message, the same with any tool, and the platform subscription. Estimate it with the [WhatsApp API cost calculator](https://dev.tolky.to/en/resources/whatsapp-api-cost-calculator).
- Since January 15, 2026, Meta bars general-purpose AI assistants from the API; a chatbot that serves the company's own customers is still allowed.

## What is a WhatsApp chatbot?

**A WhatsApp chatbot is a program that receives the messages sent to a business number and replies automatically, without a person typing, following fixed rules or using artificial intelligence.** People also call it a WhatsApp bot, a WhatsApp robot or a virtual agent: it is the same thing.

The [chatbot](https://dev.tolky.to/en/glossary/rule-based-chatbot) handles what repeats: hours, prices, duplicate bills, order status, bookings, triage. When the topic calls for judgment or negotiation, it hands the conversation to someone on the team, with the history attached. What it can do depends on where it runs (app or official API), how it decides (rules or AI) and whether it reaches your systems.

General definition, across channels: [what is a chatbot](https://dev.tolky.to/en/blog/what-is-a-chatbot).

## How does a WhatsApp bot work?

**A WhatsApp bot works in three beats: the customer sends a message, Meta delivers it to the company's platform through a webhook, and the platform decides the reply (by rule or by AI) and sends it back through the API, within seconds.** On the official API there is no phone in the middle: everything happens between Meta's servers and the platform.

The [webhook](https://dev.tolky.to/en/glossary/webhook) is the automatic notice Meta sends for each message. The platform reads the text, voice note or button, identifies the contact and replies; if the rules say so, it opens a ticket, records the lead in the CRM or transfers to the team. The difference between chatbots lies in the decision, and there are two ways to decide.

### Rule-based bot (menus and buttons)

**A rule-based bot follows a decision tree written in advance: each option leads to a reply or to another menu.** It is predictable and cheap to build, and it works well for short flows, such as confirming an appointment or choosing a department.

The limit shows up off script: "I want to change the size on yesterday's order" doesn't fit "press 1 for Sales". The bot repeats the menu and the customer gives up.

### AI agent (AI chatbot)

**An AI agent reads the sentence as it comes, understands the intent, remembers what was said and answers from the company's content.** "I want to pay my bill" and "where do I get a copy of the invoice" lead to the same action, with no menu.

It uses a language model with [intent detection](https://dev.tolky.to/en/glossary/intent-detection), a company [knowledge base](https://dev.tolky.to/en/blog/train-ai-agent-knowledge-base) (the technique called [RAG](https://dev.tolky.to/en/glossary/rag) grounds the answer in that material) and, when integrated, actions in your systems: looking up an order, issuing a duplicate bill, booking a slot. When confidence is low or the topic is sensitive, it does a [handoff](https://dev.tolky.to/en/glossary/handoff) to a person with a summary of the conversation.

| Criterion | Rule-based bot | AI agent |
| :--- | :--- | :--- |
| How it understands | Only the menu options | Free text, typos and slang included, and voice notes |
| Off script | Repeats the menu or gives up | Reads the intent and answers |
| Context | Not kept | Remembers what was said in the conversation |
| Actions | Replies and routes | Looks up and records data in your systems |
| Maintenance | Redraw the tree at every change | Update the knowledge base |
| Handoff to a human | When the menu runs out | By the rules you set, with a summary |

In practice, both coexist: rules for what can't vary and AI for everything else. A hands-on test to tell them apart is in [conversational AI vs. traditional chatbot](https://dev.tolky.to/en/blog/conversational-ai-vs-traditional-chatbot-2026), and the full concept in [AI-powered chatbot](https://dev.tolky.to/en/blog/ai-chatbot-what-it-is-how-it-works).

## WhatsApp Business app or official API: where does the chatbot run?

**The [WhatsApp Business app](https://dev.tolky.to/en/glossary/whatsapp-business-app) is free and only automates the start of a conversation, with greeting and away messages and quick replies; the [official WhatsApp Business API](https://dev.tolky.to/en/glossary/whatsapp-business-platform) connects the number to a platform and enables flows, AI connected to your data, multiple agents and integrations.** For a business operation, the chatbot runs on the API.

Without a subscription, the app runs on one phone and up to four linked devices ([multiple agents, WhatsApp Help Center](https://faq.whatsapp.com/395911122612120/), checked on November 18, 2026). On some accounts, Meta also enables its own AI agent inside the app, covered in [WhatsApp Business AI agent](https://dev.tolky.to/en/blog/is-whatsapp-business-ai-agent-free).

| Criterion | WhatsApp Business app | Official API with a platform |
| :--- | :--- | :--- |
| Automation | Greeting, away messages and quick replies | Flows, rules and an AI agent |
| AI connected to your systems | Does not connect to systems | Yes, through integrations and APIs |
| Team | Up to four linked devices | Multiple agents in one inbox |
| CRM and history | Labels on the device | CRM, history and reports |
| Software cost | Free | Platform subscription |
| Meta rate | None | Per delivered message, by category |

You don't have to give up the app to use the API. With [coexistence](https://dev.tolky.to/en/glossary/coexistence), in many cases the same number stays on the phone and on the API at the same time, with a few app features fewer; details in [WhatsApp coexistence](https://dev.tolky.to/en/blog/whatsapp-coexistence-business-app-and-api). The full feature-by-feature comparison is in [WhatsApp Business chatbot: free app or API](https://dev.tolky.to/en/blog/whatsapp-business-chatbot-free-app-vs-official-api).

Be wary of tools that ask you to scan the WhatsApp Web QR code: they automate the app from the outside, break the terms and put the number at risk. See [the risks of unofficial APIs](https://dev.tolky.to/en/blog/unofficial-whatsapp-api-risks).

## How do you build a WhatsApp chatbot, step by step?

**Building a WhatsApp chatbot on the official API takes six steps: portfolio and verification on Meta, number connection, platform choice, content and templates, end-to-end testing and measurement.** Part of it is Meta signup; the rest is conversation design, which is where results are decided.

### Steps 1 and 2: Meta and the number

**The first step is a business portfolio on Meta and a number that can receive the confirmation code.** [Business verification](https://dev.tolky.to/en/glossary/business-verification) isn't required to start, but it unlocks higher limits. The [messaging limit](https://dev.tolky.to/en/glossary/messaging-limit) for business-initiated messages starts at 250 unique contacts a day and rises to 2,000 with verification, shared across the whole portfolio ([messaging limits, Meta documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/messaging-limits), checked on November 16, 2026). This limit doesn't affect replies to customers who write first.

The signup walkthrough is in [how to get the official WhatsApp Business API](https://dev.tolky.to/en/blog/how-to-get-official-whatsapp-business-api).

### Steps 3 and 4: platform and content

**The API has no screen of its own, so the chatbot needs a platform to run on, and its quality depends on the content you put there.** Start with the ten topics that come in most: write the right answer for each, the data the chatbot should ask for (ID, order number) and when it hands off to a person.

To reach someone who hasn't written in the last 24 hours, you need a Meta-approved [template](https://dev.tolky.to/en/glossary/whatsapp-message-template) and recorded [opt-in](https://dev.tolky.to/en/glossary/opt-in). Inside the [24-hour window](https://dev.tolky.to/en/glossary/whatsapp-24-hour-window), the conversation is free-form. The rules are in [24-hour window and templates](https://dev.tolky.to/en/blog/whatsapp-24-hour-window-templates-campaigns). If you are going with an AI agent, follow [how to create an AI agent for WhatsApp](https://dev.tolky.to/en/blog/how-to-build-a-whatsapp-ai-agent); for the general method, on any channel, [how to create a chatbot](https://dev.tolky.to/en/blog/how-to-create-a-chatbot).

### Steps 5 and 6: testing and measurement

**Before opening to customers, test a covered question, an out-of-scope one, an unanswered one, a template outside the window and the handoff to a person.** After launch, track resolution without a human, handoff rate, first response time and cost by category, and review every week the conversations that went to the team: they show what the knowledge base is missing.

## How much does a WhatsApp chatbot cost?

**A WhatsApp chatbot on the official API costs the sum of two parts: Meta's rate per delivered message, which is the same with any tool, and the subscription of the platform that runs the bot.** In the WhatsApp Business app, the basic automations cost nothing.

Since July 1, 2025, Meta charges per delivered message, by category (marketing, utility, authentication and service) and by the recipient's country. Since October 1, 2026, service messages are charged too, with 1,000 free service messages per number each month; messages the customer sends are not charged ([WhatsApp Business Platform pricing, Meta documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing), checked on November 25, 2026). Rule-based bots and AI agents pay the same rate; what changes is the platform and, with AI, the model cost.

| Path | Software cost | Meta rate |
| :--- | :--- | :--- |
| WhatsApp Business app | Free | None |
| Platform on the official API | Subscription; with AI, the model included or billed separately, depending on the vendor | Per delivered message, by category |
| Build your own (n8n or code) | Hosting, AI model and maintenance hours | Per delivered message, by category |

To estimate your Meta bill for your volume, use the [WhatsApp API cost calculator](https://dev.tolky.to/en/resources/whatsapp-api-cost-calculator). Rates by country and category are in [new WhatsApp Business pricing](https://dev.tolky.to/en/blog/whatsapp-business-pricing-october-1-brazil), and the full math with platform, AI and setup in [how much an AI agent for WhatsApp costs](https://dev.tolky.to/en/blog/whatsapp-ai-agent-pricing).

## Is there a free WhatsApp chatbot?

**Yes: the WhatsApp Business app automations are free, and some platforms have a free plan on the official API, such as Tolky's Individual plan, which includes WhatsApp and webchat with AI, 1 user and 150 conversations a month.** On the API, Meta's rate is a separate bill, paid directly to Meta, and the 1,000 free service messages per number help those just starting out.

The overview of free options, across channels, is in [free chatbot](https://dev.tolky.to/en/blog/free-chatbot). For the team and the pipeline, see [free WhatsApp shared inbox](https://dev.tolky.to/en/blog/free-whatsapp-shared-inbox-multiple-agents) and [free WhatsApp CRM](https://dev.tolky.to/en/blog/free-whatsapp-crm).

## Which WhatsApp chatbot fits a small business?

**With one or two people and a few conversations a day, the app automations are usually enough; when the queue builds up, the team needs more than four devices or the answer depends on a system, it is time for the API with a platform.** What to automate first and the cost math are in [WhatsApp chatbot for small business](https://dev.tolky.to/en/blog/whatsapp-chatbot-for-small-business).

## WhatsApp chatbot examples by industry

**A WhatsApp chatbot takes on different jobs by industry: in retail it tracks orders and returns, in healthcare it books and confirms appointments, in finance it issues duplicate bills and negotiates, in insurance it opens claims.** The table sums up what each one solves and points to the industry guide.

| Industry | What the chatbot solves | Guide |
| :--- | :--- | :--- |
| Ecommerce | Order status, tracking, returns and abandoned carts | [Ecommerce chatbot](https://dev.tolky.to/en/blog/ecommerce-chatbot) |
| Clothing stores | Size charts, stock, exchanges and in-chat sales | [Chatbot for clothing stores](https://dev.tolky.to/en/blog/chatbot-for-clothing-stores) |
| Clinics and healthcare | Booking, appointment confirmation and care with sensitive data | [WhatsApp chatbot for clinics](https://dev.tolky.to/en/blog/conversational-ai-clinics-healthcare-lgpd) |
| Hotels | Bookings, check-in and guest requests | [Hotel chatbot](https://dev.tolky.to/en/blog/hotel-chatbot-whatsapp) |
| Pet shops | Grooming, vaccine reminders and delivery | [Pet shop chatbot](https://dev.tolky.to/en/blog/pet-shop-chatbot) |
| Insurance | Quotes, claims notice and renewals | [Chatbot for insurance companies](https://dev.tolky.to/en/blog/chatbot-for-insurance-companies) |
| Collections | Reminder sequences, duplicate bills and payment deals | [Debt collection chatbot](https://dev.tolky.to/en/blog/debt-collection-chatbot-whatsapp) |
| Banks | Service with authentication and industry rules | [Chatbot for banks](https://dev.tolky.to/en/blog/chatbot-for-banks) |

![Service robot in a public space, an image that recalls how chatbots evolved from rigid scripts to agents with context, while the experience still needs to feel human](https://dev.tolky.to/blog/inline/generated/photo-1531747118685-ca8fa6e08806.jpg)

More real conversations, across channels, are in the [chatbot examples](https://dev.tolky.to/en/blog/chatbot-examples). By industry, Tolky also has pages for [retail and ecommerce](https://dev.tolky.to/en/industries/retail-and-ecommerce), [healthcare](https://dev.tolky.to/en/industries/healthcare) and [insurance](https://dev.tolky.to/en/industries/insurance).

## What does Meta allow for AI chatbots on WhatsApp?

**Meta allows AI chatbots that serve the company's own customers; since January 15, 2026, the WhatsApp Business Platform terms bar providers whose main function is the AI itself, such as general-purpose assistants.** That rule is what took ChatGPT and Copilot off WhatsApp.

The text is in the AI providers section of the [WhatsApp Business Platform terms](https://www.facebook.com/legal/Meta-Terms-for-WhatsApp-Business-Platform). An agent that answers about a company's orders, schedule or contract uses AI as a means, not as the product, and remains allowed. In Brazil, the competition authority CADE suspended the rule in January 2026; the full timeline, with decisions and sources, is in [does WhatsApp ban general-purpose AI chatbots?](https://dev.tolky.to/en/blog/whatsapp-bans-general-purpose-ai-chatbots).

Opt-in before outbound messages, approved templates outside the window and honoring opt-outs still apply, and they weigh on your [number quality](https://dev.tolky.to/en/glossary/number-quality-rating).

## Which mistakes break a WhatsApp chatbot?

**The mistakes that break a WhatsApp chatbot most often are a dead-end menu, an outdated knowledge base, no handoff to a person and outbound messages without opt-in.** All of them are easy to fix when caught early.

1. **Dead-end menu.** The bot repeats the options when the customer goes off script. Always offer "talk to a person".
2. **Stale knowledge.** Prices and policies change and the answer doesn't. Give the knowledge base an owner and a review date.
3. **Handoff without context.** The team asks everything again. See the [AI-to-human handoff rules](https://dev.tolky.to/en/blog/ai-to-human-handoff-7-rules).
4. **Messaging without opt-in.** Reports drag down number quality; learn [why numbers get banned](https://dev.tolky.to/en/blog/banned-from-whatsapp).
5. **Not measuring.** Without resolution and handoff by topic, you can't tell what to improve.

## How do you choose a WhatsApp chatbot?

**Choose by what the operation needs to solve, not by the feature list: official API, AI grounded in your content, actions in your systems, handoff to people with context, a CRM built in and predictable cost.** The table lists the questions to ask a vendor.

| Criterion | Question for the vendor |
| :--- | :--- |
| Channel | Does it run on the official WhatsApp API, with coexistence in the app? |
| AI | Does it answer from my company's content and respect limits I set? |
| Actions | Does it look up and record data in my systems during the conversation? |
| Team | Can several people work one inbox, with transfers and history? |
| CRM | Are leads and deals created from the conversation, with no copy and paste? |
| Measurement | Does it show resolution, handoff, response time and satisfaction? |
| Cost | Does it separate the subscription from Meta's rate, with no surprises? |

The full vendor evaluation guide is the [12-question checklist to choose a WhatsApp AI agent](https://dev.tolky.to/en/blog/how-to-choose-ai-agent-for-whatsapp-checklist), and a market comparison is in [best WhatsApp AI agent platforms](https://dev.tolky.to/en/blog/best-whatsapp-ai-agent-platforms-2026).

## How Tolky goes beyond the chatbot

**Tolky is CRM + CX + AI integrated: the agent serves customers on WhatsApp through the official API, solves with your content and your systems, records everything in the CRM and hands off to the team with context when the rules say so.** It is a chatbot that solves complex problems, not one that only replies.

- **An agent with a mission and limits.** You choose the mission (support, sales and relationship, engagement), teach it with texts, files and links and set the scope. See [Tolky's AI chatbot for WhatsApp](https://dev.tolky.to/en/features/whatsapp-chatbot).
- **Actions during the conversation.** Forms, tickets, CRM deals and system lookups through [WhatsApp automation flows](https://dev.tolky.to/en/features/whatsapp-automation-flows), with HTTP requests, APIs and more than 1,000 connectable apps.
- **The team on the same screen.** The [WhatsApp shared inbox](https://dev.tolky.to/en/features/whatsapp-shared-inbox) distributes conversations and keeps the history and summary in view.
- **A CRM born from the conversation.** Tolky's [WhatsApp CRM](https://dev.tolky.to/en/features/whatsapp-crm) records contacts and opportunities and integrates natively with HubSpot, Salesforce and Pipedrive.
- **Ready use cases.** [WhatsApp customer service](https://dev.tolky.to/en/solutions/whatsapp-customer-service), [WhatsApp sales](https://dev.tolky.to/en/solutions/whatsapp-sales) and [WhatsApp scheduling](https://dev.tolky.to/en/solutions/whatsapp-scheduling).

![Real screenshot of Tolky's Conversations screen, with the list of WhatsApp conversations, a preview of each request, date filters and the menu with Flows, Automations and Follow Up](https://dev.tolky.to/screenshots/conversas-whatsapp-en.png)

The platform handles more than 5 million AI messages a month, with more than 67% resolution by AI. The Individual plan is free and already serves customers on WhatsApp; the other plans are on [pricing](https://dev.tolky.to/en/pricing).

## Frequently asked questions

### What is a WhatsApp chatbot?

It is a program that replies on its own to messages sent to a business number, using fixed rules or artificial intelligence, and hands the conversation to a person when needed. It is also called a WhatsApp bot.

### How does a WhatsApp bot work?

Meta delivers the customer's message to the company's platform through a webhook, and the platform decides the reply and sends it back through the API within seconds. A rule-based bot follows a menu; an AI agent understands free text and checks your systems.

### How do I create a WhatsApp chatbot?

On the official API, in six steps: portfolio and verification on Meta, number connection, platform, content and templates, end-to-end testing and measurement. Start with the ten topics that come in most and define from day one when the conversation goes to a person.

### Do I need the official API to have a WhatsApp chatbot?

For greeting and away messages and quick replies, the WhatsApp Business app is enough. For flows, AI connected to your data, multiple agents and integrations, the path is the official API with a platform. See the [benefits of the WhatsApp Business API](https://dev.tolky.to/en/blog/whatsapp-business-api-benefits-for-your-company).

### How much does a WhatsApp chatbot cost?

Meta charges per delivered message, by category and country, with 1,000 free service messages per number each month since October 1, 2026; the platform bills separately. Estimate Meta's part with the [WhatsApp API cost calculator](https://dev.tolky.to/en/resources/whatsapp-api-cost-calculator).

### Are AI chatbots allowed on WhatsApp?

Yes, when they serve the company's own customers. Since January 15, 2026, Meta's terms bar general-purpose AI assistants such as ChatGPT from the API, but not an agent that answers about a company's products and services.

### Does a chatbot replace the customer service team?

It takes on the repetitive work and frees the team for cases that call for judgment and negotiation, always with a handoff to a person with context.

### Do I need to code to build a WhatsApp chatbot?

On a platform, the knowledge base and rules are edited by the business team, with no code; integrations with internal systems may need technical help. If you prefer to build it yourself, follow the guide to an [AI agent for WhatsApp with n8n](https://dev.tolky.to/en/blog/whatsapp-ai-agent-n8n).

### Does Tolky's chatbot integrate with my CRM?

Yes. Tolky has its own CRM and native integration with HubSpot, Salesforce and Pipedrive; RD Station CRM and Pipefy connect through the API and webhooks. Other systems connect through REST API, HTTP requests, MCP tools and more than 1,000 apps in Flows.

---

## Conclusion

A WhatsApp chatbot works when the path is clear: official API for a business operation, rules for what can't vary, AI for open conversation and a person always one step away, with context. Follow the six steps in order, start with the topics that repeat most and measure resolution and handoff from the first week.

[See the plans](https://dev.tolky.to/en/pricing), [explore the AI chatbot for WhatsApp](https://dev.tolky.to/en/features/whatsapp-chatbot), [estimate Meta's cost](https://dev.tolky.to/en/resources/whatsapp-api-cost-calculator) or [talk to the team →](https://dev.tolky.to/en/contact). Let's talk?

---

This is the Markdown version of the page. The full version, with images and navigation, is at https://dev.tolky.to/en/blog/whatsapp-chatbot-how-it-works-how-to-create

Tolky: https://dev.tolky.to
