Actions10
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members, and modifying group settings. Specifically, the "Thêm Phó Nhóm" (Add Group Deputy) operation allows you to add a user as a deputy (co-admin) of a specified Zalo group.
Practical scenarios where this node is useful include:
- Automating group administration tasks in Zalo.
- Adding deputies to groups to delegate management responsibilities.
- Managing group membership and details programmatically within workflows.
Example: Automatically add a trusted user as a deputy to a newly created Zalo group to help moderate conversations.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group where the deputy will be added. |
| ID Người Dùng | The unique identifier of the user who will be added as a deputy to the group. |
Output
The output JSON contains:
status: A string indicating the result of the operation, e.g.,"Thành công"meaning "Success".response: The raw response from the Zalo API for adding the deputy, which may include additional metadata or confirmation details.
Example output:
{
"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 API.
- The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
- The external dependency is the
zca-jslibrary, which provides the interface to 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 not expired.
- Missing Required Parameters: Ensure both "ID Nhóm" (groupId) and "ID Người Dùng" (userId) are provided and correctly formatted.
- API Errors: If the Zalo API returns errors (e.g., user not found, insufficient permissions), check that the user ID exists and that the authenticated account has rights to modify the group.
- Network Issues: Connectivity problems can cause timeouts or failures; ensure stable internet access.
To resolve errors, review the error message returned in the node output or logs, and adjust parameters or credentials accordingly.
Links and References
- Zalo Official API Documentation (for detailed API capabilities)
- n8n Documentation (for general node usage and credential setup)