Actions10
Overview
This node interacts with Zalo's user management API, allowing you to retrieve and manage information about Zalo users. Specifically, the "Lấy thông tin người dùng" (Get User Info) operation fetches detailed information 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 platforms.
- Automating user profile retrieval for customer support or analytics.
- Enriching workflows with real-time user information from Zalo.
For example, you can input a Zalo user ID and get back their profile details such as name, avatar, status, or other public information available via the API.
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 object returned by the Zalo API for the specified user ID. This typically includes fields such as the user's name, avatar URL, gender, birthday, and other profile details depending on what the API provides.
Example output structure (simplified):
{
"id": "123456789",
"name": "Nguyen Van A",
"avatar": "https://example.com/avatar.jpg",
"gender": "male",
"birthday": "1990-01-01",
...
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key/token and session cookie.
- The node uses these credentials to authenticate requests to Zalo's private API via the
zca-jslibrary. - Proper configuration of the Zalo credential in n8n is necessary before using this node.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that your Zalo API credentials are correctly set up and have not expired.
- User Not Found: If the user ID does not exist or is incorrect, the API may return an error or empty response. Double-check the user ID value.
- Rate Limits: Frequent calls to the Zalo API might hit rate limits; consider adding delays or handling errors gracefully.
- Network Issues: Ensure your n8n instance has internet access and can reach Zalo's API endpoints.
If the node fails and you have enabled "Continue On Fail," it will output the error message in the JSON under the error field for each failed item.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying API client used)
- n8n Documentation on Creating Custom Nodes