Actions17
- Get Actions
- Message Actions
- Friend Actions
- Group Actions
Overview
This n8n custom node provides integration with Zalo, specifically for managing group-related operations. The "Add Group Deputy" operation allows you to assign a deputy (co-admin) to a Zalo group by specifying the user and group IDs. This is useful in scenarios where group management needs to be automated, such as delegating administrative responsibilities or automating onboarding processes for group deputies.
Practical Example:
You can use this node in an automation workflow to automatically promote certain users to deputy status in a Zalo group when they meet specific criteria (e.g., after joining the group or based on external triggers).
Properties
The following input properties are relevant for the "Group" resource and "Add Group Deputy" operation:
| Display Name | Type | Description |
|---|---|---|
| User Id | String | ID của Zalo User để lấy thông tin. |
| Group Id | String | ID của nhóm Zalo. |
- User Id: The unique identifier of the Zalo user who will be promoted to deputy.
- Group Id: The unique identifier of the Zalo group where the deputy will be added.
Both fields are required.
Output
The output of this operation is a JSON object indicating the result of the attempt to add a deputy to the group. The structure typically includes:
{
"success": true,
"data": { ... } // Details about the operation result, if available
}
success: Boolean indicating whether the operation was successful.data: Additional information returned from the Zalo API, such as confirmation details or error messages.
If the operation fails, the output may include:
{
"success": false,
"error": "Error message",
"stack": "Stack trace (if available)"
}
Dependencies
- External Service: Requires access to the Zalo API.
- API Key/Token: You must configure authentication credentials for the Zalo API within n8n.
- n8n Configuration: Ensure that the Zalo API credentials are set up in your n8n instance.
Troubleshooting
Common Issues
- Invalid User Id or Group Id: If either ID is incorrect or does not exist, the operation will fail.
- Insufficient Permissions: The authenticated account must have admin rights in the group to add deputies.
- API Rate Limits: Excessive requests may trigger rate limiting by Zalo.
Error Messages
"User not found": The provided User Id does not correspond to any existing Zalo user."Group not found": The provided Group Id does not correspond to any existing Zalo group."Permission denied": The authenticated user lacks sufficient privileges."API error": A generic error from the Zalo API; check theerrorandstackfields in the output for more details.
Resolution Steps:
- Double-check the User Id and Group Id values.
- Ensure the Zalo API credentials are valid and have the necessary permissions.
- Review the error message and stack trace for further debugging.