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 account settings or avatar, retrieving user info, and finding users by phone number. Specifically, the "Bỏ chặn người dùng" (Unblock User) operation removes a block on a specified Zalo user, allowing renewed interaction.

Common scenarios include:

  • Re-enabling communication with previously blocked contacts.
  • Managing user relationships programmatically in automated workflows.
  • Integrating Zalo user management into broader CRM or customer support systems.

Example: Automatically unblock a user after resolving a dispute, enabling further messaging.

Properties

Name Meaning
User ID The unique identifier of the Zalo user to unblock

Output

The output JSON contains:

  • status: A string indicating success, e.g., "Thành công" ("Success").
  • response: The raw response from the Zalo API for the unblock action, which may include details about the unblock operation result.

Output example:

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

No binary data is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • Uses the external zca-js library to interact with the Zalo API.
  • Node configuration must include these credentials to authenticate API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials leading to authentication failure.
    • Incorrect or missing User ID parameter causing API errors.
    • Network connectivity problems preventing API access.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the Zalo API credentials are correctly configured and not expired.
    • Errors returned from the Zalo API (e.g., user not found or permission denied) will be thrown and can be caught if "Continue On Fail" is enabled.
  • Ensure the User ID corresponds to a valid blocked user; otherwise, the unblock operation may fail.

Links and References

Discussion