Actions9
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and updating group details. The "Add User to Group" operation lets you add one or multiple users to an existing Zalo group by specifying the group ID and user IDs.
Common scenarios include:
- Automating group membership management in Zalo for community or team coordination.
- Adding new members to a group after registration or approval processes.
- Integrating Zalo group management into broader workflows like CRM or event management.
Example: Automatically add newly registered users to a specific Zalo group by passing their user IDs and the target group ID.
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 (userIds) | Comma-separated list of user IDs to add to the group. |
Output
The output JSON contains the response from the Zalo API after attempting to add 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 output by this operation.
Dependencies
- Requires valid Zalo API credentials with appropriate permissions to manage groups.
- The node uses an API client library (
zca-js
) to interact with Zalo services. - Credentials must provide cookie, IMEI, and user agent information for authentication.
- Proper configuration of these credentials in n8n is necessary for successful API calls.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found," verify that the provided credentials are correct and contain valid cookie, IMEI, and user agent values.
- User IDs Format: Ensure the user IDs are correctly formatted as a comma-separated string without extra spaces or invalid characters.
- Group ID Validity: Confirm that the group ID exists and the authenticated user has permission to modify it.
- API Errors: Any errors returned by the Zalo API will be included in the output if "Continue On Fail" is enabled; otherwise, they will cause the node to error out.
- Network Issues: Connectivity problems may cause timeouts or failures; check network access to Zalo API endpoints.