Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node interacts with Zalo Groups, allowing users to manage and retrieve information about groups on the Zalo platform. Specifically, the "Lấy Thông Tin Nhóm" (Get Group Info) operation fetches detailed information about a specified group by its ID.

Common scenarios where this node is useful include:

  • Retrieving metadata and member details of a Zalo group for reporting or monitoring.
  • Integrating group information into workflows that require group context.
  • Automating group management tasks based on group data.

For example, you can use this node to get the list of members and admins of a group before sending targeted messages or performing administrative actions.

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 specific subset of the response corresponding to the requested group's detailed information.

Example output structure:

{
  "response": { /* full API response object */ },
  "groupInfo": { /* detailed info about the group identified by the given ID */ }
}

This output allows downstream nodes or processes to access comprehensive group data, including members, admins, and other metadata.

Dependencies

  • Requires valid Zalo API credentials configured in n8n, including an API authentication token (cookie), device IMEI, and user agent string.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be correctly set up to establish a session with Zalo.

Troubleshooting

  • No API instance found: This error indicates invalid or missing credentials. Ensure your Zalo API credential is properly configured with a valid cookie, IMEI, and user agent.
  • Invalid Group ID: 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. Retry after some time or verify network connectivity.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.

Links and References

Discussion