Actions9
Overview
This node allows users to manage groups on the Zalo platform, specifically focusing on creating new groups with specified members. It is useful for automating group creation workflows where you want to programmatically set up a group chat and add multiple members at once.
Practical examples include:
- Automatically creating project or team groups in Zalo when a new project starts.
- Setting up event-specific groups by adding participants based on a list of user IDs.
- Integrating with other systems to dynamically create communication 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 (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 member IDs to be added to the group upon creation. |
Output
The node outputs JSON data representing the response from the Zalo API after attempting to create the group. This includes details about the newly created group such as its metadata and member information.
The output structure typically looks like this:
{
"json": {
// Response object from the Zalo API containing group creation result
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Zalo platform.
- Uses a shared helper class internally to handle API requests to Zalo.
- Node configuration must include valid authentication credentials for Zalo.
- The node expects input data items but can also work with parameters directly.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Incorrectly formatted user ID lists (e.g., missing commas) may lead to errors or incomplete group membership.
- Network or API downtime can cause request failures.
Error messages:
- Authentication errors usually indicate invalid or expired API tokens; recheck and update credentials.
- Validation errors from the API might indicate missing required fields like group name or user IDs.
- If the node throws an error referencing item index, it means the failure occurred processing that specific input item.
Resolutions:
- Ensure all required properties are provided and correctly formatted.
- Verify API credentials and permissions.
- Handle errors gracefully by enabling the node’s option to continue on failure if processing multiple items.
Links and References
- Zalo Official API Documentation
- Zalo Group Management API Reference
- n8n Documentation on Creating Custom Nodes