Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

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 the group's ID and a new image URL.

Common scenarios for this node include automating group management tasks in Zalo, such as updating group avatars to reflect current themes or events, adding or removing members programmatically, or fetching group information for reporting purposes.

Practical example: Automatically update the avatar of a marketing team’s Zalo group when launching a new campaign by providing the new campaign 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, typically "Thành công" (meaning "Success").
  • response: The raw response from the API call that changes the group avatar, which may include details about the updated group or confirmation data.

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 API.
  • Uses the zca-js library internally to interact with Zalo services.
  • Requires valid credentials including cookie, IMEI, and user agent strings for authentication.
  • Must configure the node with these credentials before use.

Troubleshooting

  • Invalid Credentials: If the node throws an error about missing or invalid API instance, ensure that the provided credentials (cookie, IMEI, user agent) are correct and active.
  • Network Issues: Failures in connecting to Zalo API might occur due to network problems; verify internet connectivity.
  • Invalid Group ID or Image URL: Errors can arise if the group ID does not exist or the image URL is inaccessible or invalid. Double-check these inputs.
  • API Rate Limits: Frequent calls might hit Zalo API rate limits; consider adding delays or handling retries.
  • Error Messages: The node returns error messages from the API in the output if continueOnFail is enabled; otherwise, it stops execution on errors.

Links and References

Discussion