Skip to content
SiagaAI

Automatic replies

How to build a WhatsApp chatbot: the official route, your number, its answers, and testing before launch

How to build a WhatsApp chatbot the official way: tools and costs, number and Meta account requirements, your existing number, answer data, and testing.

Written by the SiagaAI team

19 min read

Agent settings in the SiagaAI dashboard: a reminder to add business knowledge, then the agent's tone and its name in chat.
On this page

A safe WhatsApp chatbot takes an official route. Use Meta Business Agent in the WhatsApp Business app, or the WhatsApp Business Platform via an authorized provider or your own code. The Platform needs a Meta business portfolio, a number that can receive SMS or calls, and a payment method. Write its answer data, decide when it hands off, then test.

Which chats can you hand to a WhatsApp chatbot?

Say you run an AC servicing business with two technicians. From morning to late afternoon you're at customers' homes, while the business phone keeps buzzing. People ask how much it costs to clean one unit, whether you cover the next district, or what time you could come tomorrow. You only get to reply at night, one chat at a time, and the answers are nearly the same as yesterday's.

A chatbot can answer most of those. It has to connect through a route that won't get your number banned and answer only from data you wrote, then get tested before customers use it. Code isn't covered line by line here, because the decisions and preparation are the same whichever tool you use.

Chat types at an AC servicing business and who should answer them
Service pricesExample questionHow much to clean one AC unit?Who answersThe chatbot, from the price list you wrote
Area and hoursExample questionDo you cover the next district?Who answersThe chatbot, from your business data
Free slotsExample questionCan you come at 10 tomorrow?Who answersA chatbot connected to your technicians' schedule, or you if it isn't
Faults and complaintsExample questionMy AC keeps dripping, why?Who answersYou or a technician, after the chatbot passes the chat on

The free-slot row needs a chatbot that can read your schedule. In SiagaAI, free slots are offered from your schedule on every plan. There's a sample conversation in AC service bookings over chat.

Which way of building a chatbot fits your business?

A chatbot from an authorized provider or your own code has to connect through the WhatsApp Business Platform, often called the WhatsApp API. The exception is Meta Business Agent, Meta's own AI agent that runs inside the WhatsApp Business app. The table also covers two options that come up a lot when you search for a free chatbot, along with their limits.

Ways to build a WhatsApp chatbot, what you pay, and their limits
WhatsApp Business app auto repliesFitsSending a greeting and your hoursWhat you payFreeLimitsThe text is written in advance, so it can't answer questions that vary
Meta Business Agent in the WhatsApp Business appFitsBusinesses that want an AI agent in the app they already useWhat you payFree up to a monthly allowance, then a Meta One planLimitsOnly available to select businesses so far, and messages in chats that use it are collected to improve AI at Meta
Apps or tutorials that link your number by scanning a QR codeFitsNot recommended, least of all for a business numberWhat you payOften free or cheapLimitsAn unofficial route that breaks WhatsApp's terms, and the number can be banned
A chatbot service from an authorized providerFitsBusinesses that don't want to run servers or codeWhat you payThe provider's fee, Meta's message rates, and AI costs if it uses AILimitsHow it answers depends on the service: menus, keywords, or AI
Your own code on the Cloud API, for example with Python or n8nFitsDevelopersWhat you payMeta's message rates, a server, and the AI modelLimitsYou handle tokens, webhooks, templates, and answer safeguards

How to set up the app's built-in auto replies is in WhatsApp Business auto replies, with sample wording for your business type in the auto reply templates.

According to the WhatsApp Help Center, Meta Business Agent answers questions about your hours, location, products, and prices from your public profiles, website, and catalog. It's only available to select businesses in some countries so far, so it may not show up in your app. Its pricing and use of chat data are covered in SiagaAI vs Meta Business Agent.

For businesses without a developer, WhatsApp's help page on Business Solution Providers (BSPs) (opens in a new tab) says you can work with a BSP, bot platforms included. The same page says third parties offering unauthorized services, such as automated or bulk messaging, violate its terms, and recommends authorized BSPs instead.

Unofficial routes usually link your number as a device through a QR code from a third-party app, the way WhatsApp Web does. A QR code inside Meta's own sign-up window is different: that's an official verification step. How unofficial routes differ from the official one, and which AI chatbots Meta has banned since January 15, 2026, is covered in WhatsApp chatbot rules.

Even among authorized providers, chatbots answer in different ways. A menu or keyword chatbot replies when the customer taps a button or types a word you've registered. WhatsApp reply buttons max out at three per message, and longer menus go in an interactive list message. A customer who writes “hi 2 ac units plus freon how much” often matches no keyword at all. An AI chatbot can read a message like that, as long as its answers are tied to your data.

What do you need before the chatbot is connected?

Before signing up, get a Meta business account and a number that can receive a verification code, and decide who pays the message charges. With a provider, most of it is created in their sign-up flow, but you still decide what goes in:

  • A business portfolio in Meta Business Suite. It holds a WhatsApp account for the number and a Messaging account for templates and billing details.
  • A number you own, with a country code, that can receive an SMS or call for the verification code. Meta recommends a mobile number, and numbers behind an automated phone menu (IVR) that can't take the registration call aren't supported.
  • A two-step verification PIN, which you must set when registering the number.
  • A display name that reflects your business name: not a generic term, without Official or Verified, without promotional wording, and not a website address.
  • A Visa or Mastercard credit card on the Messaging account, unless you use a Solution Partner, which has a credit line from Meta and bills your usage itself. Meta says credit card payment is only available in supported countries, and American Express and PayPal aren't accepted. The currency is chosen when the Messaging account is created and can't be changed afterwards.

You can start sending right away without waiting for a display name review, since that review only comes once your business qualifies for higher messaging limits. Business verification in Meta Business Suite is required for Official Business Account status, and is one way to raise your messaging limit and how many numbers you can add. A decision can take up to 14 working days, and verification doesn't give you a verified badge.

The messaging limit for new businesses, 250 unique customers per 24 hours, doesn't hold back a chatbot that replies. It only covers messages outside the customer service window. That window opens for 24 hours when a customer messages or calls you, and resets each time they write again. So the chatbot's replies to someone who just asked don't count. Once the window closes, the chatbot can only send templates Meta has approved.

What are the steps to build a WhatsApp chatbot?

With a provider, you sign up in a Meta window opened from the provider's site, then add your data and test the chatbot before switching it on. If you build it yourself, you start with a Meta app and a test number, and move to your business number once everything works.

  1. The preparation above is done

  • Through an authorized provider

    1. Sign up in Meta's window: portfolio, number, verification code, and display name

    2. Add a card if the provider isn't a Solution Partner

    3. Add your answer data, test, then switch it on

  • Your own code on the Cloud API

    1. Create a Meta app, then test on the test number

    2. Set up a system user token and a webhook

    3. Register your business number and card, then switch it on

Steps to build a WhatsApp chatbot through an authorized provider and with your own code, according to Meta's docs.

That sign-up window is called Embedded Signup. In it you pick or create a business portfolio and WhatsApp account, enter and verify the number, and write a display name. If the provider is a Solution Partner or works with one, the chatbot can start messaging right away. If not, Meta first asks for a payment method on your Messaging account.

If you build it yourself, Meta creates test accounts and a test number as soon as you create an app with the WhatsApp use case on the Cloud API (opens in a new tab). The test number needs no payment method, so send your test chats there before using your business number. For real customers, swap the temporary token, which expires quickly, for a permanent one from a system user. You also need your own webhook endpoint, since every customer message reaches your server through a webhook.

What if the number is already on the WhatsApp Business app?

A number still in use on WhatsApp can't be registered for the Cloud API straight away. What happens depends on who connects it.

  1. The number is still on the WhatsApp Business app

  • Registered directly

    1. The app account is deleted first

    2. Chat history is lost and the number leaves the app

  • Through a provider (coexistence)

    1. The app on your phone keeps working alongside the chatbot

    2. Groups, broadcast lists, and linked devices change

Two paths for a number already used on the WhatsApp Business app, according to Meta's docs.

If it's registered directly, the app's chat history is lost, and the number can only go back to the WhatsApp Business app after it's deregistered from the Cloud API.

The second path, usually called coexistence, only works through an authorized provider and needs WhatsApp Business app version 2.24.17 or later. You can still reply from your phone. One-to-one chats from the last 6 months can sync to the provider's system, but photos and files only from the last 14 days. What to know before connecting it:

  • Group chats don't sync, so you keep answering them from your phone.
  • Broadcast lists can't be created anymore, and existing ones become read-only.
  • Disappearing messages, view once, and live location are turned off in one-to-one chats.
  • Linked devices such as WhatsApp Web are unlinked when you connect, and can be linked again except WhatsApp for Windows and Wear OS.
  • The connection drops if WhatsApp Business isn't opened on the main phone for about 14 days.

To stop using coexistence, you disconnect from the app under Settings > Account > Business Platform, then Disconnect Account.

Indonesian numbers (+62) can be connected this way. Still, don't delete an account or change anything until the provider confirms your number meets the requirements, including the app version. A third option, a new number that has never been on WhatsApp, can be registered right away, as long as your customers know about it.

How do you keep a chatbot from making up prices?

Give it one source of answers that you wrote yourself, and have it pass the chat on when the answer isn't there. If your AC cleaning price appears in an old flyer, an Instagram caption, and a note on your phone with different numbers, the chatbot can pick the wrong one. Write each price once, in one place, and change it there when it goes up.

Business data sheet for a chatbot

Business name: [business name] Service area: [districts or cities you cover]. Outside the area: [your answer, for example not yet] Opening hours: [days and hours]. Closed: [dates you're closed] Services and prices: - [service name]: [price], about [duration] - [service name]: [price], about [duration] Not included in the price: [for example extra piping or removal and reinstallation] We don't do: [for example washing machine repairs] Payment: [for example cash, bank transfer, or QRIS] Hand off to a person when: the customer complains, asks for a repair price that isn't on this sheet, sends a photo, or asks to talk to someone. If the answer isn't on this sheet: say you don't know yet, then pass it to [your name or team].

Paste it where your chatbot reads from: the knowledge field of a chatbot service, or your prompt and database if you built it yourself. Once the chatbot is running, collect the questions it passes on because the answer is missing, and add those answers to the sheet.

SiagaAI answers from your Q&A, services and prices, opening and staff hours, and business knowledge: notes, websites, or PDF, DOCX, TXT, MD, and CSV files. Answers in Q&A are sent exactly as you wrote them, and prices in Services & prices win over numbers in your knowledge. Nothing outside these is made up. SiagaAI's WhatsApp connection isn't available yet, while Telegram can be connected now. In the dashboard, the sheet goes into these menus:

  • Services and prices into Schedule → Schedule settings → Services & prices.
  • Opening hours into Schedule → Schedule settings → Opening hours.
  • Your area, payment methods, and what you don't do into the Info tab under AI agent → Business knowledge.
  • Answers that must go out word for word into the Q&A tab under AI agent → Business knowledge.

Questions the agent couldn't answer collect in the Not answered yet tab on the same page, with Add answer.

When should the chatbot hand a chat to a person?

When the answer needs a person's judgment or isn't in your data, and whenever the customer asks for one. At an AC servicing business, that means a photo a technician needs to see, a repair price you haven't written down, and complaints about a late technician. For a dripping or noisy unit, the chatbot can offer the checkup service from your data, but a technician judges the cause.

Meta also requires a route to a person. The WhatsApp Business Messaging Policy (opens in a new tab) allows automated replies during the 24-hour window, as long as prompt, clear, and direct escalation paths are available. The policy's examples are a handover to a person in the chat, a phone number, email, support on the business website, an in-store visit, or a support form.

When it hands off, the chatbot should tell the customer a person will take it from here, then stay quiet in that chat until you reply. Otherwise the customer waits without news, or the chatbot answers in between your replies.

In the SiagaAI dashboard, when chats get handed off is set under When to hand chats off to you in a profile at AI agent → Agent settings. A chat is handed off to you when a customer complains, asks something your business data doesn't cover yet or sends a voice note, video, or file. All of these are on from the start and you can turn them off; when off, the chat gets the best answer available or a reply that it isn't known yet. You can also turn on a handoff when a customer sends a photo, and write other conditions yourself, for example a customer asking for a discount. Emergencies, refund requests, requests to talk to a person, failed replies and answers blocked by the safety check are always handed off to you. SiagaAI then stops replying in that chat and lets you know.

How do you test the chatbot before customers use it?

Send chats the way your customers actually write them, including tricky ones, and check every answer against your data sheet. Take the questions from last week's chats, abbreviations and typos included, then add a few whose answers are deliberately missing from your data.

Test chats for an AC servicing business

hi how much to clean 1 ac unit? and 3 units plus a freon top up? do you cover [district outside your area]? can you come tomorrow at 10? it's [wrong price] like last time right? any promo this month? my AC keeps dripping, why? [send a photo of the AC unit] your technician was 2 hours late yesterday, not happy can I just talk to a person Cuci AC 1 unit berapa?

In the answers, check that:

  • Prices and durations match the data sheet exactly.
  • The wrong price gets corrected, and no promo is invented.
  • Free slots are offered from your schedule, or handed off to you if your chatbot doesn't read a schedule yet.
  • The dripping AC gets offered your checkup service if it's on the data sheet, with no guess at the fault. The photo, the complaint, and the request for a person are handed off, with a clear message to the customer.
  • The question in Indonesian gets an answer in Indonesian.

With SiagaAI, type these test chats in Test, beside the settings on the AI agent → Agent settings page. On a phone, open Test with its button at the top of the page. Your agent answers with the settings on that page, including unsaved ones. The answers aren't sent to customers and don't use SiagaAI credits. When an answer uses Q&A or business knowledge, Answered from under it names the source, so you know what to fix. A question your data has no answer for gets Not in Business knowledge yet and an Add answer button. A chat the agent hands off says Handed off to you, with the reason.

The agent reads photos from the start, so to hand off the unit photo as the data sheet says, turn on Customer sent a photo in the Hand off to you tab. Test only takes text, so send the photo from another phone. Flip the switch next to the Agent settings title from Off to On, then send a chat to your business's connected account. You'll see how it went in Messages. While it's on, the agent also replies to other customers.

Can a WhatsApp chatbot be free, and what does it cost a month?

Partly. The WhatsApp Business app's auto replies are free but don't answer questions, while Meta Business Agent is free up to a monthly allowance if it's available to your business. A chatbot on the WhatsApp Business Platform has three costs: Meta's message rates, the provider or server, and the AI model if it uses one. Meta notes that AI is usually billed by the AI provider, separately from message delivery.

Chatbot replies inside the 24-hour window that aren't templates count as service messages. Since October 1, 2026, each business number gets 1,000 free service messages a month, then each further reply to an Indonesian number costs IDR 356.65. Messages from customers aren't charged, and neither are messages you send yourself from the app with coexistence. Guides that still say service replies are always free have been out of date since then.

Say the AC business sends 1,500 replies a month from one number. The first 1,000 are free, so Meta charges IDR 178,325 for the remaining 500, before provider and AI costs. If the Messaging account has no payment method, replies beyond the first 1,000 aren't delivered.

Work out your own usage, including reminder and promo templates, with the WhatsApp message cost calculator.

What can you do today?

Back to the AC business. These steps work before you've picked any tool:

  • Fill in the business data sheet with today's prices.
  • Copy ten questions from last week's chats into your test list.
  • If your business number is on the WhatsApp Business app, don't delete anything until a provider confirms it can be connected through coexistence.

Then send these questions to the providers you're considering, so you can compare their answers:

Questions for WhatsApp chatbot providers

1. Are you an authorized WhatsApp Business Platform provider (Solution Partner or Tech Provider)? 2. Can my number, already used on the WhatsApp Business app, be connected without deleting it (coexistence)? 3. Are Meta's message charges paid through you, or with my own card? 4. How are AI costs counted, and what happens when the allowance runs out? 5. When the chatbot doesn't know the answer, where does the chat go, and how am I notified? 6. Where are customer chats stored, for how long, and can I export or delete them?

The last question concerns your customers' personal data, covered in Indonesia's PDP Law for customer chats.

If you want to try an AI agent that answers from your business data now, SiagaAI connects to Telegram. The trial lasts 14 days on the Starter plan with 200 SiagaAI credits, counted from when your first channel is connected. See how the agent works on the Reply page.

Common questions

Can a chatbot use my personal WhatsApp number?

Yes, if you own the number and it can receive SMS or calls, but not while it stays on regular WhatsApp.

It has to be deleted from WhatsApp first, or moved to the WhatsApp Business app and connected through a provider that supports coexistence.

When connecting through coexistence, you can choose to share the last 6 months of one-to-one chats with the provider, chats with family and friends included. A business-only number makes that choice simpler.

Can a chatbot message customers first?

Yes, but only with a Meta-approved template and to customers who agreed to receive your messages. A template approval decision can take up to 24 hours.

The limit on messaging first can rise from 250 to 2,000 customers per 24 hours once your business is verified, by you or your provider. It can also rise after 2,000 high-quality template messages reach unique customers within 30 days. Meta then reviews your message quality before approving the increase.

Sources

  1. WhatsApp Cloud API Get Started (opens in a new tab), Meta for Developers
  2. About the WhatsApp Business Platform (opens in a new tab), Meta for Developers
  3. WhatsApp accounts and Messaging accounts (opens in a new tab), Meta for Developers
  4. Business phone numbers (opens in a new tab), Meta for Developers
  5. Display name guidelines for the WhatsApp Business platform (opens in a new tab), Meta Business Help Center
  6. About WhatsApp Business display name (opens in a new tab), Meta Business Help Center
  7. How to add a credit card to your messaging account (opens in a new tab), Meta Business Help Center
  8. Verifying your business in Meta Business Suite (opens in a new tab), Meta Business Help Center
  9. Partners (opens in a new tab), Meta for Developers
  10. Embedded Signup (opens in a new tab), Meta for Developers
  11. Messaging Limits (opens in a new tab), Meta for Developers
  12. Service messages (opens in a new tab), Meta for Developers
  13. WhatsApp webhooks (opens in a new tab), Meta for Developers
  14. Template review (opens in a new tab), Meta for Developers
  15. Migrate an existing WhatsApp number to a business account (opens in a new tab), Meta for Developers
  16. Onboard WhatsApp Business app users (opens in a new tab), Meta for Developers
  17. WhatsApp Business app login (opens in a new tab), Meta for Developers
  18. WhatsApp changelog (opens in a new tab), Meta for Developers
  19. About WhatsApp Business (opens in a new tab), WhatsApp Help Center
  20. What are Business Solution Providers and how can you work with them? (opens in a new tab), WhatsApp Help Center
  21. About using Meta Business Agent to chat with customers (opens in a new tab), WhatsApp Help Center
  22. Meta One on WhatsApp Business App (opens in a new tab), WhatsApp for Business
  23. WhatsApp Business Messaging Policy (opens in a new tab), WhatsApp
  24. New pricing policy for AI Providers leveraging the WhatsApp Business Platform (opens in a new tab), Meta for Developers
  25. Pricing on the WhatsApp Business Platform (opens in a new tab), Meta for Developers
  26. Upcoming pricing updates for Meta Business Agent, service and utility messages (opens in a new tab), Meta for Developers
  27. WhatsApp Business Cloud node (opens in a new tab), n8n Docs

Written by the SiagaAI team

We build SiagaAI, an AI assistant for business customer chats in Indonesia. This article was written with AI assistance and read by our team before publishing. Its facts were last checked against the official sources on .

More articles

Regulations

Indonesia's PDP Law and customer chats: what businesses must do

What Indonesia's PDP Law and GR 33/2026 require of businesses answering customer chats: 3×24-hour rights, deleting data, breaches, penalties, and a checklist.

Sources: JDIH BPK, Legaltrans, Hukumonline and 1 more

Written by the SiagaAI team

15 min read

Every customer journey, in one place

No more customer hassle: use a digital admin for your business.