Actions10
Overview
This node manages Zalo personal groups, allowing users to perform various group-related operations via the Zalo API. Specifically, the "Thêm Phó Nhóm" (Add Group Deputy) operation adds a deputy (co-admin) to a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.
Practical examples:
- Adding a trusted member as a deputy to help moderate a group.
- Automating group role assignments in workflows managing multiple Zalo groups.
- Enhancing group administration by programmatically updating deputies based on external triggers.
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 specified 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 after attempting to add the deputy user.
Example output structure:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Zalo API using valid credentials that include authentication cookies, device IMEI, and user agent information.
- The node depends on the external
zalo-api-finallibrary to interact with the Zalo service. - Properly configured Zalo API credentials must be set up in n8n before using this node.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause login failures.
- Incorrect group or user IDs can lead to errors or no effect.
- Network connectivity problems might prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Verify that the Zalo API credentials are correctly configured and not expired.- Errors returned from the Zalo API (e.g., permission denied, invalid parameters) will be included in the node's error output if "Continue On Fail" is enabled.
Ensure that the user ID being added as deputy has appropriate permissions or membership status in the group.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- Zalo API Final GitHub Repository (replace with actual repo if available)