Actions2
- Tin nhắn Actions
Overview
This node enables sending messages via Facebook Messenger through a specified Facebook Page. It is designed to automate communication by sending text or image messages to a recipient identified by their Messenger user ID. Typical use cases include customer support automation, marketing campaigns, notifications, or any scenario where automated Facebook Messenger outreach is needed.
For example, a business can use this node to send promotional messages or updates directly to customers who have interacted with their Facebook Page.
Properties
| Name | Meaning |
|---|---|
| Đây là phiên bản Thử nghiệm Chúng tôi sẽ liên tục cập nhât và sửa lỗi. Mời bạn truy cập https://zalo.me/g/ebsiof941 để cập nhật thông tin mới nhất |
A notice informing users that this is a beta version and providing a link for updates. |
| Facebook Page | Select the Facebook Page from which the message will be sent. Options: select from list or enter an ID manually. |
| Id người nhận | The recipient's Messenger user ID to whom the message will be sent. |
| Nội dung tin nhắn | The content of the message to be sent. |
| Workspace ID | Workspace identifier used in some search contexts (not directly related to sending messages). |
| Service ID | Service identifier used in some search contexts (not directly related to sending messages). |
| Staff ID | Staff identifier used in some search contexts (not directly related to sending messages). |
Note: Only the first four properties are relevant for the "Gửi tin nhắn" (Send Message) operation under the "Tin nhắn" resource.
Output
The node outputs a JSON object containing:
success: A boolean indicating whether the message was sent successfully.response: The raw response from the Facebook messaging API.zaloResponse: Duplicate of theresponsefield (likely for compatibility or logging).
The output is paired with the input item index to maintain data consistency.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating requests to the external Facebook messaging API endpoint at
https://api.phoai.vn/api/facebook. - The node depends on network access to this API service.
- Proper configuration of the Facebook Page and valid recipient Messenger IDs are necessary.
- No internal n8n credential names are exposed; users must provide appropriate API authentication tokens.
Troubleshooting
Common Issues:
- Invalid or missing Facebook Page ID or recipient Messenger ID will cause failures.
- Network connectivity issues to the external API endpoint may result in errors.
- Incorrect or expired API credentials will prevent successful message sending.
Error Messages:
- Errors thrown during execution include detailed information about the failed item index.
- If the node is set to continue on failure, it returns the error alongside the original input data.
- Common resolution steps include verifying all IDs, checking API credentials, and ensuring the external API is reachable.
Links and References
- Facebook Messenger Platform
- PhoAi API Documentation (if available) — for details on the external API used by this node
- n8n Documentation — general guidance on using custom nodes and credentials
