Actions10
Group → Lấy Thông Tin Nhóm
AI-generatedOverview
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, 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 current state of a group, for example, to display group details in an application or to audit group membership and settings.
Practical examples:
- Fetching group info before sending targeted messages.
- Displaying group details in a dashboard.
- Auditing group membership or settings programmatically.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier 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 data related to the requested group.groupInfo: A subset of the response specifically mapped to the requested group ID, containing detailed information about that group.
Example output structure:
{
"response": { /* full API response object */ },
"groupInfo": { /* detailed info about the group identified by ID Nhóm */ }
}
No binary data output is involved in this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n to authenticate API requests.
Troubleshooting
- Invalid or expired credentials: If the node throws an error indicating no API instance found or authentication failure, verify that the provided API key/credential is valid and not expired.
- Group ID not found: If the group ID does not exist or is incorrect, the API may return an error or empty data. Double-check the group ID input.
- Network issues: Connectivity problems can cause request failures; ensure stable internet access.
- Continue on Fail: If enabled, errors for individual items will be returned in the output JSON under an
errorfield instead of stopping execution.
Common error message:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Check and update your Zalo API credentials in the node settings.
Links and References
- Zalo Official API Documentation
- n8n Documentation - Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client library)