Zalo User icon

Zalo User

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

Overview

This node manages Zalo user interactions through various operations such as blocking or unblocking users, sending or accepting friend requests, changing account settings, and retrieving user information. It is particularly useful for automating social media management tasks on the Zalo platform, such as moderating contacts by blocking unwanted users or updating profile details programmatically.

For example, using the "Chặn Người Dùng" (Block User) operation, you can automatically block specific users by their User ID, which helps in managing your contact list or preventing spam interactions.

Properties

Name Meaning
User ID The unique identifier of the user to be blocked

Output

The output JSON contains two main fields:

  • status: A string indicating the result of the operation, typically "Thành công" meaning "Success".
  • response: The raw response object returned from the Zalo API after performing the block user 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 a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured properly in n8n before execution.

Troubleshooting

  • Invalid Credentials: If the node throws an error about no API instance found, ensure that the provided Zalo API credentials are correct and include valid cookie, IMEI, and user agent values.
  • User Not Found or Invalid User ID: Errors may occur if the specified User ID does not exist or is invalid. Verify the User ID before running the node.
  • API Rate Limits or Network Issues: Temporary failures might happen due to network problems or API rate limits. Retrying the operation later or checking network connectivity can help.
  • Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON under the error field.

Links and References

Discussion