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 block a specific user by their ID, accept incoming friend requests automatically, or fetch details about a user.
The "Chặn người dùng" (Block User) operation specifically allows you to block a user on Zalo by providing their user ID. This is helpful in scenarios where you want to automate moderation or control interactions with certain users.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user to be blocked |
Output
The output JSON contains:
status: A string indicating the result status, e.g.,"Thành công"meaning "Success".response: The raw response from the Zalo API related to the block user action.
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.
- 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 block operation.
- Network or API errors from Zalo could interrupt execution.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate with Zalo. Check that your API key and other credential details are correct and up to date.- Errors returned from the Zalo API will be shown in the output if "Continue On Fail" is enabled; otherwise, they will stop execution. Review the error message for specifics and verify the user ID and network connectivity.