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 by their ID, accept incoming friend requests, or fetch details about a specific user.
The "Chặn người dùng" (Block User) operation specifically allows you to block a Zalo user by providing 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 structure:
{
"status": "Thành công",
"response": {
// API response details about the block action
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- The node uses stored credentials including cookie, device IMEI, and user agent strings to establish a session.
- The external dependency is the
zca-jslibrary which provides the Zalo API client functionality.
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 API.
- Network connectivity problems can prevent successful API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that authentication failed; verify your API key and credential details.- Errors returned from the API are caught and reported per item. If
continueOnFailis enabled, processing continues with error details included in the output.
Links and References
- Zalo Official Developer Documentation (for general API reference)
- n8n Documentation (for workflow automation guidance)