Zalo CN Group icon

Zalo CN Group

Quản lý nhóm Zalo cá nhân

Overview

This node manages personal Zalo groups, allowing users to perform various group-related operations such as creating groups, retrieving group information, managing members, and updating group details. Specifically, the "ĐổI Avatar Nhóm" (Change Group Avatar) operation updates the avatar image of a specified Zalo group by providing a new image URL.

Practical scenarios where this node is useful include:

  • Automating group management tasks for community or team chats on Zalo.
  • Updating group avatars programmatically based on events or campaigns.
  • Integrating Zalo group management into broader workflows involving messaging or user coordination.

Example: Automatically change the avatar of a project group when a new project phase starts by providing the group ID and the URL of the new avatar image.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group whose avatar you want to change.
URL Ảnh The URL of the new avatar image to set for the group.

Output

The output JSON contains:

  • status: A string indicating the success status, typically "Thành công" meaning "Success".
  • response: The raw response from the Zalo API after attempting to change the group avatar. This may include metadata or confirmation details about the update.

No binary data output is produced by this operation.

Example output JSON:

{
  "status": "Thành công",
  "response": {
    // API response details here
  }
}

Dependencies

  • Requires an active connection to the Zalo API via credentials that include authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node depends on the external zalo-api-final library to interact with the Zalo platform.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials leading to authentication failures.
    • Incorrect group ID causing "group not found" errors.
    • Invalid or inaccessible image URL resulting in failure to update the avatar.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the Zalo API credentials are correctly configured and valid.
    • Errors related to network or API request failures.
      Resolution: Check internet connectivity and ensure the Zalo API service is operational.
    • If the node throws errors about missing parameters, confirm that both "ID Nhóm" and "URL Ảnh" are provided and correctly formatted.
  • Enabling "Continue On Fail" can help process multiple items even if some fail.

Links and References

Discussion