Actions10
Overview
This node manages personal Zalo groups, allowing users to perform various group-related operations. Specifically, the "Add User To Group" operation lets you add one or multiple members to an existing Zalo group by specifying the group ID and a list of user IDs.
Common scenarios include:
- Automating group membership management in Zalo for community or team chats.
- Adding new participants to a group after onboarding or registration processes.
- Integrating with other systems to synchronize group members dynamically.
Example: Add several users to a project discussion group by providing the group's ID and a comma-separated list of user IDs to be added.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm (groupId) | The unique identifier of the Zalo group where 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) (userIds) | A comma-separated list of user IDs representing the members to add to the 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 operation's success or failure and any relevant data returned by the API.
Example output structure:
{
"json": {
// Response object from the Zalo API indicating the result of adding users
},
"pairedItem": {
"item": 0
}
}
No binary data is produced by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details such as cookie, IMEI, and user agent.
- Uses the external
zalo-api-finallibrary to interact with the Zalo platform. - The node expects these credentials to be configured properly within n8n to establish API connectivity.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the Zalo API credentials are correctly set up and have not expired.
- Incorrect Group ID or User IDs: Ensure the group ID exists and the user IDs are valid and formatted as a comma-separated string without extra spaces.
- API Rate Limits or Permissions: The Zalo API might restrict certain actions; check if the authenticated user has permission to add members to the group.
- Network Issues: Connectivity problems can cause failures; ensure stable internet access and no firewall blocking requests.
If errors occur, enabling "Continue On Fail" allows processing subsequent items even if some fail.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- Zalo API Final GitHub Repository (replace with actual repo if available)