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 member when a new friend request arrives.
  • Log friend request data into a database for analytics.
  • Trigger a welcome message workflow upon receiving a friend request.

Properties

Name Meaning
Event Types Friend events to listen for. Options: "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 handle authentication and event listening.
  • Needs proper configuration of webhook URL in n8n to receive POST requests from Zalo events.

Troubleshooting

  • Common issues:

    • Missing or invalid credentials will cause connection failures.
    • Incorrect webhook URL setup may prevent event delivery.
    • Network issues can disrupt event listening.
  • Error messages:

    • "No credentials found": Ensure that the required API authentication token is configured in the node credentials.
    • "No API instance found. Please make sure to provide valid credentials.": Verify that the provided credentials are correct and have not expired.
    • "Zalo connection failed": Check network connectivity and credential validity.

Links and References

Discussion