Actions9
Overview
This node manages Zalo groups by interacting with the Zalo API. It allows users to create new groups, retrieve group information, add or remove members, change group names or avatars, and list all groups. This is useful for automating group management tasks in Zalo, such as setting up new discussion groups with specific members or updating group details programmatically.
A practical example is creating a new Zalo group with a given name and a list of member IDs, which can be used to quickly organize team chats or customer support groups without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Tên Nhóm (groupName) | The name of the new group to be created. |
| Danh Sách ID Thành Viên (userIds) | A comma-separated list of member IDs to be added to the group upon creation. |
Output
The output JSON contains the response from the Zalo API after attempting to create a group. It typically includes details about the newly created group such as its ID, name, and members.
Example output structure:
{
"id": "string",
"name": "string",
"members": ["string", "string", "..."]
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- The node depends on the external
zca-jslibrary to interact with Zalo services. - Proper configuration of credentials including cookie, IMEI, and user agent is necessary for successful API calls.
Troubleshooting
- Invalid Credentials: If the provided API authentication token or cookie is invalid or expired, the node will fail to instantiate the API client. Ensure that valid and current credentials are supplied.
- Malformed User IDs: The user IDs must be provided as a comma-separated string. Incorrect formatting may cause errors when creating the group.
- API Errors: Any error returned by the Zalo API during group creation will be caught and reported. Use the error message to diagnose issues such as permission problems or invalid parameters.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.