Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API to perform various group-related operations. Specifically, the "Lấy Thông Tin Nhóm" (Get Group Info) operation retrieves detailed information about a specified Zalo group using its group ID.

Common scenarios where this node is beneficial include:

  • Automating the retrieval of group details for monitoring or reporting.
  • Integrating group information into workflows that require group metadata.
  • Managing group memberships and settings programmatically.

Practical example:

  • You want to fetch the current members, admins, and other metadata of a Zalo group to sync with your CRM or internal database. Using this node with the "Lấy Thông Tin Nhóm" operation, you provide the group ID, and it returns comprehensive group info in JSON format.

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 available data about the group.
  • 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 (simplified):

{
  "response": { /* full API response object */ },
  "groupInfo": {
    /* detailed info about the group identified by the provided groupId */
  }
}

No binary data is output by this operation.

Dependencies

  • Requires an active connection to the Zalo API via credentials that include authentication cookies, device IMEI, and user agent strings.
  • The node depends on the external zca-js library to interact with the Zalo API.
  • Properly configured Zalo API credentials must be set up in n8n, including valid authentication tokens/cookies.

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 calls from succeeding.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not initialize the Zalo API client due to missing or invalid credentials. Check your credential configuration.
    • Errors related to group ID not found or access denied typically indicate the group ID is wrong or the authenticated user lacks permission.
  • Resolution tips:

    • Verify that the Zalo API credentials are correctly configured and have not expired.
    • Double-check the group ID input for correctness.
    • Ensure the authenticated user has sufficient permissions to access the group info.
    • Test network connectivity and retry if transient errors occur.

Links and References

Discussion