Overview
This node listens for friend-related events on the Zalo platform, specifically friend requests. It acts as a trigger that activates workflows when such events occur. This is useful for automating responses or actions based on incoming friend requests on Zalo, such as sending notifications, logging events, or updating databases.
Practical examples:
- Automatically notify a team member when a new friend request arrives.
- Log friend request details into a CRM system.
- Trigger follow-up workflows to welcome new contacts.
Properties
Name | Meaning |
---|---|
Event Types | Friend events to listen for. Options: "Friend Requests" (listens for incoming friend requests) |
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., a friend request). This data can be used downstream in the workflow for further processing.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential to connect with the Zalo platform.
- Uses the Zalo API client library (
zca-js
) to manage connection and event listening. - Needs valid authentication credentials including cookie, IMEI, and user agent information.
- The node sets up a webhook URL where Zalo sends friend event notifications.
Troubleshooting
- Connection failures: If the node throws "Zalo connection failed," verify that the provided credentials are correct and include valid cookie, IMEI, and user agent values.
- No credentials found: Ensure that the required API authentication token/credential is configured properly in n8n.
- Webhook not receiving events: Confirm that the webhook URL is accessible and correctly registered with Zalo.
- Event filtering issues: Make sure the selected event types match the actual events sent by Zalo; currently, only "Friend Requests" are supported.