Zalo User icon

Zalo User

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

Zalo User → Bỏ Chặn Người Dùng

AI-generated

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 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 unique identifier of the user to unblock

Output

The output JSON contains two main fields:

  • status: A string indicating the success of the operation, always "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.
  • The 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 result in errors.
    • Network connectivity problems can prevent API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Check your API credentials and ensure they are correctly configured.
    • Errors thrown during execution will include the message from the underlying API call. If continueOnFail is enabled, errors for individual items will be returned in the output JSON under the error field.

Links and References

Discussion