How-to guides

How to build a WhatsApp chatbot for a business

To build a WhatsApp chatbot, register for the WhatsApp Business Platform through a provider, get a business number verified, design a short conversation flow, submit message templates for approval, and add a clear route to a human.

Why WhatsApp

In many markets WhatsApp is the default way customers message a business. A chatbot there can answer common questions, collect booking details, send order updates and hand over to staff, all without customers installing anything. It suits businesses with repetitive enquiries: clinics, restaurants, salons, travel, real estate, delivery and e-commerce.

Know the two products

  • WhatsApp Business app. Free app for small operators with labels, quick replies and away messages. One phone, one or few users, no real automation.
  • WhatsApp Business Platform (API). Used for chatbots, multiple agents, integrations and larger volumes. You connect through Meta's cloud API directly or through a business solution provider.

Most chatbots use the Platform. Check the current pricing model and rules in Meta's documentation since categories and charges change.

Step 1: Choose your use cases

Pick two or three jobs for version one:

  • Answer FAQs about hours, prices, delivery or policies.
  • Take bookings or reservations.
  • Check order status.
  • Qualify enquiries and pass them to sales.
  • Send reminders and notifications.

Avoid trying to handle every conversation. A chatbot with three jobs done well beats one with twenty done badly.

Step 2: Set up the account

You will need a Meta business account, a business verification (documents proving your company), a phone number that is not already in use on a personal WhatsApp account, and a display name that follows WhatsApp's naming rules. Plan for the verification to take days. Choose a provider or build directly on the cloud API depending on how much customisation you need.

Step 3: Design the conversation

Draw the flow before building. For each job write:

  • The trigger (a keyword, a button, a menu choice).
  • The questions the bot asks, one at a time.
  • Validations, such as a date in the future.
  • The outcome (confirmation, ticket created, link sent).
  • What happens when the user types something unexpected.

Use WhatsApp's interactive elements: reply buttons and list messages cut typing and reduce errors. Keep messages short; people read on phones.

Step 4: Decide between rules and AI

A rule-based bot follows a script with buttons. It is predictable and easy to audit. An AI-powered bot interprets free text and can answer from your documents, but needs guardrails against wrong answers. Many businesses combine them: menu for transactions, AI for open questions, with strict instructions to stay within approved content.

Step 5: Write and submit templates

Templates are messages you can send outside the free-reply window, such as booking confirmations or shipping updates. Each has a category and must be approved. Write them plainly, include variables for names and dates, avoid promotional language in utility templates, and prepare alternatives in case one is rejected. Allow time for approval cycles.

Step 6: Connect your systems

The bot becomes useful when it reads and writes real data: your booking calendar, order system, CRM or helpdesk. Build those integrations with API calls and keep credentials secure. Log every conversation with a customer ID so staff can see context later.

Step 7: Plan the handover

Define when the bot passes the chat to a person: the user asks for one, the bot fails twice, a complaint keywords appear, or the conversation concerns a high-value deal. The agent should see the full chat history and an automatic summary. Show opening hours, and set expectations if no staff are online.

Step 8: Respect opt-in and privacy

WhatsApp requires customers to opt in before you send them business-initiated messages. Capture consent on your website, at checkout or in person, and record it. Provide a simple way to stop messages. Do not collect sensitive data like full card numbers in chat. State how you use data and keep a retention policy.

Step 9: Test with real phones

Test on iPhone and Android, with slow connections, with emojis and voice notes (decide how you handle audio), and with users who type nonsense. Check templates render correctly with each variable. Have colleagues try to break it.

Step 10: Launch and learn

Start by promoting the number in one channel, such as a website button or a QR code on receipts. Review conversations weekly: where users drop off, what they ask that the bot can't answer, which handovers could have been avoided. Add one improvement at a time.

Mistakes to avoid

  • Long walls of text.
  • No visible way to reach a person.
  • Using an unofficial tool that breaks WhatsApp's terms and risks losing the number.
  • Sending marketing without opt-in.
  • Ignoring message quality ratings, which can limit your sending.

Our work on this

We design WhatsApp flows, set up the Business Platform, write templates, connect calendars, orders and CRMs, and monitor conversations after launch.

Questions, answered

The app offers simple automated replies, but a real chatbot needs the WhatsApp Business Platform (API), which is accessed through Meta or an approved provider.

When you start a conversation with a customer or reply after the allowed service window, WhatsApp requires pre-approved templates. Replies inside the window are freer.

Payment options depend on region and provider. A reliable alternative is to send a secure payment link from your payment provider inside the chat.

Yes, if it is quick, honest that it is automated, and offers a person when needed.