Skip to content

Send Utility Message

Facebook

Facebook

Send Utility Message

Send a pre-approved Messenger Utility Message template to a user. Unlike Send Message, a utility message CAN reach a user outside the 24-hour messaging window (for order updates, appointment reminders, account alerts). Requires the pages_utility_messaging permission and an approved utility template on the Page.

ActionAI Tool

Inputs

Name Type Required Description
page_iddropdownRequiredThe Facebook Page to send the utility message from.
recipient_idtextRequiredThe recipient's Page-scoped ID (PSID).
template_nametextRequiredName of the approved utility message template to send.
language_codetextRequiredLanguage/locale code of the template, e.g. en or en_US.
componentsarray of objectOptionalOptional template components (header/body/button parameters) that fill the template's placeholders.
typetextOptionalComponent type, e.g. header, body, or button.
parametersarray of objectOptionalParameters that fill the placeholders in this component. Each item is an object with fields: type, text.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Graph API response.
bodyobjectGraph API response.
recipient_idtextThe recipient PSID the message was sent to.
message_idtextThe id of the sent message.