Actions2
- Tin nhắn Actions
Overview
This node enables sending messages via a Facebook Messenger integration. It is designed to send text or image messages to specified recipients on Facebook Messenger through a selected Facebook Page. This functionality is useful for automating customer support, marketing campaigns, or notifications where direct messaging on Facebook is required.
Practical examples include:
- Sending personalized promotional messages to customers.
- Delivering alerts or updates directly to users’ Messenger inboxes.
- Automating responses or follow-ups in a chatbot workflow.
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 |
Informational notice about the experimental version of the node and update link. |
| Facebook Page | Select the Facebook Page from which the message will be sent. Options: From list or ID input. |
| Id người nhận | The recipient's Facebook 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 message). |
| Service ID | Service identifier used in some search contexts (not directly related to sending message). |
| Staff ID | Staff identifier used in some search contexts (not directly related to sending message). |
Note: Only the properties relevant to the "Tin nhắn" resource and "Gửi tin nhắn" operation are Facebook Page, Id người nhận, and Nội dung tin nhắn. The others relate to other operations or resources.
Output
The node outputs an array of JSON objects, each containing:
success: A boolean indicating if the message was sent successfully.response: The raw response from the Facebook Messenger API or service endpoint confirming the message status.pairedItem: Metadata linking the output to the corresponding input item index.
If the message includes images, the node handles binary data representing the image content, which is uploaded and sent along with the message.
Dependencies
- Requires a valid API authentication token credential for the Facebook Messenger API or the integrated service.
- Needs access to the Facebook Page selected for sending messages.
- The node uses HTTP POST requests to specific endpoints of the external service handling Facebook Messenger interactions.
- No additional environment variables are explicitly required beyond the API credentials configured in n8n.
Troubleshooting
Common issues:
- Invalid or expired API credentials can cause authentication failures.
- Incorrect Facebook Page ID or recipient user ID will result in message delivery errors.
- Network connectivity problems may prevent successful API calls.
- Sending binary image data requires correct field configuration; otherwise, the upload may fail.
Error messages:
- Authentication errors typically indicate invalid or missing API tokens; reconfigure credentials.
- "User not found" or similar indicates incorrect recipient ID; verify the recipient’s Messenger ID.
- HTTP 400 or 500 errors suggest malformed requests or server-side issues; check message content and API status.
- If the node is set to continue on failure, errors are returned in the output JSON for individual items.
