English
WhatsApp — message received
Starts the workflow on every message received on your WhatsApp Business number. The body signed by Meta lands in data.whatsapp; redelivered messages are deduplicated.
The WhatsApp — message received trigger receives, on the workflow’s URL, the messages sent to your WhatsApp Business number. Meta first checks the URL (verify token), then signs every call with your app secret: a call whose signature is wrong starts nothing. Meta retries a failed delivery for days; a message already received starts nothing new.
Set the URL in your app’s WhatsApp configuration (callback URL), with the verify token of the connection, and subscribe to the messages field.
At a glance
- Type:
trigger.whatsapp· version 1 - Category: Triggers
- Kind: Trigger — starts a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: WhatsApp
- Outputs:
main
Connection
This node needs a WhatsApp connection.
Parameters
connection
WhatsApp connection — The WhatsApp connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
events
Message types — None ticked: every message received.
- Type: Several choices (
multiOptions) - Required: No
- Default:
[] - Options:
text— Textdocument— Documentimage— Imageaudio— Audio or voice notevideo— Videolocation— Locationcontacts— Contact cardinteractive— Button or list replybutton— Template button reply
Outputs
main— Taken by each run, one per message received on the number. Delivery receipts of the messages you send start nothing.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.whatsapp.entry.0.changes.0.value.messages.0.text.body }}—string. The text of a text message.{{ data.whatsapp.entry.0.changes.0.value.messages.0.from }}—string. The sender’s WhatsApp number.{{ data.whatsapp.entry.0.changes.0.value.contacts.0.profile.name }}—string. The sender’s profile name.{{ data.whatsapp.entry.0.changes.0.value.messages.0.type }}—string. The message type: text, document, image…{{ data.whatsapp.entry.0.changes.0.value.messages.0.document.id }}—string. A document’s media id.