Zalo User icon

Zalo User

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

Overview

This node manages Zalo user interactions through various operations such as accepting friend requests, sending friend requests, blocking or unblocking users, changing alias names, retrieving user information, and more. It is useful for automating social interactions on the Zalo platform, especially in scenarios like customer engagement, community management, or personal contact organization.

For example, you can use this node to automatically unblock a user who was previously blocked, accept incoming friend requests without manual intervention, or update the alias name of a friend for better identification.

Properties

Name Meaning
User ID The unique identifier of the Zalo user to perform the operation on (e.g., unblock user).

Output

The output JSON structure typically contains:

  • status: A string indicating the success status, usually "Thành công" (meaning "Success").
  • response: The detailed response object returned from the Zalo API for the performed operation.

Example output when unblocking a user:

{
  "status": "Thành công",
  "response": { /* API response details */ }
}

If the operation involves fetching user info or friends list, the output JSON will contain the relevant data directly, e.g., user details or an array of friends.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Needs valid cookie, device IMEI, and user agent information either from credentials or input data to establish a session.
  • Uses the external zca-js library to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials leading to failure in creating an API instance.
    • Missing required parameters such as User ID.
    • Network or API errors from Zalo service.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      This indicates that authentication failed due to invalid or missing credentials. Verify your API key and session details.
    • Errors thrown during specific operations will include the error message from the Zalo API. Enabling "Continue On Fail" allows processing subsequent items even if one fails.

Links and References

Discussion