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.
  • 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. It must be provided as a string.

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, which includes 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 IDs */],
    "adminIds": [/* array of admin IDs */],
    "currentMems": [/* current members list */],
    "updateMems": [/* updated members list */],
    "totalMember": 123
  }
}

No binary data is output by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • The node depends on the external zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly configured and valid.
  • Group Not Found: Providing an incorrect or non-existent group ID will likely result in an error or empty response. Double-check the group ID input.
  • API Rate Limits or Network Issues: Temporary failures may occur due to network problems or API rate limits; retrying after some time might resolve these.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.

Links and References

Discussion