codedao12 - Zalo Trigger
AI-generatedOverview
The Zalo Trigger node listens for various event types on the Zalo platform, such as user messages, group messages, reactions, message undo events, group events, friend requests, seen messages, and typing events. It supports filtering by thread IDs and keywords, debouncing media events, and options for self-listening and error handling. The node is useful for automating workflows based on real-time Zalo interactions, such as responding to messages, monitoring group activities, or tracking friend requests.
Use Case Examples
- Automate responses to user or group messages on Zalo.
- Monitor and log reactions or message undo events in Zalo groups.
- Trigger workflows on friend request events or when users start typing in chats.
Properties
| Name | Meaning |
|---|---|
| useSession | Whether to use a custom credential ID to login to Zalo, bypassing the default credential. |
| connectToId | User ID or Phone number used to login to Zalo when useSession is true. |
| eventTypes | Types of Zalo events to listen for, such as user messages, group messages, reactions, undo events, group events, friend requests, seen messages, and typing events. |
| groupMedia | Whether to debounce multiple media (images/videos) sent simultaneously into a single event instead of separate events (wait up to 10 seconds). |
| threadIdFiltering | Enable filtering of User/Group Message events by specific thread IDs (not available in Execute test). |
| listenOnlyThreads | Comma-separated list of thread IDs to listen to when threadIdFiltering is enabled. If empty, listens to all threads. |
| ignoreThreads | Comma-separated list of thread IDs to ignore when threadIdFiltering is enabled. |
| keywordFiltering | Enable filtering of User/Group Message events by keywords (not available in Execute test). |
| listenOnlyKeywords | Comma-separated list of keywords to listen to. Only messages containing at least one of these keywords will be processed. Ignores keywords with only one character. Case insensitive. |
| ignoreKeywords | Comma-separated list of keywords to ignore. Messages containing any of these keywords will be ignored. Ignores keywords with only one character. Case insensitive. |
| continueOnFail | Continue activating the workflow even if one Zalo Trigger fails. |
| telegramTokenOverride | Telegram Bot token used to notify when a trigger error occurs. Leave empty if the credential already has a bot token. |
| telegramChatIdOverride | Telegram chat group ID used to notify when a trigger error occurs. Leave empty if the credential already has a chat ID. |
| selfListen | Listen to events triggered by yourself. |
| ignoreSelfEvents | When selfListen is enabled, only receive User/Group Message events (not available in Execute test). |
Output
JSON
json- The event data received from Zalo, parsed as JSON.
Dependencies
- An API key credential for Zalo login
- Telegram Bot token and Chat ID for error notifications (optional)
Troubleshooting
- Ensure valid Zalo credentials or userId/phone are provided for login.
- If using thread or keyword filtering, verify the filter lists are correctly formatted and not empty if filtering is enabled.
- If the node fails to connect, check network connectivity and Zalo session validity.
- When continueOnFail is enabled, errors will be logged and optionally notified via Telegram; ensure Telegram credentials are correctly set.
- For media debouncing, note that multiple images/videos sent together are grouped into one event after a delay, which may affect real-time processing.
Links
- Zalo Support Group - Official Zalo support and update group.
- n8n-nodes-ultimate - Recommended upgraded node package with advanced features.