Actions9
Overview
This node integrates with the Zalo platform to manage Zalo user accounts and their interactions. It allows users to perform various operations such as retrieving user information, managing friend requests, blocking/unblocking users, updating account settings, and more.
A common use case is automating workflows that require fetching detailed information about a Zalo user by their user ID, for example, to personalize communication or synchronize user data with other systems. Another practical example includes automating friend request handling or updating user profile settings programmatically.
Specifically, the "Lấy thông tin người dùng" (Get User Info) operation fetches detailed information about a specified Zalo user by their user ID.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user whose information you want to retrieve. This is a required string input. |
Output
The output JSON structure for the "Lấy thông tin người dùng" operation contains the detailed user information returned from the Zalo API. The exact fields depend on the API response but typically include user profile details such as name, avatar, status, and other relevant metadata.
Example output snippet (structure depends on Zalo API response):
{
"id": "123456789",
"name": "Nguyen Van A",
"avatar": "https://example.com/avatar.jpg",
"status": "active",
...
}
No binary data output is produced by this operation.
Dependencies
- Requires an active Zalo API credential configured in n8n, which must include valid authentication details such as cookies, device identifiers (IMEI), and user agent strings.
- Uses the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credentials is essential for successful API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Missing or incorrect User ID input will result in errors or empty responses.
- Network connectivity problems can prevent API communication.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that the node could not authenticate with the Zalo API. Verify that the API credentials are correctly set up and valid.- Errors related to specific API calls (e.g., user not found) will be returned from the Zalo API and surfaced in the node's error output if "Continue On Fail" is enabled.
Resolution tips:
- Double-check the API credential configuration in n8n.
- Ensure the User ID provided exists and is correct.
- Enable "Continue On Fail" to handle individual item errors gracefully during batch processing.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client library)