Actions9
Overview
This node allows you to add one or more members to a Zalo group by specifying the group's ID and a list of user IDs. It is useful for automating group management tasks in Zalo, such as onboarding new team members or managing community groups. For example, you could use this node in an n8n workflow to automatically add users to a Zalo group when they sign up on your platform or complete a specific action.
Properties
Name | Type | Meaning |
---|---|---|
ID Nhóm | String | The unique identifier of the Zalo group to which you want to add members. |
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) | String | A comma-separated list of user IDs to be added to the specified group. |
Output
The output will be a JSON object containing the response from the Zalo API after attempting to add the specified users to the group. The structure of the output depends on the Zalo API's response, but typically includes information about the operation's success or failure for each user.
Example output:
{
"success": true,
"addedUserIds": ["user1", "user2"],
"failedUserIds": []
}
Note: The actual fields may vary depending on the Zalo API's implementation.
Dependencies
- External Service: Requires access to the Zalo API.
- Credentials: You must provide valid Zalo credentials (cookie, IMEI, and user agent) via the
zaloApi
credential in n8n. - n8n Configuration: Ensure that the Zalo credential is set up in your n8n instance.
Troubleshooting
- Invalid Credentials: If the provided Zalo credentials are invalid or expired, the node will throw an error:
"No API instance found. Please make sure to provide valid credentials."
Solution: Update your Zalo credentials in n8n. - Malformed User IDs: If the user IDs are not properly formatted (e.g., missing commas), the operation may fail or not add all intended users.
- API Limitations: Zalo may have rate limits or restrictions on how many users can be added at once. Check the Zalo API documentation if you encounter unexpected failures.
- Error Handling: If an error occurs and "Continue On Fail" is enabled, the node will output an error message in the
error
field of the JSON output for the affected item.