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, 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, such as its members, settings, or other attributes.
Practical examples:
- Fetching group info to display group details in an external dashboard.
- Verifying group existence and properties before performing further actions like adding members.
- Auditing group membership or settings programmatically.
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 data related to the group.groupInfo: A specific subset of the response keyed by the group ID, representing detailed information about the requested group.
Example output structure:
{
"response": { /* full API response object */ },
"groupInfo": { /* detailed info about the group identified by the given ID */ }
}
No binary data output is produced by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- Uses the
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n to establish a session with Zalo.
Troubleshooting
- Invalid or expired credentials: If the node cannot authenticate with Zalo, it will throw an error indicating no API instance was found. Ensure your API key/credentials are valid and up to date.
- Group ID not found or invalid: If the provided group ID does not exist or is incorrect, the API may return an error or empty data. Double-check the group ID value.
- Network or API errors: Temporary network issues or API rate limits might cause failures. Retrying after some time or checking network connectivity can help.
- Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning the error message in the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client library)