Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Group → Đổi Avatar Nhóm

AI-generated

Overview

This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and changing group details. 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 include:

  • Updating the group's avatar to reflect current branding or events.
  • Automating group management tasks in workflows that integrate with Zalo.
  • Keeping group visuals consistent without manual intervention.

Example: Automatically update a group's avatar when a marketing campaign starts by providing the campaign's banner image URL.

Properties

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

Output

The output JSON contains:

  • status: A string indicating success, e.g., "Thành công" ("Success").
  • response: The raw response from the Zalo API after attempting to change the group avatar. This typically includes confirmation details or metadata about the updated avatar.

No binary data is output by this operation.

Example output JSON:

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

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses stored cookie, IMEI, and user agent information from credentials or input data to establish a session.
  • Depends on the external zca-js library for interacting with the Zalo API.
  • The node expects valid Zalo API credentials configured in n8n.

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," verify that the provided API key credential is correct and contains valid cookie, IMEI, and user agent data.
  • Invalid Group ID: Errors may occur if the specified group ID does not exist or the authenticated user lacks permission. Double-check the group ID.
  • Invalid Image URL: Ensure the image URL is accessible and points to a valid image format supported by Zalo.
  • Network Issues: Connectivity problems can cause timeouts or failures; ensure stable internet access.
  • Continue On Fail: If enabled, errors per item are returned in the output JSON under an error field instead of stopping execution.

Links and References

Discussion