Zalo User icon

Zalo User

Quản lý người dùng Zalo

Overview

This node allows users to send friend requests on the Zalo platform programmatically. It is useful in scenarios where you want to automate social interactions, such as growing a network by sending connection invitations with personalized messages. For example, a marketing automation workflow could use this node to send friend requests to a list of potential customers, each accompanied by a custom message to increase engagement.

Properties

Name Meaning
User ID The unique identifier of the Zalo user to whom the friend request will be sent.
Message The text message that accompanies the friend request invitation.

Output

The node outputs JSON data containing:

  • status: A string indicating the success status of the operation (e.g., "success").
  • response: The raw response from the Zalo API after attempting to send the friend request.

Each output item corresponds to an input item, paired by index.

Dependencies

  • Requires a valid Zalo API authentication token or credential configured in n8n to authorize requests.
  • Depends on an internal Zalo API client class instantiated with authentication details like cookies, IMEI, and user agent strings.
  • The node expects these credentials to be provided via n8n's credential management system.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication tokens may cause authorization failures.
    • Incorrect or missing User ID can result in errors or failed requests.
    • Network connectivity problems can prevent communication with the Zalo API.
  • Error messages:

    • If the node cannot instantiate the Zalo API client due to missing credentials, it throws an error indicating failure to connect.
    • API errors returned from Zalo are passed through in the error field of the output JSON for each item.
  • Resolutions:

    • Ensure that the API key or authentication token is correctly set up and valid.
    • Verify that the User ID is correct and corresponds to an existing Zalo user.
    • Check network settings and retry if transient connectivity issues occur.

Links and References

Discussion