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 activity in certain Zalo groups. Using this node's "Get Group Info" operation, you can retrieve the current state of a group, including members and admins, and then trigger further actions based on that data.


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 subset of the response specifically related to the requested group's detailed information, extracted by the group ID.

Example structure of the output JSON:

{
  "response": { /* full API response object */ },
  "groupInfo": { /* detailed info about the specified group */ }
}

This output allows you to access both the complete API response and the focused group information directly.


Dependencies

  • Requires a valid Zalo API credential configured in n8n, which includes authentication details such as cookies, device IMEI, and user agent strings.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be present and valid to successfully perform API calls.

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 API communication.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with the Zalo API. Check your API credentials and ensure they are correctly set up.
    • Errors thrown during execution will include the message from the underlying API call. If continueOnFail is enabled, errors for individual items will be returned in the output JSON under an error field.
  • Resolution tips:

    • Verify that the API key/credential is active and has the necessary permissions.
    • Double-check the group ID input for correctness.
    • Ensure stable internet connection and no firewall blocking requests.

Links and References

Discussion