PhoAi Ultimate Facebook icon

PhoAi Ultimate Facebook

Node for Facebook

Actions2

Overview

This node operation "Gửi tin nhắn ảnh" (Send image message) under the resource "Tin nhắn" (Messages) allows sending an image as a message to a Facebook Messenger user. It is designed for scenarios where you want to programmatically send images through Facebook Messenger, such as customer support, marketing campaigns, or automated notifications with visual content.

Practical examples include:

  • Sending product images to customers in response to inquiries.
  • Delivering promotional banners or event invitations via Messenger.
  • Sharing screenshots or photos automatically from an application 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
A notice informing users that this is a beta version and providing a link for updates.
Dữ liệu ảnh dạng data The binary field name containing the image data to be sent. Typically refers to input binary data holding the image.
Facebook Page The Facebook Page ID from which the message will be sent. Can be selected from a list or entered manually.
Id người nhận The recipient's Facebook Messenger user ID to whom the image message will be sent.
Nội dung tin nhắn The text content accompanying the image message.
Workspace ID Identifier of the workspace context (used internally for service scoping).
Service ID Identifier of the service used (internal reference).
Staff ID Identifier of the staff member (internal reference).

Output

The output JSON contains:

  • success: Boolean indicating if the message was sent successfully.
  • response: The raw response from the external API after sending the message.
  • zaloResponse: Duplicate of the response field (likely legacy or alias).
  • error: If an error occurs, the output includes error details alongside the original input item.

No binary output is produced by this operation.

Dependencies

  • Requires an API key credential for authentication with the external service at https://api.phoai.vn/api/facebook.
  • Needs a valid Facebook Page ID and recipient Messenger user ID.
  • The node uses HTTP requests to communicate with the external API endpoint for sending messages.
  • Proper configuration of workspace, service, and staff IDs is required for internal routing.

Troubleshooting

  • Common issues:

    • Invalid or missing Facebook Page ID or recipient ID will cause failures.
    • Incorrect binary field name for image data may result in no image being sent.
    • Network or API errors from the external service can cause the node to throw errors.
  • Error messages:

    • Errors returned from the external API are passed through; check the response field for details.
    • If the node is set to continue on failure, errors are included in the output JSON per item.
    • Authentication errors indicate missing or invalid API credentials.
  • Resolutions:

    • Verify all required IDs and parameters are correctly set.
    • Ensure the binary input field contains valid image data.
    • Check API credentials and network connectivity.
    • Review the external API documentation for specific error codes.

Links and References

Discussion