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 user IDs with a custom greeting message.

Properties

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

Output

The node outputs JSON data for each processed item containing:

  • status: A string indicating the result of the operation, typically "Thành công" (Success).
  • response: The raw response from the Zalo API related to the friend request action.
  • pairedItem: Metadata linking the output to the corresponding input item index.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • Uses stored cookies, IMEI, and user agent strings from credentials or previous executions to authenticate requests.
  • Depends on an internal Zalo API client class to perform actions like sending friend requests.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication credentials may cause failures.
    • Incorrect or missing User ID or Message properties can lead to errors.
    • Network connectivity problems might prevent successful API calls.
  • Error messages:

    • If the node cannot instantiate the Zalo API client due to missing credentials, it throws an error indicating failure to initialize.
    • API errors returned from Zalo are captured and included in the output JSON under an error field if the node is set to continue on failure.
    • To resolve errors, verify that the API key credential is correctly configured and valid, ensure all required parameters are provided, and check network access.

Links and References

Discussion