Overview
This node acts as a trigger to listen for incoming messages on the Zalo platform, a popular messaging app. It is designed to capture real-time message events either from individual users or group chats based on user configuration. This node is useful in scenarios where you want to automate workflows triggered by new messages on Zalo, such as customer support automation, chatbots, or notification systems.
For example, you could use this node to:
- Automatically respond to user messages received on Zalo.
- Log group chat messages into a database for analysis.
- Trigger alerts when specific types of messages arrive.
Properties
| Name | Meaning |
|---|---|
| Event Types | Types of messages to listen for. Options: User Messages (messages from individual users), Group Messages (messages from groups). Multiple selections allowed. |
| Self Listen | Whether to allow listening to messages sent by yourself. Boolean value: true or false. |
Output
The node outputs JSON data representing the incoming message event received from Zalo. The output structure contains a message object with details about the message event captured by the webhook. This includes all relevant information about the message content and metadata as provided by the Zalo API.
No binary data output is produced by this node.
Example output JSON structure:
[
{
"message": {
// message details as received from Zalo
}
}
]
Dependencies
- Requires an API key credential to connect to the Zalo platform.
- Uses the
zca-jslibrary internally to handle Zalo API interactions. - Needs proper configuration of the webhook URL in n8n to receive incoming message events.
- Requires valid Zalo credentials including cookie, IMEI, and user agent strings for authentication.
Troubleshooting
- Connection failures: If the node throws a "Zalo connection failed" error, verify that the provided credentials are correct and have not expired.
- No credentials found: Ensure that the required API key credential is configured in n8n before activating the node.
- Webhook issues: Confirm that the webhook URL is accessible and correctly set up in your Zalo developer settings.
- Listening to self messages: If you do not receive messages sent by yourself, check the "Self Listen" property; it must be enabled to capture those messages.
Links and References
- Zalo Official Developer Documentation
- n8n Webhook Documentation
- zca-js GitHub Repository (Note: Replace with actual repo if available)