Blog › Bots · Published 2026-11-28

WhatsApp business bot on the official API: what you need

Want a bot that replies to your customers on WhatsApp and takes orders? The right path is the official WhatsApp Business Platform. This article explains what it is and what you need to run it, according to Meta's official documentation.

What is the WhatsApp Business Platform?

A Meta platform that lets businesses communicate with customers at scale. Its core API is the Cloud API, which lets you send and receive messages programmatically: text messages, rich media and interactive messages, plus managing group conversations.

What can the bot do?

Uses the official documentation lists:

How do messages reach your system?

The platform relies on webhooks: any message a customer sends to your business number arrives at your server as a JSON payload, and so do delivery status updates for outgoing messages. Your system reads the message and replies through the Cloud API. There is also the Business Management API for managing phone numbers and message templates, and for messaging, pricing and template analytics.

What do you need to start?

Why the official API and not unofficial tools?

Unofficial tools expose your number to bans and place your customers' data with a party that offers no guarantees. We use the official Cloud API only, to protect your account and keep your service running.

Example: an order-intake flow

In our order-bot package: the customer writes in, the bot collects the order details through a guided conversation, saves the order to a database or dashboard, and sends the owner an instant notification.

Beyond basic replies

The platform adds broader tools as you grow: the Marketing Messages API for marketing messages with automatic optimizations and performance metrics, and Meta Business Agent to run an AI assistant on WhatsApp that answers from knowledge sources you provide (FAQs, business info, product catalog), with handoff to a human agent when needed.

What does the code look like?

The platform is built on the Graph API over HTTP, with JSON responses. The documentation's example for sending a text message:

curl 'https://graph.facebook.com/v17.0/PHONE_NUMBER_ID/messages'   -H 'Authorization: Bearer ACCESS_TOKEN'   -H 'Content-Type: application/json'   -d '{
    "messaging_product": "whatsapp",
    "to": "+9705XXXXXXXX",
    "type": "text",
    "text": { "body": "Hello, we received your order" }
  }'

Do not worry about these details; this is the part we handle for you when we build the bot.

For details and packages see WhatsApp bots for business, and read SMS and WhatsApp bot via Twilio for a different approach that fits other cases, and when does a small business need a CRM? to store the orders the bot collects.

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles