English
WhatsApp
Send from your WhatsApp Business number a message, an approved template (appointment reminder, acknowledgement) or a document produced by the workflow.
A WhatsApp Business connection lets the WhatsApp Business node send, from the customer’s business number, an approved template, a text or a document. It uses Meta’s Cloud API.
The connection holds a Business Manager system user token, encrypted at rest. The sending number’s id (“Phone number ID”) is entered in the node.
At a glance
- Identifier:
whatsapp - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: API key or token
- Credential type:
service:whatsapp - Official API documentation: https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/send-messages
- API base URL:
https://graph.facebook.com/v25.0 - Rate limit applied by Loop & Roll: 20 requests per second and per connection; up to 3 attempts on a 429 or a 5xx
- Webhook signature:
X-Hub-Signature-256header, HMAC-SHA256 of the raw body - Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- In Meta’s Business Manager, open Business settings → System users, create one and give it access to your WhatsApp Business account and your app.
- Click “Generate token”, tick whatsapp_business_messaging and whatsapp_business_management, and pick a “Never” expiry if offered.
- Paste the token below. The sending number’s id (“Phone number ID”) is in WhatsApp Manager → API setup: it is entered in the node.
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
Access token (system user) (token) | Secret — never shown again | Yes | |
App secret (incoming messages) (appSecret) | Secret — never shown again | No | Only for the “Message received” trigger: App settings → Basic → App secret. Meta signs every call with it. |
Verify token (incoming messages) (verifyToken) | Secret — never shown again | No | A string of your choice, to copy into “Verify token” when you set the callback URL in the app’s WhatsApp configuration. |
Before you start
- The 24-hour rule is WhatsApp’s: a text or a document only goes out within 24 hours of the customer’s last message. Beyond that, only templates approved by Meta are accepted.
- A regular user token expires within hours: use a system user, with
whatsapp_business_messagingandwhatsapp_business_management.
Add the connection
- Open Connections. In the Third-party services section, find the WhatsApp card and click Connect.
- Paste the token, then click Create connection.
- Click Configure, then Test connection: the test calls
GET /me.
Calls used
| Action | Meta call |
|---|---|
| Send a template / a text | POST /{phone-number-id}/messages |
| Send a document | POST /{phone-number-id}/media (multipart), then POST /{phone-number-id}/messages |
Receive messages (trigger)
The WhatsApp — message received trigger receives messages on the workflow’s URL. In the connection, enter the app secret (App settings → Basic) and a verify token of your choice; in the app’s WhatsApp configuration, set the workflow URL as callback URL with that token, then subscribe to the messages field. Meta checks the URL with a GET (hub.challenge), then signs every call (X-Hub-Signature-256).
Webhook events
The events offered by the trigger. An event the provider adds later is still accepted when no event is ticked.
| Event | Label |
|---|---|
text | Text |
document | Document |
image | Image |
audio | Audio or voice note |
video | Video |
location | Location |
contacts | Contact card |
interactive | Button or list reply |
button | Template button reply |
Nodes that use this connection
- WhatsApp — message received —
trigger.whatsapp - WhatsApp Business —
whatsapp.api