Actions72
- Pages Actions
- Posts Actions
- Groups Actions
- Events Actions
- Insights Actions
- Marketing/Ads Actions
- Videos Actions
- Messaging Actions
- Shop/Catalog Actions
- Lead Ads Actions
- Webhooks Actions
Messaging → Send Template
AI-generatedOverview
This node enables sending Facebook Messenger template messages through the Facebook Graph API. Specifically, the "Send Template" operation under the "Messaging" resource allows you to send structured message templates (such as button templates) to a recipient identified by their Page Scoped User ID (PSID). This is useful for automating customer interactions on Facebook Pages, such as sending buttons for quick replies, call-to-actions, or other interactive elements.
Practical examples include:
- Sending a button template to a user with options like "View Details" or "Contact Support".
- Automating responses with predefined templates to improve engagement.
- Integrating chatbot flows that require sending rich message templates.
Properties
| Name | Meaning |
|---|---|
| Page ID | The Facebook Page ID from which the message will be sent. |
| Recipient ID | The recipient's PSID (Page Scoped User ID), identifying the user to receive the message. |
Output
The node outputs JSON data representing the response from the Facebook API after attempting to send the template message. This typically includes confirmation of the message being sent or details about any errors encountered.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for the external N8N Tools API service used for validation.
- Requires valid Facebook API credentials (OAuth2 or API token) configured in n8n to authenticate requests to the Facebook Graph API.
- The node depends on the Facebook Graph API and the N8N Tools API for operation validation.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that your API key credential for the N8N Tools API is correct and active.
- Facebook API authentication errors: Ensure that the Facebook API credentials are valid and have the necessary permissions to send messages on behalf of the page.
- Recipient ID issues: The recipient PSID must be correct and correspond to a user who has interacted with the Facebook Page; otherwise, the message may fail to send.
- Permission errors: The Facebook Page must have messaging enabled and the app must have appropriate permissions granted.
- General HTTP errors: Network issues or rate limiting by Facebook can cause failures; check error messages for specifics.