Skip to content

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-256 header, HMAC-SHA256 of the raw body
  • Connection test: Yes

Step by step ​

The same steps are shown in the connection form of the app.

  1. In Meta’s Business Manager, open Business settings → System users, create one and give it access to your WhatsApp Business account and your app.
  2. Click “Generate token”, tick whatsapp_business_messaging and whatsapp_business_management, and pick a “Never” expiry if offered.
  3. 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 ​

FieldKindRequiredNotes
Access token (system user) (token)Secret — never shown againYes
App secret (incoming messages) (appSecret)Secret — never shown againNoOnly for the “Message received” trigger: App settings → Basic → App secret. Meta signs every call with it.
Verify token (incoming messages) (verifyToken)Secret — never shown againNoA 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_messaging and whatsapp_business_management.

Add the connection ​

  1. Open Connections. In the Third-party services section, find the WhatsApp card and click Connect.
  2. Paste the token, then click Create connection.
  3. Click Configure, then Test connection: the test calls GET /me.

Calls used ​

ActionMeta call
Send a template / a textPOST /{phone-number-id}/messages
Send a documentPOST /{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.

EventLabel
textText
documentDocument
imageImage
audioAudio or voice note
videoVideo
locationLocation
contactsContact card
interactiveButton or list reply
buttonTemplate button reply

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.