WhatsApp Business Integration
Connect a WhatsApp Business (Cloud API) number so your AgentPro agent answers customers on WhatsApp, with hand-off to human agents in the Inbox.
Prerequisites
Before you begin, make sure you have the following:
- Meta Business Account
A Meta Business account (business verification is needed before you can message real customers at scale)
- WhatsApp Business Phone Number
A phone number not linked to a personal WhatsApp account. The free Meta test number works for trials.
- Meta Developer App
A Meta Developer App of type "Business" with the WhatsApp product added
- An AgentPro agent
The agent that will answer WhatsApp messages. An agent is required to create the channel.
Step-by-Step Setup
Shortcut: when your AgentPro workspace shows a Connect with Facebook button on the WhatsApp channel page, you can skip steps 1 to 5. Sign in with the Facebook account that manages your business, pick or create the WhatsApp Business Account and number, and AgentPro configures everything, including the webhook. The steps below are the manual path, which always works.
1Create a Meta Developer App
- 1Go to Meta for Developers
- 2Click My Apps → Create App
- 3Select Business as the app type
- 4Fill in your app details and click Create App
2Add WhatsApp Product
- 1In your app dashboard, click Add Product
- 2Find WhatsApp and click Set Up
- 3Select your Meta Business Account or create a new one
3Get API Credentials
- 1Navigate to WhatsApp → API Setup and copy the Phone Number ID and WhatsApp Business Account ID (numeric IDs, not the phone number)
- 2Create a permanent token: Business Settings → Users → System Users → Add, assign your app, then Generate token with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions - 3Copy the App Secret from App Dashboard → App settings → Basic. AgentPro uses it to verify webhook signatures, so it is required.
Important: The temporary token shown on the API Setup page expires after 24 hours. Use a System User token in production; AgentPro shows the expiry date on the channel page, re-checks every token daily and marks the channel as needing attention (and notifies the workspace owners) when Meta stops accepting it.
4Configure in AgentPro
- 1Go to Dashboard → Channels → WhatsApp and click I have my credentials — continue
- 2Enter the Access Token, Phone Number ID, Business Account ID and App Secret, and pick the agent that should answer
- 3Click Connect WhatsApp. AgentPro verifies the credentials with Meta before saving anything: if a value is wrong you see which one and why, and no half-configured channel is left behind. On success it shows the Callback URL and a Verify Token it generated for you
5Configure Webhook in Meta
- 1In Meta Developer Console, go to WhatsApp → Configuration
- 2Under Webhook, click Edit
- 3Enter the Callback URL from your AgentPro channel page (it contains your channel id):
https://agentpro.chat/api/v1/webhooks/whatsapp/<your-channel-id>
- 4Paste the Verify Token shown on the AgentPro channel page (it is generated by AgentPro; you do not choose it) and click Verify and save
- 5Click Manage and subscribe to messages, plus account_update, phone_number_quality_update and message_template_status_update so AgentPro can warn you about restrictions and template reviews. Back in AgentPro the badge switches to Webhook verified within a few seconds (no reload needed). Then click Test connection: it runs a checklist (token, phone number, business account, permissions, app subscription, webhook) and offers a one-click Subscribe app if Meta has not linked your app to the business account yet. Finally use Send me a test message to receive a real message on your phone.
Features
AI Auto-Response
Text, button and list replies, captions and shared locations are answered by your agent from its knowledge. Replies are formatted for WhatsApp and split when long.
Human Takeover
Voice notes, stickers, media without a caption and AI failures are flagged in the Inbox. When an agent replies, the AI pauses for that conversation.
Template Broadcasts
Send Meta-approved templates to opted-in contacts with rate limiting, delivery/read tracking and STOP handling.
Contacts & Interactive Messages
Every sender becomes a contact with tags and consent. Send reply-button, list and link-button messages inside the 24-hour window.
Troubleshooting
Webhook verification failing?
- •Copy the Verify Token from the AgentPro channel page exactly; it is generated by AgentPro
- •The Callback URL must be publicly reachable over HTTPS and contain your channel id
- •If the token does not match, the channel page shows "Meta tried to verify the webhook with a verify token that does not match" under Last error
Messages not being received?
- •Subscribe to the "messages" webhook field under Manage
- •If the App Secret is wrong, Meta webhooks are rejected and the channel page shows "Webhook rejected: the signature did not match the saved App Secret". Re-enter it under Update Credentials
- •"Meta last reached us: never" on the status card means Meta has not sent anything yet: check the webhook subscription and run Test connection
- •Temporary tokens expire after 24 hours; the daily health check flips the channel to "Needs attention" and notifies the workspace owners when Meta rejects the token
- •Run Test connection: the checklist shows exactly which of token, phone number, business account, permissions, app subscription or webhook is failing
- •With the test number only pre-registered recipients can message you
Agent not responding?
- •An agent must be linked to the channel; check the agent card on the WhatsApp channel page
- •If an agent replied from the Inbox, the AI is paused for that conversation until re-enabled
- •Voice notes, stickers and media without a caption are routed to the Inbox instead of the AI
- •A contact who replied STOP or who is blocked gets no AI replies
Cannot send a message?
- •Free-form messages are only allowed within 24 hours of the customer's last message; otherwise send an approved template
- •An Inbox reply outside the 24-hour window is marked "Delivery failed" on the message instead of silently disappearing; send a template to re-open the conversation
- •Broadcasts only reach contacts marked as opted in to marketing
- •Templates must be approved in Meta Business Manager before they appear in the broadcast picker