Zalo User icon

Zalo User

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

Overview

This node manages Zalo user interactions, specifically allowing you to unblock a user on the Zalo platform. It is useful in scenarios where you have previously blocked a user and want to restore communication with them. For example, if you accidentally blocked a contact or want to resume conversations with a user, this operation will remove the block status.

Practical example:

  • You maintain a list of blocked users and want to programmatically unblock certain users based on external triggers or workflows.
  • Automate unblocking users after a cooldown period or upon receiving specific events.

Properties

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

Output

The node outputs a JSON object for each input item processed, structured as follows:

{
  "status": "Thành công",
  "response": { /* API response data from unblocking the user */ }
}
  • status: A string indicating success ("Thành công" means "Success" in Vietnamese).
  • response: Contains the detailed response returned by the Zalo API after unblocking the user. This may include confirmation details or metadata about the unblock action.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • The node uses the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials within n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause authentication failures.
    • Missing or incorrect User ID parameter will result in errors.
    • Network connectivity problems may prevent API calls from succeeding.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not initialize the Zalo API client due to missing or invalid credentials. Verify your API key and credential setup.
    • Errors related to user ID or API responses will be thrown per item. If "Continue On Fail" is enabled, errors will be included in the output JSON under the error field.

Links and References

Discussion