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 valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • The node depends on the external zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials will cause authentication failures.
    • Providing an incorrect or non-existent group ID will result in empty or error responses.
    • Network connectivity problems can prevent API calls from succeeding.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." indicates missing or invalid authentication details.
    • Errors thrown during execution will be reported with the item index; enabling "Continue On Fail" allows processing subsequent items despite errors.
  • Resolutions:

    • Verify and update your Zalo API credentials.
    • Double-check the group ID input for correctness.
    • Ensure stable internet connection and API availability.

Links and References

Discussion