WhatsApp Chatbot: How It Works and When Businesses Should Use It

How a WhatsApp chatbot works for businesses: official API, rule-based or AI bots (ChatGPT, n8n), Meta's rules, the app's auto replies and when to hand off to an agent.
Updated on Jan 16, 2018
How a WhatsApp chatbot works
In this article

A WhatsApp chatbot, often called a “WhatsApp bot”, answers customer messages on its own through the official WhatsApp Business API. It handles frequent questions, sorts requests, collects data and passes the conversation to an agent when needed. The newest ones use artificial intelligence to understand questions written the way customers actually write them.

WhatsApp chatbot, bot or robot: what each name means

WhatsApp chatbot, WhatsApp bot and WhatsApp robot are names for the same idea: a chatbot that serves customers on a company’s WhatsApp. But people use “WhatsApp bot” for three different things:

  • Rule-based chatbot: follows a flow built by the company, with menus and buttons (“type 1 for orders”). It always answers the same way and only understands what was planned.
  • AI chatbot: understands freely written sentences (“my order hasn’t arrived”) and answers based on the information the company provides, such as its catalog, policies and FAQs.
  • Meta AI: Meta’s own assistant, available inside the app to any user. It is for personal use and does not answer on behalf of any company.

This guide covers the first two: the bots companies use in customer service.

How a WhatsApp chatbot works, step by step

  1. Official API: the company’s number is connected to the WhatsApp Business API, Meta’s official way to integrate systems with WhatsApp. The connection is made directly with Meta or through a platform provider.
  2. Customer service platform: messages arrive in a system that holds the bot, the agent queue and the conversation history.
  3. Flow or AI: the bot answers, asks for data, checks systems (orders, payment slips, schedules) and decides the next step.
  4. Agent: when the bot cannot solve the issue or the customer asks, the conversation goes to a person on the team, with everything that has already been said.

You can also use the same number in the WhatsApp Business app and on the API at the same time, a feature called coexistence, which makes the move easier for companies that already serve customers through the app.

Sample flow for a small business

  • Greeting: “Hi! I’m Store X’s virtual assistant. How can I help?”
  • Menu: 1. Track my order; 2. Copy of my boleto (Brazil’s bank payment slip); 3. Returns; 4. Talk to an agent.
  • Data collection: for option 1, the bot asks for the CPF (Brazil’s individual taxpayer ID) or the order number.
  • Answer: it checks the system and reports the status and the expected delivery date.
  • Agent: if the order is late, if the customer types “agent” or if the bot fails to understand twice in a row, the conversation goes to the team’s queue.

What a WhatsApp bot does

  • Triage: identifies the subject and routes it to the right department.
  • Frequent questions: opening hours, address, payment methods, delivery times.
  • Document copies: sends a payment slip, an invoice or a tracking code.
  • Scheduling: books, confirms and reschedules appointments.
  • Lead qualification: asks what the prospect is looking for, company size and city, and passes them to the right salesperson.
  • Satisfaction survey: asks for a rating at the end of the conversation.

Rule-based bot vs. AI bot

CriterionRule-based botAI bot
How it understands the customerThrough planned options and keywordsThrough free-form sentences
CostLowerHigher, since it includes the use of the AI model
MaintenanceEdit the flow with every changeKeep the information the AI uses up to date and review answers
RiskCustomer stuck in a menuA wrong answer stated with confidence, if the information is poor
When to use itFew, well-defined subjectsMany different questions, written in many ways

Many companies combine both: a menu for the most common subjects and AI to understand what falls outside it.

AI on WhatsApp: ChatGPT, n8n and AI agents

Many people who search for “ChatGPT on WhatsApp” want exactly this: a virtual agent on WhatsApp that understands customers the way a person would. It is possible, as long as the connection goes through the official API. The most common setup is for the customer service platform to receive the message, send the question to a language model, such as OpenAI’s, together with the company’s information, and return the answer to the customer.

Automation tools such as n8n help build this chain without much code: they receive the message from the API, query the AI model and systems such as the CRM and the calendar, and reply. Three precautions apply to any setup:

  • Knowledge base: the AI only answers well what is in the information you provide. Prices, deadlines and policies must be up to date.
  • Clear limits: define what the AI must not do, such as give discounts or promise deadlines, and when it should call a person.
  • Personal data: conversations contain customer data. Check where the AI provider processes and stores this information, in line with the LGPD, Brazil’s data protection law.

Meta’s rules: official API, 24-hour window and message templates

  • 24-hour window: when a customer sends a message, the company can reply freely for 24 hours. After that, it can only start the conversation with a template message.
  • Message templates: texts approved by Meta before sending, split into the categories marketing, utility (such as an order confirmation) and authentication (access codes).
  • Billing: since July 2025, Meta charges per delivered template message, with rates that vary by country and category. Replies within the window opened by the customer are free, and so are utility templates sent within that window. Current rates are on Meta’s pricing page.
  • Unofficial tools: programs that automate the regular app or the WhatsApp Business app on a phone violate WhatsApp’s terms and can get the number banned. Messages blasted to people who did not ask for them also lead to reports and blocks.

Customer wants to talk? Receive WhatsApp calls on your team’s extension, from R$ 299 per month.

Talk to an expert

When to hand off to an agent or to a call

The bot should step aside when:

  • the customer asks to talk to a person;
  • the bot fails to understand the same message twice;
  • the subject is a complaint, a cancellation or a negotiation;
  • the customer is clearly upset;
  • the sale has reached the closing stage.

Always keep the option to talk to an agent visible. In some cases typing does not solve the problem and the customer wants to talk. Instead of asking them to call another number, the call can happen inside WhatsApp itself and ring on the team’s extension.

VulcaNet’s ChatBot hands the conversation off to the team and, if the customer wants to talk, the WhatsApp call rings on an extension with WhatsApp Business Voice Calling. To see both working together, talk to our team.

Does your team answer the same questions all day long?

VulcaNet’s ChatBot answers, sorts requests and hands off to an agent at the right time, on official WhatsApp.

Talk to an expert

On the phone, the role of the bot is played by the IVR (interactive voice response; see IVR for customer service) and, more recently, by the voice agent, which talks to callers using artificial intelligence. VulcaNet also offers a Voice Agent for companies that want to automate calls: talk to our team.

Automatic replies on WhatsApp: from the app to a chatbot

In the WhatsApp Business app

The free app has three simple automatic reply features, under its business tools:

  • Greeting message: sent to people who write for the first time or after a while without a conversation.
  • Away message: sent outside business hours, saying when the team will be back.
  • Quick replies: shortcuts to texts the team uses all the time.

They work for low volumes on a single phone. They do not sort requests, check systems or distribute conversations among several people.

With a chatbot on the official WhatsApp API

  1. List the ten subjects that come up most on WhatsApp and write the right answer for each one.
  2. Design the flow: greeting, menu, data to collect and hand-off points.
  3. Connect the number to the official API through the platform you chose and submit the message templates for approval.
  4. Test with the team before opening it to customers.
  5. Read the conversations every week during the first weeks and adjust the flow where customers get stuck.

A well-built bot is part of omnichannel customer service, where WhatsApp, the phone and other channels share the same history. See how to organize it in multichannel vs. omnichannel customer service and how to write the first messages in how to approach customers on WhatsApp. If you are still deciding which number to use, start with a WhatsApp number for your business.

Where to start

Export one week of conversations from the company’s WhatsApp and set aside the questions that repeat. If a few questions account for most messages, a rule-based bot will do; if the questions vary a lot, it is worth testing an AI bot, always with the option to talk to a person just one tap away.

Frequently asked questions

How does a WhatsApp chatbot work?

The company’s number is connected to the official WhatsApp Business API. Each incoming message goes to a customer service platform, where a rule-based flow or an artificial intelligence answers and, when needed, transfers the conversation to an agent.

Can I use ChatGPT on my company’s WhatsApp?

Yes, as long as it goes through the official WhatsApp Business API. The customer service platform sends the customer’s question to an AI model along with the company’s information and returns the answer. Define what the AI can answer and keep the option to talk to a person.

Does a WhatsApp bot cost money?

The simple automatic messages in the WhatsApp Business app are free. A real bot requires a platform, which usually has a monthly fee, and Meta charges per template message sent, with rates by country and category; replies within the 24-hour window opened by the customer are free.

Can using a bot on WhatsApp get my number blocked?

Not through the official API, within Meta’s rules. Unofficial tools that automate the app violate WhatsApp’s terms and can get the number banned, as can message blasts that many customers report.

How does the bot hand the conversation off to an agent?

When the customer asks, when the bot does not understand or when the subject requires a person, the platform transfers the conversation to the team’s queue, with the history and the data already collected.

Topics in this article
Share this article
Keep reading
Need help with your company's telephony in Brazil?

VulcaNet is a telecom carrier that builds cloud PBX, SIP trunking, IVR, dialers and omnichannel customer service. Talk to an expert and see what fits your operation.