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. This is useful for scenarios where you need to monitor group details, such as member lists, admins, or other metadata, within an automated workflow.

Practical examples include:

  • Automatically retrieving group info to sync with external databases.
  • Monitoring changes in group membership or settings.
  • Integrating group data into reporting dashboards.

Properties

Name Meaning
ID Nhóm The unique identifier 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 available group data.
  • groupInfo: A specific subset of the response keyed by the group ID, providing detailed information about the group such as members, admins, and other metadata.

Example output structure:

{
  "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
  }
}

No binary data is output by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • The node uses the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
  • Group 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.
  • API Rate Limits or Network Issues: Temporary failures might occur due to network problems or API rate limits. 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 error messages in the output JSON under the error field.

Links and References

Discussion