Actions9
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members and deputies, changing group avatars or names, and more. The "Đổi Avatar Nhóm" (Change Group Avatar) operation updates the avatar image of a specified Zalo group by providing a new image URL.
Typical use cases include:
- Automating group management tasks in Zalo for community managers or businesses.
- Updating group avatars dynamically based on events or campaigns.
- Integrating Zalo group management into broader workflows that involve messaging or user coordination.
Example: Automatically update a group's avatar to reflect a seasonal promotion by providing the new image URL.
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 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 details about the updated group or confirmation of the change.
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 credentials including cookie, IMEI, and user agent strings to establish a session.
- Depends on the external
zca-jslibrary 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," it means authentication failed. Ensure the provided API key credential is valid and contains correct cookie, IMEI, and user agent information.
- Invalid Group ID: Providing a wrong or non-existent group ID will cause errors when attempting to change the avatar. Verify the group ID is correct.
- Invalid Image URL: The image URL must be accessible and properly formatted. An inaccessible or invalid URL may cause the API call to fail.
- API Rate Limits or Restrictions: Frequent changes or unauthorized actions might be blocked by Zalo's API policies.
- To handle errors gracefully, enable "Continue On Fail" in the node settings to process subsequent items even if one fails.