codedao12 - Zalo Message
AI-generatedOverview
This node allows sending messages through the Zalo API using either a credential or userId/phone for login. It supports sending various types of messages such as text, voice, video, stickers, reactions, links, cards, and bank card information. The node also supports sending typing events and handling mentions, quotes, and text styles in messages. It is useful for automating Zalo messaging workflows, including sending multimedia content and reactions.
Use Case Examples
- Send a plain text message to a user or group thread.
- Send a voice message with a specified URL and TTL.
- Send a reaction icon to a specific message in a thread.
- Send a sticker by its ID to a group or user thread.
Properties
| Name | Meaning |
|---|---|
| useSession | Boolean flag to select login method: use userId/phone (true) or credential (false). If true, credential is ignored. |
| connectToId | User ID or phone number to login Zalo. Required if useSession is true. |
| type | Type of interaction: User or Group. |
| threadId | Thread ID to send the message to. |
| operation | The action to perform, e.g., send message, send voice, send video, send sticker, send reaction, send link, send card, send bank card, send typing event. |
Output
JSON
jsonsuccess- Indicates if the message sending was successful.error- Error message if sending failed.response- Response data from the Zalo API.typing- Indicates if typing event was sent successfully.reactionSuccess- Indicates if reaction sending was successful.reactionResponse- Response data for the reaction sending.attachmentsError- List of errors related to attachments.
Dependencies
- an API key credential for Zalo login
Troubleshooting
- Ensure the correct login method is selected and credentials or userId/phone are provided.
- Verify that the threadId is valid and accessible.
- Check that attachment URLs or file paths are correct and accessible.
- Make sure the reaction message IDs are valid when sending reactions.
- Common errors include failed encryption of parameters, missing required fields, or invalid message content. Verify inputs accordingly.
Links
- Zalo Support Group - Official support and updates for Zalo API nodes.
- n8n-nodes-ultimate - Recommended upgraded package with advanced features replacing n8n-nodes-zalo-custom.