Zalo CN User  icon

Zalo CN 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. Specifically, the "Lấy Thông Tin Người Dùng" (Get User Information) operation fetches detailed data about a specified Zalo user by their user ID.

Common scenarios where this node is beneficial include:

  • Integrating Zalo user data into CRM or marketing automation workflows.
  • Verifying user details before sending messages or friend requests.
  • Building custom dashboards that display Zalo user profiles.

For example, you might use this node to automatically pull profile information of a user who just interacted with your Zalo official account, then use that data to personalize follow-up communications.

Properties

Name Meaning
User ID The unique identifier of the Zalo user whose information you want to retrieve. This is a required string input.

Output

The output JSON contains the full user information as returned by the Zalo API. It typically includes fields such as the user's name, avatar, gender, birthday, and other profile details depending on what the API provides.

Example output structure (simplified):

{
  "id": "123456789",
  "name": "Nguyen Van A",
  "avatar": "https://...",
  "gender": "male",
  "birthday": "1990-01-01",
  ...
}

No binary data output is produced by this operation.

Dependencies

  • Requires an active Zalo API credential configured in n8n, which must include valid authentication details such as cookies, device IMEI, and user agent strings.
  • Uses the zalo-api-final library internally to communicate with the Zalo platform.
  • The node expects these credentials to be correctly set up to establish a session with Zalo.

Troubleshooting

  • No API instance found: This error indicates invalid or missing credentials. Ensure your Zalo API credential is properly configured with valid cookie, IMEI, and user agent values.
  • User not found or invalid User ID: If the provided User ID does not exist or is incorrect, the API may return an error or empty response. Double-check the User ID value.
  • Rate limiting or API restrictions: Frequent calls to the Zalo API might trigger rate limits. Implement error handling and respect any usage guidelines from Zalo.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output for failed items.

Links and References

Discussion