Actions12
Overview
This node manages Zalo user interactions through various operations such as blocking or unblocking users, sending or accepting friend requests, changing account settings, retrieving user info, and managing messages. Specifically, the "Chặn Người Dùng" (Block User) operation allows you to block a specified Zalo user by their user ID.
Common scenarios for this node include automating social media management tasks on Zalo, such as moderating contacts by blocking unwanted users, updating profile information, or handling friend requests programmatically.
Practical example: Automatically block users who send spam messages by feeding their user IDs into this node's block operation.
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 from the Zalo API related to the block user action.
Example output JSON:
{
"status": "Thành công",
"response": {
/* API response details */
}
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
- Depends on the external
zca-jslibrary for interacting with the Zalo API.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found," verify that the provided API credentials (cookie, IMEI, user agent) are valid and up to date.
- User Not Found: Blocking a non-existent or invalid user ID may cause errors; ensure the user ID is correct.
- API Rate Limits: Frequent calls might hit Zalo API rate limits; consider adding delays or error handling for rate limit responses.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON.