Actions9
Overview
This node manages Zalo user-related operations via the Zalo API. It is useful for automating interactions with Zalo users such as retrieving user information, managing friend requests, blocking/unblocking users, and updating account settings or avatar.
A practical example is using the "Lấy thông tin người dùng" (Get User Info) operation to fetch detailed profile data of a specific Zalo user by their user ID. This can be integrated into workflows that require user verification, personalized messaging, or analytics based on user profiles.
Properties
Name | Meaning |
---|---|
User ID | The ID of the Zalo user whose information you want to retrieve |
Output
The output JSON structure for the "Lấy thông tin người dùng" operation contains the full user information object returned by the Zalo API. This includes all available profile details of the specified user.
Example output snippet:
{
"id": "user_id_value",
"name": "User Name",
"avatar": "avatar_url",
"gender": "male/female/other",
"birthday": "YYYY-MM-DD",
...
}
No binary data output is produced by this operation.
Dependencies
- Requires a valid Zalo API credential with an authentication cookie, device IMEI, and user agent string.
- The node uses an external Zalo API client library to perform actions.
- Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Missing or incorrect User ID input will result in errors when fetching user info.
- 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 API. Check your API credentials and ensure they are correctly configured.- Errors related to invalid user IDs or permissions will be returned from the API and surfaced in the node's error output.
To resolve errors, verify the correctness of the User ID, ensure the API credentials are up to date, and confirm network access to Zalo services.