# How to create a WhatsApp chatbot: two routes, step by step

> Create a WhatsApp chatbot two ways: connect your number to a platform with a built-in AI agent, or build on Meta Cloud API. Steps, checklist, test plan.

Leonard Loo · CEO & Co-Founder, Volty

Updated Nov 6, 2026

6 min read

To create a WhatsApp chatbot, connect your business number to the WhatsApp Business Platform, give the bot the information and rules it needs, test it in private, and switch on replies. There are two routes: use a platform that has a chatbot or AI agent built in, which takes an afternoon and no code, or write your own on Meta's Cloud API, which takes a developer and gives full control. This guide walks through both, then the checklist that applies to either.

## Before you start: decide four things

- The job. Pick one: answer enquiries, book appointments, take orders or qualify leads. A bot that tries everything on day one tests poorly.
- The number. Use the number customers already know. If it runs on the WhatsApp Business app today, plan for coexistence so the app keeps working. If it is a personal WhatsApp account, move it to a business account first.
- The knowledge. Gather your price list, policies, opening hours, FAQs and the 30 questions customers ask most.
- The handover. Decide who takes over, when, and during which hours.

## Route 1: use a platform with a built-in AI agent

This route suits businesses without developers, and most small and mid-sized teams. The platform is a Meta-approved provider that handles the technical connection, and the chatbot is a feature inside it.

- Sign up and connect your number. The provider walks you through Meta's Embedded Signup, where you log in to Facebook, choose or create a business portfolio and verify the number with a code. Meta's flow for existing WhatsApp Business app users asks you to confirm the connection in the app, and then lets you choose whether to share chat history.
- Add knowledge. Point the bot at your website and upload your documents. The AI reads them and answers from them. Keep these files current, because the bot will repeat what it finds.
- Write instructions in plain words: how to greet, what to ask before quoting, what never to promise, when to hand over.
- Connect the tools it needs to act, for example a calendar for bookings or your customer records for leads.
- Set the reply mode to draft. The bot writes a reply and a person sends it, so you see what it would say to real customers with no risk.
- Test with a colleague's phone using the questions from the list above, then review the drafts for a week.
- Switch to automatic replies for the topics where drafts went out unchanged, and keep drafts for the rest.

## Route 2: build on Meta's Cloud API

This route suits teams with developers who want a custom bot. Meta's get-started guide outlines the steps.

- Register as a Meta developer, and create an app in the App Dashboard with the use case to connect with customers through WhatsApp. Select or create a business portfolio.
- In API Setup, connect the app to a WhatsApp Business (Messaging) account and select a phone number. Meta provides a test number for development, which you can message from your own phone.
- Generate a temporary access token and send a test message to your own number.
- Set up a webhook endpoint on a server you host. Meta posts each incoming message and status event to it. Meta's guide uses a small echo bot to prove that events arrive.
- Create a permanent access token through a system user in Business Settings, with the business management and WhatsApp messaging and management permissions, so the bot keeps working after the temporary token expires.
- Reply by calling the messages endpoint of the Graph API. Free-form text replies work while the 24-hour customer service window is open, and only approved templates work outside it.
- Add the brain. Send the customer's text to a language model together with retrieved passages from your documents, then send the model's answer back. The article on retrieval for WhatsApp chatbots shows the pattern.
- Build everything around it: a place for staff to see and take over conversations, logging, retries, template management, opt-out handling and monitoring. This is the large part of the work.

On this route the inbox, handover and template tooling can cost more to build than the bot itself. If your goal is a working agent rather than a software project, Route 1 reaches that sooner.

## Which route to pick

|  | Platform with built-in agent | Cloud API build |
| --- | --- | --- |
| Time to a first working bot | An afternoon | Days to weeks |
| Coding needed | None | Webhook, hosting, model calls |
| Staff inbox and handover | Included | You build it |
| Control over every detail | Within the platform's settings | Full |
| Best for | Businesses that want results soon | Products where the bot is the core feature |

## Sample instructions for a booking bot

Instructions work best as short, concrete rules. Here is a starting point for a clinic or salon, to adapt to your own business.

- Greet the customer by name if you know it, and ask what treatment or service they are interested in.
- Before offering a time, ask for their preferred day and whether this is their first visit.
- Quote prices only from the price list. If a price is not listed, say a team member will confirm it.
- Never give medical advice. If the customer describes symptoms, hand over to staff.
- If the customer is upset, or asks for a person twice, hand over and summarise the chat for the teammate.

## Two rules to build in from day one

- Opt-in. Replying to someone who messaged you is fine. Starting a conversation with a template needs their opt-in, covered in the WhatsApp opt-in guide.
- An escalation path. Meta's policy lets you automate replies in the window as long as customers also have a prompt, clear and direct way to reach a person. In-chat handover to a human agent is the simplest way to satisfy it.

## A test plan that catches real problems

| Test | What good looks like |
| --- | --- |
| A question whose answer is in your files | Correct, short, with the right figure |
| A question whose answer is not in your files | Says it does not know and offers a person |
| A rude message | Stays polite and hands over |
| A request to speak to a human | Hands over at once |
| A message in another language | Replies in that language |
| A photo or voice note | Handled, or acknowledged with a reply |
| A follow-up sent 25 hours after the customer's last message | Uses an approved template |

## What it costs to run

A platform route has three parts: the subscription, Meta's fees and AI usage. Meta charges by template category and recipient country, and since October 1, 2026 also charges for service replies after 1,000 free a month per number. The WhatsApp pricing calculator estimates the Meta part for your volume. A custom build adds hosting, a language model bill and developer time.

## After launch: the first four weeks

- Week one: drafts only. Fix any wrong answers at the source document, so the bot does not repeat them.
- Week two: automatic replies on the safest topics, such as opening hours and prices.
- Week three: read every conversation that ended in a handover and ask whether the bot could have handled it with better information.
- Week four: compare first-reply time and booked outcomes with the month before.

## Creating one in Volty

In Volty you connect your WhatsApp number, point Volty at your website and documents, and tell it what to do in plain language. Each inbox chooses between replying on its own, writing drafts for your team to approve, or staying out, and a schedule can use drafts in office hours and auto-replies at night. When a teammate corrects a reply, Volty keeps the lesson. Volty works on an existing number through coexistence. No code is needed, and a lesson Volty suggests can wait for the owner's approval before it applies. The WhatsApp AI page shows the steps, and pricing lists plans by market.

## Frequently asked questions

How do I create a WhatsApp chatbot?

Connect a business number to the WhatsApp Business Platform, give the bot its knowledge and rules, test it, then turn on replies. The fastest route is a platform with a built-in AI agent that connects your number and reads your website and documents. The developer route is to build on Meta's Cloud API and host your own webhook.

Do I need to code to build a WhatsApp chatbot?

No, if you use a platform that has a bot or AI agent built in. You need code only on the Cloud API route, where you create a Meta app, set up a webhook endpoint that receives messages, and call the messages endpoint to reply.

Can I create a WhatsApp chatbot for free?

You can test for free with Meta's test number on the Cloud API, but a live bot has costs. Expect a platform subscription if you do not code it, Meta's message fees by category and country, and hosting or AI usage fees on a custom build.

Which number should I use for the chatbot?

Use your real business number so customers recognise it. If that number runs on the WhatsApp Business app today, connect it to the Platform through coexistence and keep using the app. A new number for the bot must not already be registered on regular WhatsApp.

How do I make the chatbot hand over to a human?

Define the triggers in advance, such as a complaint, a refund request or a customer asking for a person. The bot then assigns the chat to a teammate and stops replying. Meta's policy also requires a prompt and clear path to a person whenever you automate replies.

## Recommended for you

How to train an AI agent on your business, step by step · HubSpot WhatsApp Integration: Options, Steps and Limits · Instagram CRM: Turn DMs Into Customer Records · Omnichannel CRM: How It Works and How to Choose One · Salesforce WhatsApp Integration: Routes, Setup and Limits · Social CRM: What It Is and How It Works for Small Teams · How to Switch to a Business Account on Instagram (2026) · Instagram Widget for Your Website: Feed, DM Button or Chat · Make vs Zapier: Pricing, WhatsApp and Which One to Pick

## Start your Sandbox Trial

Email us questions · Start your Sandbox Trial

Sign up for our 7-day trial. No credit card needed.

Future-proof your business with AI. Hear from our CEO

The Leonard and Volty Show · October 8, 2026

Meta now charges for WhatsApp replies

The Leonard and Volty Show · October 1, 2026

Too busy to hire?

The Leonard and Volty Show · September 21, 2026

From $500 chatbot jobs to agentic AI

The Leonard and Volty Show · September 10, 2026

Your AI is a new employee

The Leonard and Volty Show · September 4, 2026

Trust in the AI world

The Leonard and Volty Show · August 29, 2026

Does the AI model matter?

The Leonard and Volty Show · August 19, 2026

What are AI agents?

Meta now charges for WhatsApp replies. Here's what it means for your business, October 8, 2026

## Links

- [retrieval for WhatsApp chatbots](https://voltade.com/blog/improving-whatsapp-chatbot-understanding-with-rag)
- [the WhatsApp opt-in guide](https://voltade.com/blog/whatsapp-opt-in)
- [WhatsApp pricing calculator](https://voltade.com/resources/tools/whatsapp-pricing-calculator)
- [WhatsApp AI page](https://voltade.com/product/whatsapp-agent)
- [pricing](https://voltade.com/pricing)
- [How to train an AI agent on your business, step by step](https://voltade.com/blog/how-to-train-ai-agent)
- [HubSpot WhatsApp Integration: Options, Steps and Limits](https://voltade.com/blog/hubspot-whatsapp-integration)
- [Instagram CRM: Turn DMs Into Customer Records](https://voltade.com/blog/instagram-crm)
- [Omnichannel CRM: How It Works and How to Choose One](https://voltade.com/blog/omnichannel-crm)
- [Salesforce WhatsApp Integration: Routes, Setup and Limits](https://voltade.com/blog/salesforce-whatsapp-integration)
- [Social CRM: What It Is and How It Works for Small Teams](https://voltade.com/blog/social-crm)
- [How to Switch to a Business Account on Instagram (2026)](https://voltade.com/blog/how-to-switch-to-business-account-on-instagram)
- [Instagram Widget for Your Website: Feed, DM Button or Chat](https://voltade.com/blog/instagram-widget)
- [Make vs Zapier: Pricing, WhatsApp and Which One to Pick](https://voltade.com/blog/make-vs-zapier)
