Zalo User icon

Zalo User

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

Overview

This node manages Zalo user interactions, specifically for the "Bỏ Chặn Người Dùng" (Unblock User) operation. It allows unblocking a previously blocked user on the Zalo platform by specifying their user ID. This is useful in scenarios where you want to restore communication with users who were blocked, such as customer support reopening contact or social interactions resuming.

Practical example:

  • A business that blocks spammy users can later unblock legitimate users who were mistakenly blocked.
  • A user automation workflow that temporarily blocks and then unblocks users based on certain triggers.

Properties

Name Meaning
User ID The ID of the user to unblock.

Output

The output JSON contains two main fields:

  • status: A string indicating the result status, typically "Thành công" meaning "Success".
  • response: The raw response from the Zalo API after attempting to unblock the user, which may include details about the unblock action.

Example output JSON:

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

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
  • Depends on the external zca-js library for interacting with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials leading to failure in creating an API instance.
    • Incorrect or missing User ID parameter causing the unblock request to fail.
    • Network or API errors from Zalo service.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the API key credential is correctly configured and not expired.
    • Errors returned from the Zalo API will be propagated; ensure the User ID exists and is currently blocked.
    • If the node is set to continue on fail, errors will appear in the output JSON under the error field.

Links and References

Discussion