Actions12
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. This is useful in scenarios where you need to integrate Zalo user data into workflows, such as customer support automation, user verification, or personalized messaging.
For example, you might use this node to:
- Retrieve profile details of a user who initiated contact.
- Verify user identity before proceeding with further automated actions.
- Enrich your CRM system with up-to-date Zalo user information.
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. The structure depends on the Zalo API response but typically includes fields such as user name, avatar, status, and other profile details.
Example output snippet (conceptual):
{
"id": "123456789",
"name": "Nguyen Van A",
"avatar": "https://...",
"status": "active",
...
}
No binary data is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- The node uses an external library (
zca-js) to handle authentication and API calls to Zalo. - Proper configuration of the Zalo API credentials within n8n is necessary for successful execution.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided Zalo API credentials are correct and have not expired.
- User Not Found: If the user ID does not exist or is invalid, the API may return an error or empty response. Double-check the user ID input.
- Network Issues: Connectivity problems can cause request failures. Ensure that the n8n instance has internet access and can reach Zalo's API endpoints.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON under the
errorfield.