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 block |
The "User ID" property is required and specifies the target user to be blocked.
Output
The output JSON contains two main fields:
status: A string indicating the result status, typically"Thành công"meaning "Success".response: The raw response from the Zalo API related to the block user action, which may include details about the operation's success or failure.
Example output JSON:
{
"status": "Thành công",
"response": {
// API response details here
}
}
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 a cookie, device IMEI, and user agent string to establish a session with Zalo's API.
- The external library
zca-jsis used internally to interact with the Zalo API.
Troubleshooting
- Invalid Credentials: If the node throws an error stating no API instance was 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 handling retries.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON under the
errorfield.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)