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 automated workflows.

Practical examples include:

  • Automatically retrieving group info to sync with external databases.
  • Monitoring changes in group membership or settings.
  • Using group data to trigger further automation based on group status.

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 group-related 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 structure of the output JSON:

{
  "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
    // ...other group-specific details
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an active Zalo API credential with valid authentication details including cookie, IMEI, and user agent.
  • The node uses the zca-js library internally to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

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

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo API. Verify your API credentials and ensure they are correctly configured.
    • Errors thrown during execution will be reported with their message; enabling "Continue On Fail" allows processing subsequent items even if one fails.

Links and References

Discussion