Actions9
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 useful include:
- Retrieving profile details of a Zalo user for CRM or customer support purposes.
- Integrating Zalo user data into workflows that require user verification or personalization.
- Automating user data collection from Zalo for analytics or marketing campaigns.
Example: Given a user ID, the node returns the full profile information of that user, which can then be used downstream in the workflow for further processing or decision-making.
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 detailed information of the requested Zalo user as returned by the Zalo API client. The structure depends on the API response but typically includes user profile fields such as name, avatar, status, and other personal details.
Example output snippet (structure may vary):
{
"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 API client library (
zca-js) to perform operations. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly configured and contain valid cookie, IMEI, and user agent values.
- User Not Found: If the provided 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 with the Zalo API endpoint can cause failures. Ensure network access and API availability.
- 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.
Links and References
- Zalo Official Developer Documentation
- Zalo API Client Library (zca-js) (used internally by the node)