Zalo Friend Trigger icon

Zalo Friend Trigger

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

Zalo Friend Trigger

AI-generated

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 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 triggered (e.g., information about the friend request).

If the event contains binary data, it is not explicitly handled here; the output focuses on JSON payloads describing the event.

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 event callbacks from Zalo.
  • Requires proper credential setup in n8n to authenticate with Zalo's API.

Troubleshooting

  • No credentials found: Ensure that the Zalo API credentials are correctly configured and provided to the node.
  • Zalo connection failed: This error indicates failure to connect to Zalo using the provided credentials. Verify that the cookie, IMEI, and user agent are valid and have not expired.
  • Webhook not receiving events: Confirm that the webhook URL is publicly accessible and correctly set in the node configuration.
  • Event types mismatch: If no events trigger the workflow, check that the selected event types match those sent by Zalo.

Links and References

Discussion