Send Message
Facebook
Facebook
Send Message
Send a plain text Facebook Messenger message from a Page to a user. For interactive content use Send Button Message, Send Card Message, or Send Media Message. The recipient is a Page-scoped ID (PSID), e.g. the senderId from a 'Wait for New Message' trigger. Subject to Meta's 24-hour messaging window: standard RESPONSE messages can only be sent within 24 hours of the user's last message; outside that window use a message tag (messaging_type MESSAGE_TAG).
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
page_id | dropdown | Required | The Facebook Page to send the message from. |
recipient_id | text | Required | The recipient's Page-scoped ID (PSID). Typically the senderId output from a 'Wait for New Message' trigger. |
message | text | Required | The text of the message to send. |
reply_to | text | Optional | Optional message ID (mid) to reply to, threading this message under an existing one. Typically the messageId output from a 'Wait for New Message' trigger. |
messaging_type | select | Optional | Messaging type: RESPONSE (default; reply within the 24h window), UPDATE, or MESSAGE_TAG (send outside the window with a valid tag). (options: Response, Update, Message Tag) |
sender_action | text | Optional | Optional sender action to send instead of/with typing indicators, e.g. mark_seen, typing_on, typing_off. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Graph API response. |
body | object | Graph API response. |
recipient_id | text | The recipient PSID the message was sent to. |
message_id | text | The id of the sent message. |