Actions9
Overview
This node manages Zalo users by interacting with the Zalo platform through various user-related operations. It is useful for automating tasks such as blocking or unblocking users, managing friend requests, updating account settings, and retrieving user information. For example, you can use it to automatically block a user based on certain criteria, accept incoming friend requests, or fetch detailed info about a specific user.
In the context of the "Chặn người dùng" (Block User) operation, the node blocks a specified Zalo user by their user ID, preventing them from interacting further.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user to block |
Output
The output JSON contains:
status: A string indicating the result status, e.g.,"Thành công"meaning "Success".response: The raw response object returned from the Zalo API after attempting to block the user.
Example output JSON:
{
"status": "Thành công",
"response": {
/* API response details */
}
}
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 in n8n beforehand.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure.
- Providing an incorrect or non-existent User ID will likely result in an error from the Zalo API.
- Network connectivity problems can prevent successful API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates missing or invalid credentials; verify your API key and related authentication details.- Errors thrown during execution include the original message from the API; enabling "Continue On Fail" allows processing subsequent items even if one fails.