Wait for New Message
Facebook
Facebook
Wait for New Message
Triggered when your Facebook Page receives a Messenger message. Requires the Page subscribed to the 'messages' webhook field.
Trigger
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
page_id | dropdown | Optional | Filter: only trigger for events on this Page. Leave empty for any managed Page. |
contains_text | text | Optional | Filter: only trigger when the message text contains this text (case-insensitive). |
Outputs
| Name | Type | Description |
|---|---|---|
pageId | text | Id of the Page that received the message. |
senderId | text | Page-scoped id (PSID) of the sender. |
senderName | text | Display name of the sender when Meta allows profile access; may be empty without Business Asset User Profile Access. |
recipientId | text | Id of the recipient (the Page). |
messageId | text | Id of the message. |
message | text | The message text. |
hasMedia | yes/no | Whether the message has attachments. |
mediaItems | array of object | Attachment descriptors (URLs) from the webhook. |
url | text | Attachment URL. |
contentType | text | Attachment type (image, video, audio, file). |
mediaFiles | files | Downloaded attachment files with base64 content. |