Actions13
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and handling group polls. The "Thêm Phó Nhóm" (Add Group Deputy) operation adds a user as a deputy (co-admin) to a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.
Practical examples:
- Automatically assign trusted users as deputies when a new group is created.
- Promote active members to deputies to help moderate the group.
- Manage group roles programmatically in workflows integrating Zalo with other systems.
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 to be added as a deputy in the group. |
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 after adding the deputy user.
Example output JSON structure:
{
"status": "Thành công",
"response": { /* API response object */ }
}
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 the session.
- The external dependency is the Zalo API accessed via the
zca-jslibrary.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user ID can lead to errors or no effect.
- Network connectivity problems can prevent API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not initialize the Zalo API client due to missing or invalid credentials. Check your API key and credential configuration.- Errors thrown during execution will include the message from the underlying API call. If
continueOnFailis enabled, errors are returned as part of the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (Zalo Client API wrapper used internally)