Zalo User icon

Zalo User

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

Overview

This node interacts with the Zalo platform to manage and retrieve information about Zalo users. It is useful for automating user-related tasks such as fetching user details, managing friend requests, blocking/unblocking users, and updating account settings or avatars.

A practical example is using this node to fetch detailed information about a specific Zalo user by their User ID, which can be integrated into customer support workflows or CRM systems to enrich user profiles automatically.

Properties

Name Meaning
User ID The ID of the Zalo user whose information you want to retrieve

Output

The output JSON structure for the "Lấy thông tin người dùng" (Get User Info) operation contains the full user information object returned by the Zalo API. This includes all available details about the specified user.

Example output snippet:

{
  "id": "user_id_value",
  "name": "User Name",
  "avatar": "url_to_avatar",
  "phone": "user_phone_number",
  "status": "online/offline",
  ...
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • The node depends on the zca-js library to interact with the Zalo API.
  • Credentials must include valid cookie, IMEI, and user agent values for successful login.
  • Proper configuration of these credentials in n8n is necessary before executing the node.

Troubleshooting

  • Common issues:

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

    • "No API instance found. Please make sure to provide valid credentials."
      This indicates that the node could not establish a connection to the Zalo API due to invalid or missing credentials. Verify and update your API key and related credential fields.
    • Errors related to specific user operations often include the error message from the Zalo API. Enabling "Continue On Fail" allows processing other items even if one fails.

Links and References

Discussion