Skip to content

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
businessdropdownOptionalFilter: only trigger for messages received on this WhatsApp Business Account (WABA). Leave empty to accept from any WABA.
phone_number_iddropdownOptionalFilter: 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).
fromtextOptionalFilter: 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_texttextOptionalFilter: only trigger when the message body contains this text (case-insensitive). Leave empty to accept any message body.
hasMediayes/noOptionalWhen set, only trigger for messages that match the specified media presence (yes = must have media, no = must not have media).

Outputs

Name Type Description
messageIdtextUnique WhatsApp message ID (wamid) of the incoming message.
fromtextSender's WhatsApp phone number (digits only, international format).
totextThe WhatsApp Business display phone number that received the message.
bodytextText content of the received WhatsApp message (or media caption when the message is media).
profileNametextWhatsApp profile name of the sender.
timestamptextUnix timestamp (seconds) of when the message was sent.
typetextMessage type as reported by WhatsApp (e.g. text, image, document, audio, video).
hasMediayes/noWhether the message contains one or more media attachments.
mediaItemsarray of objectMedia descriptors from the webhook (media id, MIME type, optional filename and caption). Requires Meta authentication to download.
idtextWhatsApp media ID, used to download the media via the Graph API.
mimeTypetextMIME type of the media item.
filenametextOriginal filename, when provided (documents).
captiontextCaption attached to the media, when provided.
mediaFilesfilesMedia files attached to the message, resolved as usable file values with base64 content.