Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node interacts with Zalo Group functionalities, specifically managing and retrieving information about Zalo chat groups. The "Lấy Thông Tin Nhóm" (Get Group Info) operation fetches detailed information about a specified Zalo group by its ID.

Common scenarios where this node is beneficial include:

  • Automating the retrieval of group details for reporting or monitoring.
  • Integrating group information into other workflows or systems.
  • Managing group memberships or settings based on retrieved data.

Practical example:

  • You want to automatically fetch and log the current members and admins of a Zalo group whenever a certain event occurs in your workflow.

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 representing detailed information about the requested group, extracted from the response's internal mapping keyed by the group ID.

Example output structure:

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

No binary data is output by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session with the Zalo service.
  • The external dependency is the zca-js library which provides the interface to interact with Zalo's API.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API credentials (cookie, IMEI, user agent) are valid and have not expired.
  • Group Not Found: If the group ID does not exist or is incorrect, the API may return an empty or error response. Double-check the group ID input.
  • Network Issues: Connectivity problems can cause failures; ensure the environment running n8n has internet access.
  • Error Handling: If the node is set to continue on fail, errors will be returned as part of the output JSON with an error field describing the issue.

Links and References

Discussion