Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing users to perform various group-related operations via the Zalo API. The "Đổi Avatar Nhóm" (Change Group Avatar) operation updates the avatar image of a specified Zalo group by providing a new image URL.

Common scenarios for this node include:

  • Updating the visual identity of a Zalo group by changing its avatar.
  • Automating group management tasks such as creating groups, adding or removing members, and retrieving group information.
  • Integrating Zalo group management into workflows that require dynamic updates based on external triggers or data.

Practical example:

  • Automatically update a group's avatar when a marketing campaign starts, using a campaign-specific 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 the success of the operation, typically "Thành công" (meaning "Success").
  • response: The raw response from the Zalo API after attempting to change the group avatar, which may include details about the updated group or confirmation data.

Example output structure:

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

No binary data is output by this node.

Dependencies

  • Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
  • The node uses the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary to authenticate requests.

Troubleshooting

  • Invalid Credentials: If the node throws an error stating no API instance found, verify that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
  • Network Issues: Failures in connecting to the Zalo API might occur due to network problems; ensure stable internet connectivity.
  • Invalid Group ID or Image URL: Errors can arise if the group ID does not exist or the image URL is invalid or inaccessible. Double-check these inputs.
  • API Rate Limits: Frequent calls to the Zalo API might hit rate limits; consider adding delays or handling retries gracefully.
  • When errors occur, if "Continue On Fail" is enabled, the node outputs the error message in the JSON under the error field instead of stopping execution.

Links and References

Discussion