Actions10
Overview
This node allows interaction with Zalo user accounts by performing various user-related operations such as sending friend requests, accepting friend requests, blocking/unblocking users, updating profile settings, retrieving user info, and more. It is particularly useful for automating social interactions on the Zalo platform, managing contacts, or integrating Zalo user management into workflows.
A practical example is automating the process of sending personalized friend requests to multiple users with a custom message, which can be used in marketing campaigns or community building.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to whom the friend request will be sent. |
| Message | The message that accompanies the friend request, allowing personalization of the invite. |
Output
The output JSON object contains:
status: A string indicating the result of the operation, typically"Thành công"(meaning "Success").response: The raw response from the Zalo API related to the friend request operation.
Each output item corresponds to an input item, paired by index.
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including cookie, device IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure, resulting in no API instance found error.
- Missing required parameters like User ID or Message will cause the node to throw errors.
- Network or API rate limiting issues could cause request failures.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate with Zalo API. Verify your API key credential and ensure cookies, IMEI, and user agent are correctly set.- Errors during individual item processing will either stop execution or, if "Continue On Fail" is enabled, return an error object per item.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)