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 blocking or unblocking users, managing friend requests, updating profile settings, and retrieving user information. It is particularly useful for automating social management tasks on the Zalo platform, such as moderating contacts by blocking unwanted users or handling friend requests programmatically.

A practical example is using the "Chặn người dùng" (Block User) operation to automatically block specific users based on certain criteria, helping maintain a clean contact list without manual intervention.

Properties

Name Meaning
User ID The ID of the Zalo user to block

Output

The output JSON contains:

  • status: A string indicating the result status, typically "Thành công" meaning "Success".
  • response: The raw response from the Zalo API related to the block user action.

Example output JSON:

{
  "status": "Thành công",
  "response": {
    // API response details about the block action
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential with valid authentication details for Zalo.
  • Uses stored cookie, IMEI, and user agent values from credentials or input data to authenticate API calls.
  • Depends on the external zca-js library to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failure.
    • Missing or incorrect User ID parameter will prevent the block operation.
    • Network or API errors can interrupt the request.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify that the API key credential is correctly configured and contains valid cookie, IMEI, and user agent data.
    • Errors thrown during execution include the error message from the API or network layer. If Continue On Fail is enabled, errors are returned in the output JSON under the error field.

Links and References

Discussion