Wait for WhatsApp Message
WhatsApp
WhatsApp
Wait for WhatsApp Message
Triggered when an inbound WhatsApp message is received on your connected WhatsApp Business number. With the default WorkHub-managed Meta app no webhook setup is needed. If you bring your own Meta app, set its Callback URL to 'https://app-integration-api.workhub24.com/api/integration-api/webhook/whatsapp/messaging' and subscribe to the 'messages' field.
Trigger
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
business | dropdown | Optional | Filter: only trigger for messages received on this WhatsApp Business Account (WABA). Leave empty to accept from any WABA. |
phone_number_id | dropdown | Optional | Filter: only trigger for messages received on this phone number. Leave empty to accept from any number on the selected WABA (or any WABA when business is also empty). |
from | text | Optional | Filter: only trigger for messages from this sender's phone number (digits only, international format, e.g. 14155552671). Leave empty to accept from any sender. |
contains_text | text | Optional | Filter: only trigger when the message body contains this text (case-insensitive). Leave empty to accept any message body. |
hasMedia | yes/no | Optional | When set, only trigger for messages that match the specified media presence (yes = must have media, no = must not have media). |
Outputs
| Name | Type | Description |
|---|---|---|
messageId | text | Unique WhatsApp message ID (wamid) of the incoming message. |
from | text | Sender's WhatsApp phone number (digits only, international format). |
to | text | The WhatsApp Business display phone number that received the message. |
body | text | Text content of the received WhatsApp message (or media caption when the message is media). |
profileName | text | WhatsApp profile name of the sender. |
timestamp | text | Unix timestamp (seconds) of when the message was sent. |
type | text | Message type as reported by WhatsApp (e.g. text, image, document, audio, video). |
hasMedia | yes/no | Whether the message contains one or more media attachments. |
mediaItems | array of object | Media descriptors from the webhook (media id, MIME type, optional filename and caption). Requires Meta authentication to download. |
id | text | WhatsApp media ID, used to download the media via the Graph API. |
mimeType | text | MIME type of the media item. |
filename | text | Original filename, when provided (documents). |
caption | text | Caption attached to the media, when provided. |
mediaFiles | files | Media files attached to the message, resolved as usable file values with base64 content. |