Actions10
Overview
This node manages Zalo user interactions through various operations such as blocking or unblocking users, managing friend requests, updating profile settings, and retrieving user information. It is particularly useful for automating social management tasks on the Zalo platform, such as moderating contacts by blocking unwanted users or handling friend requests programmatically.
For example, using the "Chặn người dùng" (Block User) operation, you can automatically block specific users by their User ID, which helps in maintaining a clean contact list or preventing spam interactions.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user to be blocked |
Output
The output JSON contains:
status: A string indicating the success status, typically"Thành công"meaning "Success".response: The raw response from the Zalo API related to the block user action.
Example output JSON:
{
"status": "Thành công",
"response": {
/* API response details about the block operation */
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential with valid Zalo API authentication.
- Uses stored credentials including cookie, device IMEI, and user agent strings to authenticate API calls.
- Depends on the external
zca-jslibrary for interacting 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 service could interrupt execution.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that the node failed to authenticate with Zalo API. Verify your API credentials and ensure they are correctly configured.- Errors thrown during the block operation will include the error message from the API. If
Continue On Failis enabled, these errors will be returned in the output JSON under theerrorfield.