Actions3
- Zalo User Actions
Overview
The "Zalo User" node allows you to interact with Zalo user data through various operations. Specifically, the "User Information" operation fetches detailed information about a Zalo user based on their unique Zalo ID. This node is useful for scenarios where you need to retrieve profile details of users from Zalo, such as integrating user data into CRM systems, verifying user identities, or enriching contact lists.
For example, you can input a Zalo User ID and get back comprehensive user information like name, avatar, status, and other profile details.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier (ZaloID) of the user whose information you want to retrieve. This is a required string input. |
Output
The output is an array of JSON objects, each representing the user information retrieved from Zalo for the given User ID. The structure of the json output field contains all available user profile details returned by the Zalo API, such as name, avatar URL, status message, and other metadata related to the user.
No binary data is output by this node.
Example output snippet:
{
"id": "123456789",
"name": "John Doe",
"avatar": "https://example.com/avatar.jpg",
"status": "Online",
...
}
Dependencies
- Requires a valid Zalo API credential containing authentication details such as cookie, IMEI, and user agent.
- Uses the external
zca-jslibrary to handle Zalo API interactions. - The node expects these credentials to be configured in n8n before execution.
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 authenticate with Zalo due to missing or invalid credentials. Verify your API key and credential setup.- Errors related to specific user lookups will be shown per item if "Continue On Fail" is enabled; otherwise, they will stop execution.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)