Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members and deputies, changing group details, and creating notes within groups.

The specific operation "Lấy Thông Tin Nhóm" (Get Group Info) retrieves detailed information about a specified Zalo group by its ID. This is useful for scenarios where you need to fetch metadata or member details of a group for reporting, monitoring, or automation purposes.

Practical example:
You have an automation workflow that needs to monitor changes in a Zalo group or gather group statistics. Using this node's "Get Group Info" operation, you can retrieve the current state of the group, including members and admins, and use that data downstream 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 data.
  • groupInfo: A subset of the response specifically keyed by the requested group ID, containing detailed information about that group.

Example output structure:

{
  "response": { /* full API response object */ },
  "groupInfo": {
    "memberIds": [/* array of member user IDs */],
    "adminIds": [/* array of admin user IDs */],
    "currentMems": [/* current members info */],
    "updateMems": [/* updated members info */],
    "totalMember": 123
    // ... other group-specific details
  }
}

This structured output allows easy access to both the complete API response and the focused group information.


Dependencies

  • Requires a valid Zalo API authentication credential configured in n8n, which includes necessary cookies, device identifiers, and user agent strings.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be correctly set up to establish an authenticated session.

Troubleshooting

  • Common issues:

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

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with the Zalo API. Verify your API key/credential setup.
    • Errors thrown during execution typically include the error message from the API. If continueOnFail is enabled, errors are returned in the output JSON under an error field.
  • Resolution tips:

    • Double-check the Zalo API credentials and refresh them if needed.
    • Confirm the group ID exists and is accessible by the authenticated user.
    • Ensure stable internet connection and no firewall blocking API requests.

Links and References

Discussion