Skip to main content
SiGMA World Rome · booth H7-7129 →
§ Guide · Channels

Connecting the WhatsApp Business API

Your customers write to your business number in WhatsApp and the conversations arrive in the same inbox as Telegram, Instagram and email, where you or your AI agent answer. This guide connects a number on Meta's Cloud API (the official WhatsApp Business API), not a personal number by QR.

Updated 2026-10-07
§ Before you start
  • The quickest way is the Connect with Facebook button on the same form, which needs none of the values below; this guide covers the manual way.
  • A WhatsApp Business Account (WABA) with a phone number registered on the Cloud API, in Meta Business Manager. A number that is used in the WhatsApp or WhatsApp Business app cannot be on the API at the same time.
  • Admin access to a Meta for Developers app that has the WhatsApp product added. You will copy four values out of it and paste two values into it.
  • Fifteen minutes with both pages open. Meta checks the webhook the moment you save it.
  1. Step 1

    Copy the Phone number ID and the WABA ID

    In Meta for Developers open your app → WhatsApp → API Setup. The page shows the Phone number ID under the number and the WhatsApp Business Account ID below it. Copy both.

  2. Step 2

    Create a permanent access token

    In Meta Business Settings open Users → System Users, add a system user (Admin), press Assign assets and give it your WhatsApp Business Account with full control. Then press Generate token, choose your app, tick whatsapp_business_messaging and whatsapp_business_management, and copy the token: Meta shows it once.

  3. Step 3

    Copy the App secret

    In Meta for Developers open your app → App settings → Basic and press Show next to App secret.

  4. Step 4

    Paste the four values into DialogBrain

    In the inbox, the gear above the channel filters opens Connections. On the Add New tab choose WhatsApp Business API, paste the token, the Phone number ID, the WABA ID and the App secret, and press Connect. If DialogBrain says Meta refused the token, generate it again with both permissions; if it does not know the Phone number ID, the token belongs to another app.

    Connections → Add New → WhatsApp Business API.
  5. Step 5

    Paste the Callback URL and Verify token into Meta

    DialogBrain now shows a Callback URL and a Verify token with a copy button next to each, and the line "Waiting for Meta to verify the URL". In Meta for Developers open your app → WhatsApp → Configuration → Webhook, press Edit, paste both values and press Verify and save. Then under Webhook fields press Manage and subscribe to messages, calls and account_update. The line in DialogBrain turns green within seconds.

  6. Step 6

    Write to your number from your own phone

    Send any message to the business number from WhatsApp on your phone. It appears in the DialogBrain inbox under the WhatsApp Business API filter. Answer it from the inbox and check the reply arrives on the phone.

Connect with Facebook instead

If you would rather not copy keys, press Connect with Facebook on the same WhatsApp Business API form. Sign in to Facebook in the window Meta opens, pick or create the business, choose the number and finish. Nothing to paste: messages start arriving right away. The Facebook connection is renewed every 60 days by pressing the button again; the number's card says when. The steps above stay for numbers you manage in your own Meta app.

If the number is in the WhatsApp Business app on your phone and you want to keep using the app, tick Keep using the WhatsApp Business app on this number first. The number stays on the phone, the last 6 months of chats and your contact names are imported, and what you type on the phone shows in the inbox. Calls through DialogBrain are not available on such a number; they ring on the phone.

Calls

Calls are on once the number is connected (if WhatsApp has not approved calling for the number, the card says why). The Calls switch in the number's card turns them off and back on. When a customer calls your number, the voice agent whose trigger covers WhatsApp Business API Voice answers. With no such agent the call is declined and shows as a missed call in the conversation, so you can call back.

Calling a customer first needs their permission. When you or an agent place a call, WhatsApp shows them a permission request (one per day, two per week). Once they accept, calls go through for seven days, or permanently if they choose so. A customer who called you can be called back for seven days without asking.

The 24-hour window and templates

You can reply freely for 24 hours after the customer's last message. Outside that window DialogBrain shows "Window closed" and offers "Send a template" instead of the text box.

Templates are created and approved in Meta Business Manager, and appear in the picker once approved. Meta charges templates by category; replies inside the window are free.

What arrives and what you can send

Text, photos, voice notes, video, documents, stickers, locations, contacts, button replies and reactions arrive in the conversation.

You can send text, photos, video, audio and documents, and templates.

Putting an agent on the number

Connecting a channel does not put an agent on it. Until you assign one, the inbox is only an inbox and you answer yourself. When you do assign one, start in Draft mode: the agent writes, you approve. A day of reading its drafts tells you what to add to its instructions before it answers on its own.

§ Q & A
Is this the same as connecting WhatsApp by QR?

No. Connecting by QR links a personal number through the WhatsApp app. This is Meta's API for business numbers, with templates and the 24-hour window.

Can I use the number in the WhatsApp Business app at the same time?

Yes: press Connect with Facebook and tick Keep using the WhatsApp Business app on this number. The manual steps cannot do this.

Why was my message refused?

Usually because the 24-hour window is closed, the number is not on WhatsApp or has blocked you, or the access token has expired. DialogBrain names which one next to the message.

Does DialogBrain charge for templates?

No. Meta bills your WhatsApp Business Account directly.

The account says "Webhook not verified". What do I do?

Meta has not checked the URL yet, so no messages can arrive. Open the account in Connections, press Webhook details, and paste the Callback URL and Verify token into WhatsApp → Configuration → Webhook in Meta for Developers as in step five. The mark disappears on its own once Meta accepts them.

Is it safe to give DialogBrain the token and the App secret?

They are stored encrypted and used only for this number. You can revoke the token in Business Settings at any time and connect again.