Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Zalo Send Message → Gửi tin nhắn thoại

AI-generated

Overview

This node sends voice messages through the Zalo API. It is designed to send a voice message (in .m4a format) to a specified conversation thread, which can be either a personal chat or a group chat. This node is useful for automating voice message delivery in Zalo conversations, such as sending audio notifications, voice alerts, or personalized voice messages to users or groups.

Use Case Examples

  1. Sending a voice message to a personal chat by providing the user's thread ID and the URL of the .m4a audio file.
  2. Sending a voice message to a group chat by specifying the group thread ID and the public URL of the voice message file.

Properties

Name Meaning
ID cuộc trò chuyện / Thread ID The ID of the conversation thread where the voice message will be sent. This is required to identify the recipient chat.
Loại cuộc trò chuyện The type of conversation, either personal (Cá nhân) or group (Nhóm). This determines the recipient type for the voice message.
URL Tin nhắn thoại (M4A) The public URL of the .m4a audio file to be sent as the voice message. This must be accessible for the Zalo API to fetch and send the audio.

Output

JSON

  • success - Indicates if the voice message was sent successfully.
  • response - The response object returned from the Zalo API after sending the voice message.
  • threadId - The ID of the conversation thread to which the voice message was sent.
  • threadType - The type of the conversation thread (personal or group).

Dependencies

  • Zalo API credentials with cookie, IMEI, and user agent for authentication

Troubleshooting

  • Ensure the Zalo API credentials are correctly set and valid, including the cookie, IMEI, and user agent, as the node requires these to initialize the API client.
  • The voice URL must be a publicly accessible .m4a file; otherwise, the API call will fail.
  • If the node throws an error 'Zalo API not initialized', verify that the login with the provided credentials succeeded.
  • If the voice URL parameter is missing or empty, the node will throw an error indicating that the voice URL is required.

Discussion