Zalo User icon

Zalo User

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

Overview

This node manages Zalo users by interacting with the Zalo platform through various user-related operations. It is useful for automating tasks such as blocking or unblocking users, managing friend requests, updating account settings, and retrieving user information on Zalo.

A practical example is using this node to block a specific user by their User ID automatically when certain conditions are met in your workflow, helping moderate interactions or prevent unwanted communication.

Properties

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

Output

The output JSON contains:

  • status: A string indicating the result status, e.g., "Thành công" (Success).
  • response: The raw response from the Zalo API related to the block user operation.

Example output structure:

{
  "status": "Thành công",
  "response": {
    /* API response details about the block operation */
  }
}

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 cookie, device IMEI, and user agent strings to establish a session.
  • The external library zca-js is used internally to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failure.
    • Missing or incorrect User ID input will cause the operation to fail.
    • Network connectivity problems can interrupt API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify that the API key credential is correctly configured and valid.
    • Errors returned from the Zalo API (e.g., user not found, permission denied) will be included in the error message. Check the User ID and permissions.
  • To handle errors gracefully, enable the node's "Continue On Fail" option to allow the workflow to proceed even if some items fail.

Links and References

Discussion