Zalo Friend Trigger icon

Zalo Friend Trigger

Lắng nghe sự kiện kết bạn trên Zalo

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 CRM systems.

Practical examples:

  • Automatically notify a team via chat or email when a new friend request is received on Zalo.
  • Log friend request data into a database for analytics or record-keeping.
  • Trigger follow-up workflows to send welcome messages or gather additional user information.

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).

If binary data were involved, it would be summarized here, but this node only outputs JSON event data.

Example output JSON structure:

{
  "friendEvent": {
    // Details of the friend request event from Zalo
  }
}

Dependencies

  • Requires an API key credential to connect with the Zalo platform.
  • Uses the zca-js library to handle Zalo API interactions and event listening.
  • Needs proper configuration of webhook URL in n8n to receive POST requests from Zalo events.
  • Requires valid Zalo credentials including cookie, IMEI, and user agent strings for authentication.

Troubleshooting

  • No credentials found: Ensure that the Zalo API credential is properly set up and linked to the node.
  • Zalo connection failed: Verify that the provided credentials are valid and have not expired. Check network connectivity and API access permissions.
  • Webhook not receiving events: Confirm that the webhook URL is correctly configured in both n8n and Zalo's developer settings. Make sure the server running n8n is accessible from the internet if using external webhooks.
  • Event types not triggering: Double-check that the selected event types match the actual events sent by Zalo.

Links and References

Discussion