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 webhook trigger that activates when such events occur, allowing workflows to respond automatically to new friend requests on Zalo. This is useful for automating social interactions, customer engagement, or notifications based on friend activity in Zalo.

For example, you could use this node to:

  • Automatically send a welcome message when someone sends a friend request.
  • Log incoming friend requests into a CRM system.
  • Trigger other workflows based on friend connection events.

Properties

Name Meaning
Event Types Friend events to listen for. Options: "Friend Requests" (listens for friend request events)

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.

If binary data were involved, it would typically represent media or attachments related to the event, but this node only outputs JSON event data.

Dependencies

  • Requires an API key credential to connect with the Zalo platform.
  • Uses the Zalo SDK (zca-js) to handle authentication and event listening.
  • Needs a valid cookie, device IMEI, and user agent string as part of the credentials to authenticate with Zalo.
  • The node sets up a webhook URL within n8n to receive POST requests triggered by Zalo friend events.

Troubleshooting

  • No credentials found: Ensure that the Zalo API credential is properly configured with valid cookie, IMEI, and user agent values.
  • Zalo connection failed: Indicates failure to authenticate or establish a connection with Zalo. Verify that the credentials are correct and have not expired.
  • Webhook not receiving events: Confirm that the webhook URL is correctly set in the node and publicly accessible by Zalo's servers.
  • Event types not triggering: Make sure the selected event types match the incoming event type from Zalo.

Links and References

Discussion