Overview
This node listens for specific friend-related events from the Zalo platform, particularly friend requests. It is designed to trigger workflows when such events occur, enabling automation based on incoming friend requests.
Common scenarios where this node is beneficial include:
- Automatically responding to new friend requests.
- Logging or tracking friend request events for analytics.
- Triggering notifications or other workflows when a friend request is received.
For example, a user could set up a workflow that sends a welcome message automatically whenever a new friend request event is detected by this node.
Properties
| Name | Meaning |
|---|---|
| Event Types | Friend events to listen for. Options: "Friend Requests" |
The only input property is Event Types, which allows selecting one or more types of friend-related events to listen for. Currently, the only available option is "Friend Requests".
Output
The node outputs JSON data representing the friend event details it receives. Each output item contains a json field with information about the friend event (e.g., details of the friend request).
No binary data output is produced by this node.
Dependencies
- Requires valid credentials to connect to the Zalo API, including authentication tokens and session cookies.
- The node uses an external Zalo API client library internally to establish a connection and listen for friend events.
- Proper configuration of the credential in n8n is necessary to authenticate and receive events.
Troubleshooting
- No API instance found / No valid credentials: This error occurs if the node cannot find or use the required API credentials. Ensure that the Zalo API credentials are correctly configured and provided to the node.
- Failed to create API listener: If the node fails to instantiate the API client or start listening, verify that the credentials (cookie, IMEI, user agent) are valid and have not expired.
- No events received: Confirm that the selected event types match the actual events occurring on the Zalo account and that the account has active friend requests.
- Connection issues: Network problems or invalid credentials can prevent the node from maintaining a live connection to the Zalo event stream.