Actions9
Overview
This node interacts with a group management service (likely Zalo groups) to perform various group-related operations. Specifically, the "Lấy Tất Cả Nhóm" operation retrieves all groups associated with the authenticated user, up to a specified limit.
Common scenarios where this node is useful include:
- Fetching a list of all groups for reporting or monitoring.
- Integrating group data into workflows for automation.
- Managing group memberships or metadata by first retrieving existing groups.
Practical example:
- An automation that fetches all groups and then sends a summary message to each group.
- A workflow that lists all groups to allow users to select one for further actions like updating group info or members.
Properties
| Name | Meaning |
|---|---|
| Giới Hạn | The maximum number of groups to retrieve (limit). |
Output
The output is an array of JSON objects, each representing a group or a response from the group service. For the "Lấy Tất Cả Nhóm" operation, the main output field json contains:
response: The raw response data containing the list of groups retrieved from the service.
Each item in the output corresponds to one input item processed, paired with its respective result.
No binary data output is indicated in the code.
Dependencies
- Requires an API authentication token or cookie credential to access the group service.
- Uses an external shared library/module (imported as
Y) which provides methods to interact with the group API. - The node expects environment/user-agent and device identifier (IMEI) information, either from credentials or input data.
- Proper configuration of the API key/credential is necessary for successful requests.
Troubleshooting
- Authentication errors: If the node throws an error about missing or invalid credentials, ensure the API key or cookie credential is correctly configured and valid.
- Empty or incomplete group list: Verify that the limit property is set appropriately and that the authenticated user has groups available.
- API request failures: Network issues or changes in the external API may cause errors; check connectivity and update credentials if needed.
- Error handling: The node captures errors per item and can continue processing if configured; otherwise, it will throw an error stopping execution.
Links and References
- Zalo Official API Documentation (for reference on group APIs)
- n8n documentation on Creating Custom Nodes