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 just sent a message.
- Verify user identity before processing requests.
- 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. |
Output
The output JSON contains the full user information 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 profile details, status, and other metadata related to the user.
Example output snippet (structure may vary):
{
"id": "123456789",
"name": "Nguyen Van A",
"gender": "male",
"birthday": "1990-01-01",
"avatar": "https://example.com/avatar.jpg",
"status": "active"
}
No binary data is output 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 Zalo SDK library (
zca-js) to interact with the Zalo API. - Proper configuration of the Zalo API credentials within n8n is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials can cause authentication failures.
- Incorrect or missing User ID parameter will result in errors or empty responses.
- Network connectivity problems may 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. Check your API key setup and ensure all required fields (cookie, IMEI, user agent) are correctly configured.- Errors related to user not found or invalid user ID will be returned from the Zalo API and surfaced here. Verify the User ID is correct.
To handle errors gracefully, enable the "Continue On Fail" option in the node settings to allow workflow execution to proceed even if some items fail.