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 re-engaging with users.

Practical example:

  • A business had blocked a user due to spam but later decides to unblock them to resume communication. Using this node, they provide the user's ID and unblock them programmatically within an automation workflow.

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. This may include details about the unblock action.

Example output JSON:

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

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including a cookie, IMEI, and user agent information.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured in n8n beforehand.
  • No additional environment variables are explicitly required beyond the credential setup.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause failure to authenticate with the Zalo API.
    • Providing an incorrect or non-existent User ID will likely result in an error from the API.
    • Network connectivity problems may prevent successful API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not establish a connection to Zalo API due to missing or invalid credentials.
      Resolution: Verify that the API key credential is correctly set up and has valid cookie, IMEI, and user agent values.

    • Errors returned from the API during the unblock attempt will be thrown and can be caught if "Continue On Fail" is enabled. These errors usually contain messages explaining the issue, such as invalid user ID or permission denied.

Links and References

Discussion