Actions10
Overview
This node interacts with the Zalo platform to manage and retrieve information about Zalo users. Specifically, for the "Zalo User" resource and the "Lấy thông tin người dùng" (Get user information) operation, it fetches detailed information about a specified Zalo user by their user ID.
Common scenarios where this node is beneficial include:
- Retrieving profile details of a Zalo user for CRM or customer support purposes.
- Integrating Zalo user data into other systems or workflows.
- Automating user data retrieval in marketing or communication pipelines.
Practical example:
- Given a user ID, the node fetches that user's profile information such as name, avatar, status, or other available metadata from Zalo.
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 various user profile fields such as name, avatar URL, status message, and other metadata provided by Zalo.
Example output structure (simplified):
{
"id": "123456789",
"name": "Nguyen Van A",
"avatar": "https://example.com/avatar.jpg",
"status": "Online",
...
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- The node uses an external Zalo SDK library (
zca-js) to interact with the Zalo API. - Proper configuration of the Zalo API credentials in n8n is necessary for authentication and successful API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent user ID 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."
Means the node could not authenticate with Zalo due to missing or invalid credentials. Verify your API key and credential setup.- Errors related to user ID not found or invalid parameters will be thrown by the API and surfaced by the node. Check that the user ID is correct and exists on Zalo.
- If
continueOnFailis enabled, errors for individual items will be included in the output JSON under anerrorfield instead of stopping execution.
Links and References
- Zalo Official Developer Documentation
- Zalo SDK (zca-js) GitHub Repository (for reference on API methods used)