Actions10
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members and deputies, changing group details, 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 have an automation workflow that needs to monitor activity in certain Zalo groups. Using this node's "Get Group Info" operation, you can retrieve the current state of a group, including members and admins, and then trigger further actions based on that data.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier (ID) of the Zalo group whose information you want to retrieve. This is a required string input. |
Output
The output JSON contains two main fields:
response: The full raw response object returned from the Zalo API containing all group-related data.groupInfo: A subset of the response focused on the specific group's detailed information, indexed by the group ID.
Example structure of the output JSON:
{
"response": { /* full API response object */ },
"groupInfo": {
"memberIds": [/* array of member user IDs */],
"adminIds": [/* array of admin user IDs */],
"currentMems": [/* current members list */],
"updateMems": [/* updated members list */],
"totalMember": 123
}
}
This output allows you to access both comprehensive and targeted group data for further processing.
Dependencies
- Requires a valid Zalo API credential configured in n8n, which includes authentication details such as cookies, device IMEI, and user agent strings.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be present and valid to successfully perform API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent group ID will likely result in errors or empty 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 authenticate with the Zalo API. Verify your API credentials and ensure they are correctly set up.- Errors thrown during execution will include the error message from the API or network layer. If
continueOnFailis enabled, errors for individual items will be returned in the output JSON under anerrorfield.
Resolution tips:
- Double-check the group ID input for correctness.
- Refresh or reconfigure your Zalo API credentials if authentication fails.
- Ensure stable internet connection and API availability.
Links and References
- Zalo Official API Documentation (for understanding API endpoints and parameters)
- n8n Documentation (for general node usage and credential setup)