Actions10
Overview
This node manages Zalo user interactions through various operations such as accepting friend requests, sending friend requests, blocking or unblocking users, changing alias names, retrieving user information, and more. It is useful for automating social interactions on the Zalo platform, especially in scenarios like customer engagement, community management, or personal contact organization.
For example, you can use this node to automatically accept incoming friend requests, block unwanted contacts, or update a friend's alias name based on your business logic.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to perform the operation on (e.g., unblock user). |
Output
The output JSON structure varies depending on the operation but generally includes:
status: A string indicating success, typically "Thành công" (meaning "Success").response: The raw response from the Zalo API for the performed action.- For some operations like
getUserInfoorfindUser, the output directly contains the user data returned by the API. - For
getAllFriends, the output includes afriendsarray with friend details.
No binary data output is produced by this node.
Example output for unblocking a user:
{
"status": "Thành công",
"response": { /* API response object */ }
}
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses stored cookie, device IMEI, and user agent information for login sessions.
- Depends on the external
zca-jslibrary to interact with the Zalo API. - Requires proper configuration of credentials within n8n to provide authentication details.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failures.
- Missing or incorrect User ID input will result in errors when performing user-specific operations.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that authentication failed due to invalid or missing credentials. Verify your API key and session data.- Errors thrown during specific operations will include the error message from the Zalo API. Enabling "Continue On Fail" allows processing subsequent items even if one fails.