Guide

How to Build a WhatsApp Chatbot: Step-by-Step Guide (2026)

Learn how to build a WhatsApp chatbot in 2026: pick one of four routes, see Meta's new fees, follow 7 no-code steps and test before launch.

Gopi Krishna Lakkepuram · Founder & CEO

· Updated · 25 min read

TL;DR: If you're working out how to build a WhatsApp chatbot, you need three things: the official WhatsApp Business Platform (not the WhatsApp app on your phone), a Meta business portfolio with your business details ready for verification, and a phone number that isn't registered on the WhatsApp app. Then you either connect a no-code AI agent from a Meta Tech Provider, or build on Meta's Cloud API yourself. Most small businesses should take the no-code route. The slow part is Meta's business verification, not the build. This guide covers the four routes, the 2026 rules (Meta's AI policy, the October 2026 pricing change and messaging limits), a 7-step setup, a test matrix and a plan for handing conversations to a human.

An illustrative case: at 10:15 on a Sunday night, a guest booked into your boutique hotel for Tuesday sends a WhatsApp message: "Is late check-out possible, and what does it cost?" Nobody sees it until 8am. By then she has messaged two other hotels, and one of them answered at 10:16.

That guest isn't unusual. WhatsApp has more than 3 billion monthly users, according to Meta's Q1 2025 results as reported by TechCrunch. Many of your customers already message you there, often outside business hours.

How to build a WhatsApp chatbot

What a WhatsApp chatbot is (and what it isn't)

A WhatsApp chatbot is software connected to the WhatsApp Business Platform that replies to customers on your business number automatically, using information you give it.

It is not a way to automate your personal WhatsApp app or the WhatsApp Business app on your phone. Tools that script those apps break Meta's terms and put the number at risk. It's also not a replacement for your team. A complaint, a refund dispute or a high-value sale still needs a person.

There are two broad kinds:

  • Rule-based bots follow menus and keywords. "Reply 1 for prices, 2 for hours." They're predictable, but they break as soon as a customer types something you didn't plan for.
  • AI agents read the customer's message and answer from your own website pages and documents. They handle "do you do emergency call-outs in Leeds on a Sunday?" without you writing a menu for it.

If you searched for "WhatsApp AI chatbot development", this is the kind you want, and this guide focuses on it.

Is a WhatsApp chatbot allowed in 2026? Meta's AI policy in plain English

Yes, as long as it serves your business. Meta added AI-provider terms to the WhatsApp Business Platform in October 2025. According to TechCrunch, the terms applied to new users from October 15, 2025 and to all users from January 15, 2026. They bar general-purpose AI assistants: the "ask me anything" kind whose main purpose is to be a chatbot.

Bots that handle support, sales or notifications for your own business are unaffected, according to TechCrunch and respond.io's summary of the policy. A dental clinic agent that answers questions about hours, new-patient steps and booking is the allowed kind. An agent that writes essays or plans holidays for anyone who messages it is not.

What this means for your setup:

  • Scope the agent to your business. Tell it to decline unrelated requests politely and steer back to what you offer.
  • Have it answer only from your sources. That keeps it on topic and keeps its answers accurate.
  • Don't connect a general chat assistant to your number "as is". Even if it worked in 2025, it's the type of use the policy targets.

This is not legal or compliance advice. Read Meta's current WhatsApp Business terms, or ask your own counsel if your use case is unusual.

What you need before you start (checklist)

Before you create a WhatsApp chatbot, get these four things ready. Most go-live delays trace back to one of them.

ItemWhyTip
Meta business portfolio with verified business detailsMeta checks that you're a real business before you can message at scaleUse your exact legal name, address and website, and keep them identical everywhere. Mismatches are a common cause of delay
A phone number not registered on the WhatsApp app or WhatsApp Business appA number can't be on the app and on the Business Platform at the same timeIf your number is on the app now, remove it from the app first or follow your provider's migration steps. Check what happens to existing chats before you switch
Your sourcesThe agent can only answer what you give itCollect the 20–30 questions customers actually ask, plus prices, hours, policies, service area and your booking link
An escalation planSome messages need a person, fastWrite down who gets emergencies, complaints and "can I speak to someone", and how quickly they should reply

Four ways to build a WhatsApp chatbot: which fits your business

If you have no developer on staff, there are four realistic routes.

RouteWhat you doSkills neededWhat it costsBest forWatch out for
WhatsApp Business app auto-repliesSet a greeting message, an away message and quick replies in the appNoneYour time to write the messagesA sole trader with low volumeFixed text only. It's tied to the app and can't answer specific questions or hand off with routing
No-code AI agent from a Meta Tech ProviderSign up, connect your number, add your website pages and documents, set the routingNone; you work in a browserPlatform subscription plus Meta's per-message feesSmall businesses answering repeat questions about prices, hours and availabilityCheck which channels and features each plan includes, and how Meta's fees are passed on
Provider plus a flow builder (Landbot-style flows or Make-style scenarios)Design menus, branches and automations, then connect them to WhatsAppSome logic design; comfort with if/then flowsOne or more subscriptions plus Meta's feesFixed processes such as order status or structured intakeYou maintain every branch. Free-text questions often fall through
Custom build on Meta's Cloud API (or Twilio)Write and host the code that receives messages, decides what to say and sends repliesA developer, during the build and afterwardsEngineering time to build, host and maintain, plus Meta's feesUnusual logic or in-house systems no platform supportsYou own uptime, retries, templates, grounding, handoff and policy compliance

For a fuller cost and risk comparison, see our guide on build vs. buy for small businesses.

BSP, Tech Provider or Cloud API direct: what the terms mean

Three terms come up whenever you research WhatsApp chatbot development:

  • Cloud API is the version of the WhatsApp Business Platform that Meta hosts. You can connect to it directly through a Meta developer app if you're writing your own code.
  • Business Solution Provider (BSP) is a company Meta works with to give businesses access to the platform. A BSP often handles onboarding and messaging setup for you.
  • Meta Tech Provider is a company whose software connects businesses' own WhatsApp accounts to Meta's platform, so you don't manage credentials or hosting yourself.

For this decision, what matters is that whoever you use connects through Meta's official Business APIs, not a workaround on the consumer app. Hyperleap AI, an AI front desk for small businesses, is a Meta Technology Provider and Business Partner, and its WhatsApp, Instagram and Messenger channels run on Meta's official Business APIs.

Verdict: for a dental clinic, plumbing company, real estate office or insurance agency answering the same questions every day, a no-code AI agent is usually enough. Custom development makes sense when you need logic or connections to systems no platform supports. It's rarely the right first step.

Split panel: the business provides verification details, a dedicated number, content, greeting and escalation rules, and testing in a browser; the no-code platform handles the API connection, infrastructure, grounding and hosting

How to set up a WhatsApp chatbot in 7 steps (no code)

If you're looking for how to create a WhatsApp chatbot without writing code, these steps use Hyperleap as the example, but the Meta requirements are the same on any legitimate platform. For the general version of this process across channels, see how to build an AI chatbot without code.

The seven WhatsApp chatbot setup steps: the agent is live in minutes, Meta business verification takes a few business days while the knowledge base, greeting and routing are built in parallel, and the number is connected and tested once Meta verifies; outbound-only templates need Meta's review before use

Step 1: Pick a platform on Meta's official Business APIs

Choose a provider that connects through Meta's official APIs. Then choose a plan by the number of agents and replies you need.

Hyperleap's plans:

PlanPriceAI agentsAI replies per monthNotable extras
Plus$40/mo13,000Shares your booking link
Pro$100/mo212,000White-label, in-chat booking with Calendly or Cal.com, team takeover, Actions, webhooks
Max$200/mo530,000Same features as Pro, with more agents and replies

All four channels (website, WhatsApp, Instagram DM and Messenger) are included on every plan, for each agent. Hyperleap counts one AI reply as one response, with no model-credit math. There's no free plan. Every plan has a 7-day free trial, and a card is required.

Hyperleap says the agent itself can be live in under five minutes. Connecting WhatsApp follows your provider's onboarding, which may include Meta's business verification.

Step 2: Start Meta business verification

Begin the WhatsApp connection inside the platform. You'll link or create a Meta business portfolio and submit your legal business name, address and website. Meta may ask for supporting documents. Send them quickly: a slow reply on your side is the easiest delay to avoid.

Your provider's onboarding decides whether verification must be finished before you go live. In Meta's messaging limits, verification is also one way past the starting limit of 250.

How long it takes depends on Meta. Infobip estimates 2–7 business days. Do Steps 4 to 6 while the review runs.

Step 3: Connect your number and confirm the code

When your provider's onboarding reaches this point, add the phone number you're using and confirm you control it.

If this step fails, the usual cause is that the number is still registered on the WhatsApp app or WhatsApp Business app. Remove it from the app, or finish the migration steps, and try again.

Step 4: Add your sources

This step decides how good the answers are. In Hyperleap you choose the sources the agent answers from: website URLs, PDF, .docx, .doc and .txt documents, plain-text snippets and FAQs, up to 40MB per agent. Answers are grounded in those documents using retrieval-augmented generation (RAG): the agent looks up the relevant passage before it replies, and it's designed to minimize hallucinations.

Three things make the difference:

  • Write answers the way customers ask. A patient types "how much is a cleaning?", not "hygiene service fee schedule". Put the customer's wording in your FAQ.
  • Be specific. "Emergency call-outs: 7 days a week, 7am–10pm, £95 call-out fee within the M25" (illustrative) beats "we offer emergency services".
  • Set the fallback. Decide what the agent says when your sources don't contain the answer, for example "I'll pass that to the team, and they'll reply by 10am tomorrow."

Hyperleap shows the source behind each answer in the conversation log, so you can see where a wrong answer came from and fix that document. For a deeper walkthrough, see how to write the FAQ your bot answers from.

Step 5: Write the greeting and instructions, and set contact capture

Greeting. Keep it to two lines that say what the agent can help with. For example (illustrative, for a plumbing company): "Hi, this is Northside Plumbing's assistant. I can help with prices, availability and booking a visit. What do you need?"

Instructions. Set the tone, the scope and the limits. Include the AI-policy point from earlier: answer only about your business, and politely decline anything else. Hyperleap reads your website, recognizes your industry (healthcare, dental, real estate, hospitality, home services, insurance, legal and others) and writes a starting greeting and instructions tailored to it. Edit those rather than starting from a blank page.

Contact capture. The customer's number and profile name arrive with their first message, and the agent can ask for an email address during the chat.

Languages. The agent replies in 100+ languages. If a customer writes in Spanish, it answers in Spanish.

Step 6: Set up routing and handoff to a human

A WhatsApp chatbot with no way to reach a person is a dead end. Write the routing down before launch. Here's a starter matrix (illustrative, for a dental clinic) you can copy:

SituationWhat the agent doesWho gets itTarget response
Pain, swelling or an injuryGives your emergency instructions from your sources and routes emergencies to your teamOn-call dentist's phone and emailWithin 30 minutes
Complaint or billing disputeAcknowledges it and doesn't argue or promise anythingPractice managerSame business day
"Can I talk to a person?"Confirms that someone will reply and whenFront deskWithin 2 business hours
New-patient enquiryAnswers, collects the details and offers bookingFront desk (lead email)Next business morning
Reschedule or cancellationCollects the details and passes them onFront deskSame business day

What Hyperleap does at each step:

  • Lead and transcript emails. The team gets an email for each new lead, followed by the conversation transcript.
  • Takeover (Pro and Max). Your team can take over any conversation from the inbox and reply themselves.
  • AI follow-ups (Pro and Max). You write a plain-English instruction. After 2 to 180 minutes of quiet, the AI decides whether to email chosen team addresses a summary and a suggested reply. This runs once per conversation.
  • Booking. On Pro and Max with Calendly or Cal.com, the agent offers real open times and books the appointment in the conversation. On Plus, or with any other booking tool, it shares your booking link. Booking creates new bookings only, which is why reschedules route to a person in the matrix above.

For more routing patterns, see our guide to chatbot lead routing.

Step 7: Test, then announce your number

Run the test matrix below from your own phone. When everything passes, put the WhatsApp number on your website contact page, your Google Business Profile, your email signature and your in-store or vehicle signage. If you sell online, our guide to WhatsApp chatbots for ecommerce covers conversation flows for product questions.

The 2026 rules: windows, templates, pricing and limits

If you've read up on how to create a WhatsApp bot, you may have seen the line "replies within 24 hours are free". From October 1, 2026, that's true only up to a monthly allowance.

Last verified: November 2026. These figures come from Meta's public documentation on WhatsApp pricing and messaging limits. Rates vary by market and change only on January 1, April 1, July 1 or October 1. Check Meta's current rate card before you budget.

RuleWhat it means for you
24-hour customer service windowAfter a customer messages you, you can reply freely for 24 hours from their last message. Outside that window, you need an approved message template
Message templatesPre-written messages Meta reviews before you can use them. You need them to start a conversation or to re-open one after the window closes. If you don't send outbound messages, you can launch without any
Per-message pricingSince July 1, 2025, Meta charges per message, by category and market, and only when the message is delivered. Messages from customers to you are free
October 1, 2026 changeService messages (your free-form replies inside the window) get 1,000 free per month per business phone number. After that, they're charged. Utility templates sent inside the window are also charged
Government and non-profitsEligible government and non-profit organizations stay free through December 31, 2027
Meta Business Agent categoryA new pricing category added on July 1, 2026, at $2.00 per 1M tokens. Ask your provider whether it applies to their AI replies
Click-to-WhatsApp adsA customer who arrives through one of these ads opens a free entry window of up to 7 days
Messaging limitsSet per business portfolio. They start at 250 and rise to 2,000, 10,000, 100,000, then unlimited. Business verification is one way past 250. Only messages sent outside customer service windows count

Messaging limits rarely affect a front desk. If customers message you first and you reply inside the window, those replies don't count toward the limit. The limits matter for businesses that send many outbound templates.

Outbound campaigns are a different job. Hyperleap is built to answer the customer who messages first, not to run outbound template campaigns or broadcasts. If outbound messaging is central to your plan, look at a messaging platform such as respond.io.

What a WhatsApp chatbot really costs: an illustrative example

Total cost has three parts: the platform, Meta's fees and your time. These numbers are illustrative.

Say a plumbing company gets 300 WhatsApp conversations a month. An average conversation involves about 6 AI replies, so that's roughly 1,800 replies a month.

Cost lineIllustrative figureNotes
PlatformPlus, $40/mo1,800 replies fits within Plus's 3,000
Meta service messagesAbout 1,800 replies on one numberFrom October 2026, the first 1,000 per month per number are free. The remaining ~800 are charged at Meta's rate for your market (ask your provider whether the service or Meta Business Agent category applies) (rate card)
Your setup timeDepends on how organized your existing information isMostly gathering and rewriting your sources and writing the routing matrix
Optional managed setupListed at $299, shown as "Free right now"A one-time optional add-on, available on all plans, where Hyperleap sets up the agent. It's not included in any plan

Then stress-test the plan. If a cold snap doubles enquiries to 600 conversations, that's about 3,600 replies: more than Plus covers, while Pro's 12,000 gives you room. The messages Meta charges for would also rise, to roughly 2,600 beyond the free 1,000.

Ask any platform you evaluate two questions before you sign up. How are Meta's fees passed on to you? Does the Meta Business Agent category apply to their AI replies? Answers differ by provider, so get them in writing.

Can you build a WhatsApp chatbot for free?

Partly. The WhatsApp Business app's auto-replies are fixed text, not a chatbot that answers questions. Meta gives you 1,000 free service messages per number per month. Twilio's sandbox lets developers test a bot before WhatsApp approval. A real AI agent on the Business Platform almost always involves a paid platform or developer time. Hyperleap has no free plan; you get a 7-day trial on any plan, with a card required.

Test matrix: run this before you announce your number

Message your business number from your own phone and work through every row. The examples are for an illustrative dental clinic. Swap in your own.

Phone messaging the business's own WhatsApp number beside a six-item go-live checklist, with unknown questions triggering the escalation path highlighted

TestExample messageExpected resultPass/Fail
Top question"How much is a scale and polish?"The exact price from your price list, with nothing invented
Hours"Are you open Saturday?"Correct Saturday hours, and any holiday closures
Out of scope"Who won the 1998 World Cup?"A polite decline that steers back to the clinic
Emergency"Cracked molar, face is swelling"Your emergency instructions, and the conversation routed to the on-call team
Request for a human"Can I talk to a person?"Confirms that someone will reply and when, and the team is alerted
After hoursSend at 11pmA helpful answer, with honest timing for human follow-up
Another language"¿Aceptan pacientes nuevos?"A correct answer in Spanish
Booking request"Can I book a check-up next week?"Pro/Max with Calendly or Cal.com: open times offered and booked in the chat. Plus or another tool: your booking link
Not in your sources"Do you offer sedation for children?" (if undocumented)The fallback fires. No guessing
Reschedule"I need to move Thursday's appointment"The details are collected and routed to the front desk

Then check what happens behind the scenes:

  • The lead record shows the customer's name and number.
  • The new-lead email and the transcript reach the right inbox, not a shared address nobody reads.
  • In the conversation log, each answer points to the source you expected.

After launch, review the conversation logs weekly for the first month. Every "I don't know" and every wrong answer points to something missing from your sources. Add the missing answer to your FAQ and re-run that test.

For developers: WhatsApp chatbot development with the Cloud API, Python or Twilio

This section is for readers writing code. If you're using a no-code platform, skip ahead. If you came looking for a WhatsApp bot development guide, this is the short version.

The architecture is simple. The work is in the details.

  1. Get Cloud API access. Set up a Meta developer app connected to a business portfolio and a phone number.
  2. Register a webhook. Meta sends each inbound message to an HTTPS endpoint you host.
  3. Decide the reply. Run your logic: keyword rules, a flow or a model call grounded in your documents.
  4. Send the reply back through the Cloud API.
  5. Store conversation state. Track each conversation's history and when each customer's 24-hour window closes.

Twilio's Python and Flask tutorial shows the same loop using Twilio's sandbox, which lets you test before WhatsApp approval. A public launch still needs approval. The same pattern applies in Node.js.

What you take on with a custom build:

  • Hosting and reliability. Your webhook has to be up when Meta calls it, and it has to handle retries without sending duplicate replies.
  • Template management. You create, submit and track templates for anything outside the 24-hour window.
  • Grounding. You need retrieval over your documents, a fallback for unanswered questions, and a way to see why the bot said what it said.
  • Handoff. You need an inbox where a person can take over a conversation, and an alert when they need to.
  • Policy compliance. You must keep the bot scoped to your business under Meta's AI-provider terms.

There's also a middle path: keep a no-code agent and connect it to your systems. Hyperleap offers a REST API and MCP access to leads, conversations and analytics. Pro and Max add signed webhooks covering new leads, conversations, messages, AI replies and bookings, with an HMAC-SHA256 signature on every request, and up to 10 Actions per agent, which let the agent call your own API mid-conversation to look something up or submit data. If you're comparing build options more broadly, our guide to chatbot development frameworks covers the trade-offs.

Common mistakes when you build a WhatsApp chatbot

  • Automating the WhatsApp app instead of using the Business Platform. Scripts and unofficial tools on the consumer app break Meta's terms. The number is what you risk losing.
  • Launching with thin sources. An agent that can't answer your ten most common questions frustrates people more than no agent at all.
  • No handoff path. If "can I talk to someone?" goes nowhere, the customer leaves, often annoyed.
  • Assuming in-window replies are free. From October 2026, they aren't beyond Meta's monthly allowance.
  • Building a general-purpose assistant. An "ask me anything" bot is the kind Meta's AI-provider terms bar. Keep the agent on your business.
  • Forgetting the 24-hour window in follow-ups. Once the window closes, you can't send free-form messages. Plan team follow-ups to happen inside it, or plan for templates.
  • Treating launch as the finish line. The first weeks of real conversations show you what your sources are missing. Review the logs every week.

One front desk, four channels: your next step

The questions people send on WhatsApp also arrive through your website chat, Instagram DMs and Facebook Messenger. A dental patient who asks about prices on WhatsApp today might ask the same thing on your Instagram tomorrow. Four separate bots means four sets of answers to keep up to date.

Hyperleap treats WhatsApp as one channel your front desk covers. The same agent answers on your website, WhatsApp, Instagram DM and Messenger. All four channels come with every plan, and the Meta channels run on Meta's official Business APIs. Conversations from all four appear in one inbox, labelled with the channel each came from. The website widget embeds on Shopify, WordPress, Webflow, Squarespace, Wix or custom HTML.

Know the limits before you choose it. Hyperleap has no email inbox, SMS, voice or ticketing. It works next to a shared inbox such as Front or Help Scout, not instead of one. If you need tickets with SLAs and queues, a helpdesk such as Zendesk or Freshdesk fits better. If outbound WhatsApp campaigns are the main job, respond.io is the better starting point.

Your next step this week:

  1. Scroll back through the last month of WhatsApp messages and write down the 20 questions you answered most often.
  2. Start Meta business verification, using your exact legal details.
  3. Fill in the routing matrix from Step 6 with real names.

If most of those 20 questions are the same ten asked again and again, start Hyperleap's 7-day trial (card required) and run the test matrix before you announce your number. If you're still comparing tools, read our guide to the best AI chatbot for WhatsApp Business. When WhatsApp is working, our Instagram DM automation setup guide covers the next channel.

Sources

Frequently Asked Questions

What do I need to build a WhatsApp chatbot?

You need the official WhatsApp Business Platform, not the WhatsApp app on your phone. You also need a Meta business portfolio with your business details ready for verification, and a phone number that isn't registered on the WhatsApp app or the WhatsApp Business app. Finally, you need the sources the agent will answer from and an escalation plan for messages that need a person.

How do I create a WhatsApp chatbot without coding?

Connect your number to a no-code AI agent from a Meta Tech Provider. Then add your sources, write the greeting and instructions, set up routing and handoff, and run a test matrix before you announce the number. For most small businesses this fits better than a custom build. A custom build only makes sense when you need logic or system connections that no platform supports.

Are AI chatbots like ChatGPT allowed on WhatsApp in 2026?

Yes, as long as the bot serves your business. Meta's AI-provider terms, which apply to all users from January 15, 2026, bar general-purpose 'ask me anything' assistants. Bots that handle support, sales or notifications for your own business are not affected. You can use an AI model behind a business agent if it's scoped to your business and isn't offered as a general assistant. This is not legal advice, so check Meta's current terms.

How much does a WhatsApp chatbot cost in 2026?

The total cost has three parts: the platform, Meta's per-message fees and your time. Hyperleap's plans cost $40, $100 or $200 a month. Each has a 7-day trial that requires a card, and there's no free plan. Meta's rates vary by market, so check its current rate card and ask any provider how Meta's fees are passed on to you.

How long does it take to set up a WhatsApp chatbot?

The agent itself can be ready quickly. Connecting WhatsApp depends on your provider's onboarding, which may include Meta's business verification. Infobip estimates verification takes 2–7 business days. While the review runs, you can add your sources and write the greeting, instructions and routing.

Related Articles

View all

Written by

Gopi Krishna Lakkepuram

Founder & CEO

Gopi leads Hyperleap AI with a vision to transform how businesses implement AI. Before founding Hyperleap AI, he built and scaled systems serving billions of users at Microsoft on Office 365 and Outlook.com. He holds an MBA from ISB and combines technical depth with business acumen.

Published June 24, 2026 · Last updated November 25, 2026

Explore Hyperleap AI

An AI front desk that answers customer questions, collects contact details, and books appointments on your website and messaging channels.