Zalo User icon

Zalo User

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

Overview

This node integrates with the Zalo platform to manage Zalo user accounts and their interactions. It allows users to perform various operations such as retrieving user information, managing friend requests, blocking/unblocking users, changing account settings or avatar, and searching for users by phone number.

A common use case is automating workflows that require fetching detailed information about a Zalo user by their User ID, which can be useful in customer support, marketing automation, or user data synchronization scenarios.

For example, using the "Lấy thông tin người dùng" (Get User Info) operation, you can input a Zalo User ID and retrieve comprehensive profile details of that user to enrich your CRM system or trigger personalized communications.

Properties

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

Output

The output JSON contains the full user information object returned by the Zalo API for the specified User ID. This includes all available profile details as provided by the API.

Example output structure (simplified):

{
  "id": "string",
  "name": "string",
  "avatar": "string",
  "gender": "string",
  "birthday": "string",
  "phoneNumber": "string",
  "status": "string",
  ...
}

No binary data is output by this operation.

Dependencies

  • Requires an active Zalo API credential with valid authentication details including cookie, IMEI, and user agent.
  • The node uses the zca-js library internally to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary before using this node.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found or authentication failure, verify that the Zalo API credentials are correctly configured and have not expired.
  • User Not Found: If the specified User ID does not exist or is invalid, the API may return an error or empty response. Double-check the User ID value.
  • Rate Limits: Excessive API calls might lead to rate limiting by Zalo. Implement delays or error handling to manage this.
  • Network Issues: Connectivity problems can cause request failures; ensure stable internet access.
  • Error Handling: When "Continue On Fail" is enabled, errors for individual items will be included in the output JSON under an error field instead of stopping execution.

Links and References

Discussion