Actions10
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating a group, retrieving group information, managing members and deputies, changing group details (name or avatar), and creating notes within groups.
The specific operation "Lấy Thông Tin Nhóm" (Get Group Info) retrieves detailed information about a specified Zalo group by its ID. This is useful for scenarios where you need to fetch metadata or member details of a group for reporting, monitoring, or automation purposes.
Practical example:
You want to automate the process of gathering group info to display in a dashboard or trigger workflows based on group membership changes. Using this node, you provide the group ID, and it returns comprehensive data about that group.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier (ID) of the Zalo group whose information you want to retrieve. |
Output
The output JSON contains two main fields:
response: The full raw response from the Zalo API containing all group data.groupInfo: A subset of the response specifically related to the requested group's detailed information, indexed by the provided group ID.
Example output structure:
{
"response": { /* full API response object */ },
"groupInfo": { /* detailed info about the specified group */ }
}
This output allows you to access both the complete data returned by the API and the focused group details directly.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- The node uses a third-party library (
zca-js) to handle Zalo API interactions. - Proper configuration of credentials including cookie, IMEI, and user agent is necessary for successful API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent group ID will result in empty or error responses.
- Network connectivity problems can prevent API communication.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not establish a connection to the Zalo API due to missing or invalid credentials. Verify your API key and credential setup.- Errors thrown during execution are caught and can be optionally continued on fail; otherwise, they stop the workflow with detailed error messages.
Links and References
- Zalo Official API Documentation (for reference on group management endpoints)
- n8n Documentation (general guidance on using custom nodes and credentials)