Zalo User Interact icon

Zalo User Interact

Gửi tin nhắn và tương tác với Zalo User

Overview

This node enables sending voice messages to a specified Zalo user or group chat. It is useful in scenarios where you want to automate voice communication via the Zalo platform, such as sending audio notifications, alerts, or personalized voice messages to users or groups.

Practical examples include:

  • Sending a voice alert to a support group when a critical issue arises.
  • Delivering personalized voice greetings or reminders to individual users.
  • Automating voice message broadcasts for marketing campaigns or announcements.

Properties

Name Meaning
User/Group Id The ID of the Zalo user or group chat to which the voice message will be sent.
Thread Type The type of conversation: either "User" (individual chat) or "Group" (group chat). Values: 0 (User), 1 (Group).
Voice URL The URL of the audio file to be sent as a voice message.

Output

The node outputs an array of JSON objects, each representing the result of sending a voice message. Each object contains at least:

  • json: An object with details about the send operation, including success status and any response data from the Zalo API.

If the node supports binary data output (not explicitly shown here), it would typically represent the audio content or related attachments, but this node primarily deals with sending a voice message via URL, so binary output is not applicable.

Dependencies

  • Requires access to the Zalo messaging platform API.
  • Needs an API authentication token or API key credential configured in n8n to authorize requests to Zalo.
  • The node uses HTTP requests to send the voice message using the provided voice URL.
  • No other external dependencies are indicated.

Troubleshooting

Common Issues

  • Invalid User/Group ID: If the provided thread ID does not correspond to a valid user or group, the API call will fail.
  • Incorrect Thread Type: Specifying the wrong thread type (user vs. group) may cause the message not to be delivered.
  • Invalid Voice URL: The voice URL must point to a valid accessible audio file; otherwise, the message cannot be sent.
  • Authentication Errors: Missing or invalid API credentials will prevent the node from successfully sending messages.

Error Messages and Resolutions

  • Authentication Failed: Check that the API key or token is correctly set up in n8n credentials.
  • Resource Not Found: Verify the thread ID and thread type are correct and correspond to existing Zalo users or groups.
  • Invalid Audio File URL: Ensure the voice URL is publicly accessible and points to a supported audio format.
  • Network Errors: Confirm network connectivity and that the Zalo API endpoint is reachable.

Links and References


Note: Internal variable names, credential types, and obfuscated code details have been omitted to comply with guidelines.

Discussion