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 earlier, such as customer support reopening conversations or re-engaging contacts.

Practical example:

  • A business that blocks spammy users can later unblock legitimate users mistakenly blocked, enabling resumed messaging and interaction.

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, e.g., "Thành công" meaning "Success".
  • response: The raw response from the Zalo API confirming the unblock action.

Example output JSON:

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

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses the zca-js library internally to interact with Zalo's API.
  • Node expects valid credentials including cookie, IMEI, and user agent information either from stored credentials or input data.
  • Proper configuration of the Zalo API credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Missing or incorrect User ID will prevent the unblock operation.
    • Network or API downtime could lead to request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node failed to authenticate; verify your API key and credential setup.
    • Errors returned from the Zalo API will be passed through; check the error message for details.
  • Resolution tips:

    • Ensure the API credential is correctly configured and active.
    • Confirm the User ID exists and is currently blocked.
    • Use the "Continue On Fail" option to handle errors gracefully during batch processing.

Links and References

Discussion