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.
The "Chặn người dùng" (Block User) operation specifically allows you to block a 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:
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 an API key credential to authenticate with the Zalo platform.
- Uses stored credentials including cookie, device IMEI, and user agent strings to establish a session.
- Depends on the external
zca-jslibrary to interact with the Zalo API.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure.
- Missing or incorrect User ID input will prevent the operation from executing.
- Network connectivity problems can interrupt API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate with Zalo. Verify that the API key credential and related session data are correct and up to date.- Errors thrown during the block operation will include the error message from the API. Enabling "Continue On Fail" allows processing subsequent items even if one fails.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client)