Actions10
Overview
This node manages Zalo user interactions through various operations such as blocking or unblocking users, sending or accepting friend requests, changing account settings, retrieving user info, and more. It is useful for automating social management tasks on the Zalo platform, especially in scenarios where bulk or programmatic control over user relationships is needed.
For example, you can use this node to automatically block a list of users based on certain criteria, accept incoming friend requests without manual intervention, or update profile information in bulk.
The specific operation "Chặn người dùng" (Block User) allows you to block a specified Zalo user by their user ID, preventing them from interacting with your account.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user to block |
Output
The output JSON contains two main fields:
status: A string indicating the result status, typically"Thành công"meaning "Success".response: The raw response object returned from the Zalo API after attempting to block the user. This may contain details about the block action's success or failure.
Example output JSON:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, 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 will cause login failure and prevent any API calls.
- Missing or incorrect User ID input will cause errors when attempting to block a user.
- Network or API rate limiting issues may cause intermittent failures.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo API. Check your credentials and ensure they are correct and active.- Errors thrown during the block operation will include the API error message. If
Continue On Failis enabled, the node will output the error message per item instead of stopping execution.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)