Zalo User icon

Zalo User

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

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

AI-generated

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, updating profiles, or handling messaging states.

For the Chặn Người Dùng (Block User) operation specifically, the node blocks a specified Zalo user by their user ID. This can be used to automate moderation workflows where certain users need to be restricted from interacting with your Zalo account.

Practical Example

  • Automatically block users who send spam messages by passing their user IDs to this node.
  • Integrate with other automation tools to manage your Zalo contact list dynamically.

Properties

Name Meaning
User ID The ID of the Zalo user to block

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 attempting to block the user. This may include details about the blocked user or confirmation data.

Example output JSON:

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

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • The node uses stored credentials including a cookie, IMEI, and user agent string to establish a session with Zalo's API.
  • The external library zca-js is used internally to interact with the Zalo API.

Troubleshooting

  • Common Issues:

    • Invalid or expired credentials will cause the node to fail to create an API instance.
    • Missing or incorrect User ID input will prevent the block operation from executing.
  • Error Messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the API key credential is correctly configured and has valid authentication tokens.
    • Errors related to invalid user IDs or network issues will be thrown by the underlying API call.
      Resolution: Check the user ID format and ensure network connectivity.
  • If the node is set to continue on failure, errors for individual items will be included in the output JSON under an error field.

Links and References

Discussion