Setup Guide
This guide walks you through creating a Meta app and obtaining the credentials required to use the WhatsApp Business connector.
Prerequisites
- A Meta for Developers account
- A WhatsApp Business Account (WABA)
Create a Meta app
- Go to Meta for Developers and create a new app of type Business.
- Add the WhatsApp product to the app.
Get the messaging credentials
From WhatsApp → API Setup:
- Phone number ID: the test or production business phone number ID.
- Access token: a temporary token is shown for testing. For production, create a System User in Meta Business Settings and generate a permanent token with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions.
Use the access token as the token in business:ConnectionConfig.auth. The client attaches it to every request automatically.
Configure webhooks
From WhatsApp → Configuration → Webhooks:
-
Set the Callback URL to your listener's public URL (for example, via a tunneling tool during development).
-
Set a Verify token. This must match the
verifyTokenyou pass tobusiness:Listener. -
Subscribe to the fields you want notifications for. Each field maps 1:1 to one
WhatsAppServicehandler:Webhook field Handler messagesonMessagesaccount_review_updateonAccountReviewUpdateaccount_updateonAccountUpdatebusiness_capability_updateonBusinessCapabilityUpdatemessage_template_quality_updateonMessageTemplateQualityUpdatemessage_template_status_updateonMessageTemplateStatusUpdatephone_number_name_updateonPhoneNumberNameUpdatephone_number_quality_updateonPhoneNumberQualityUpdatesecurityonSecuritytemplate_category_updateonTemplateCategoryUpdate -
Copy the app's App secret (App Settings → Basic) and use it as the listener's
appSecretso inbound notifications are authenticated viaX-Hub-Signature-256.
Meta calls your callback URL with a GET handshake (echoing hub.challenge) when you save the webhook configuration, then delivers notifications via POST. The listener handles the handshake automatically.
Both verifyToken and appSecret are required. The listener can't start without them.
Next steps
- Action Reference: send messages and manage media using the
Client. - Trigger Reference: handle webhook events using the
ListenerandWhatsAppService.