Actions18
- Tài khoản Actions
- Tin nhắn Actions
Tin nhắn → Gửi File
AI-generatedSummary
Send a file as a message via Zalo to a specified recipient or group using binary data from workflow input.
Inputs
- binaryInputFieldVoice (required) — Name of the binary property containing the file data to send.
- messenger_group_type (required) — Indicates whether the message is sent to an individual (0) or a group (1).
- messenger_friend_id (required) — ID of the recipient user or group to receive the file message.
- workspaceId (required) — Workspace ID associated with the sending service.
- serviceId (required) — Service ID representing the Zalo service endpoint.
- staffId (required) — Staff ID authorizing the sending of the message.
Output shape
A list of JSON objects, each corresponding to an input item, containing success status and the response from Zalo API for sending the file message.
Each output object includes a 'json' property with 'success' boolean and 'response' data from the API call. Supports multiple input items processed sequentially. Error handling returns error details tied to the respective item.
Examples
Example 1: Send a PDF file to a user
Set 'binaryInputFieldVoice' to 'fileData' where 'fileData' is the binary property holding the PDF, set 'messenger_group_type' to 0 for individual, provide the recipient's 'messenger_friend_id', and specify required workspace, service, and staff IDs.