Actions12
Send Button Template
AI-generatedSummary
Send a button template message to a Facebook Messenger user identified by their PSID, including customizable text and up to three interactive buttons.
Inputs
- Recipient ID (required) — The Page-Scoped ID (PSID) of the message recipient.
- Template Text (required) — The text displayed above the buttons in the message (maximum 640 characters).
- Buttons (JSON) (required) — A JSON array of button objects with up to 3 buttons. Supported types are web_url, postback, and phone_number.
- Quick Replies (JSON) — Optional JSON array of quick reply objects to include with the message.
- Messaging Type (required) — Specify how the message is sent: RESPONSE (reply within 24h), UPDATE (proactive), or MESSAGE_TAG (outside 24h window with a tag).
- Message Tag — Select the message tag for MESSAGE_TAG messaging type, such as CONFIRMED_EVENT_UPDATE or POST_PURCHASE_UPDATE.
Output shape
a list of JSON response objects from the Facebook Messenger API for each sent message
Outputs an array of JSON objects corresponding to the API responses per input item. Errors are returned in JSON if the node is set to continue on fail.
Examples
Example 1: Send a button template with two buttons and no quick replies
Specify recipientId with the PSID, templateText with the prompt text, buttonsJson with an array of button objects (e.g., one web_url and one postback), messagingType as RESPONSE.