Overview
This node listens for friend-related events on the Zalo platform, specifically friend requests. It acts as a webhook trigger that activates when such events occur, allowing workflows to respond automatically to new friend requests on Zalo.
Common scenarios include:
- Automatically processing incoming friend requests.
- Sending notifications or logging friend request events.
- Integrating Zalo friend events with other systems or CRMs.
For example, when a user receives a friend request on Zalo, this node can trigger a workflow that sends an alert email or updates a database record.
Properties
| Name | Meaning |
|---|---|
| Event Types | Friend events to listen for. Options: "Friend Requests" (listens for incoming friend requests on Zalo). |
Output
The node outputs JSON data representing the friend event received from Zalo. The output structure includes a friendEvent object containing details about the specific friend event (e.g., friend request data).
Example output JSON structure:
{
"friendEvent": {
// Details of the friend request event from Zalo
}
}
No binary data is output by this node.
Dependencies
- Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent string.
- Uses an external Zalo SDK/library to establish connection and listen for friend events.
- Needs a publicly accessible webhook URL configured in n8n to receive POST requests from Zalo event listener.
- Requires proper configuration of the webhook path and HTTP method (POST).
Troubleshooting
- Connection failures: If the node cannot connect to Zalo, ensure the provided credentials are correct and have not expired. Check that the cookie, IMEI, and user agent values are valid.
- Webhook not triggered: Verify that the webhook URL is correctly set up and publicly accessible. Confirm that Zalo can reach the webhook endpoint.
- No events received: Make sure the selected event types match the actual events occurring on the Zalo account.
- Error messages like "No API instance found" indicate invalid or missing credentials; re-authenticate or update credentials accordingly.