Actions9
Overview
This node manages Zalo groups, specifically allowing users to perform various group-related operations via the Zalo API. The "Add User To Group" operation lets you add one or multiple members to an existing Zalo group by specifying the group's ID and a list of user IDs.
Common scenarios where this node is useful include:
- Automating group membership management in Zalo for community or team chats.
- Integrating Zalo group updates into workflows that manage user onboarding or communication channels.
- Bulk adding users to groups based on external triggers or data sources.
For example, you can use this node to automatically add new employees to a company Zalo group when they join, or to add participants to event-specific groups.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier (ID) of the Zalo group to which users will be added. |
| Danh Sách ID Thành Viên (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) | A comma-separated list of user IDs representing the members to add to the specified group. |
Output
The output JSON contains the response from the Zalo API after attempting to add the specified users to the group. It typically includes details about the success or failure of the operation and any relevant metadata returned by the API.
Example structure of the output JSON:
{
// API response object indicating the result of adding users to the group
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials with appropriate permissions to manage groups.
- The node expects credentials to provide authentication details such as cookies, device IMEI, and user agent strings.
- Uses the
zca-jslibrary internally to interact with the Zalo API. - Proper configuration of the Zalo API credential in n8n is necessary before using this node.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user IDs can lead to errors or no changes in group membership.
- Network or API rate limits might cause intermittent failures.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates missing or invalid credentials; verify your API key and authentication details.- Errors related to user or group IDs usually mean the provided IDs do not exist or are malformed; double-check the input values.
- If the node fails but "Continue On Fail" is enabled, error details will appear in the output JSON under the
errorfield.
Links and References
- Zalo Official API Documentation (for detailed API capabilities)
- n8n Documentation (for general usage of custom nodes and credentials setup)