Actions10
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and updating 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.
Common scenarios for this node include:
- Automating group management tasks in Zalo, such as updating group avatars to reflect current themes or events.
- Integrating Zalo group updates into broader workflows, e.g., changing group avatars based on external triggers or schedules.
- Managing multiple groups programmatically without manual intervention in the Zalo app.
Example: Automatically update the avatar of a marketing team’s Zalo group when launching a new campaign by providing the campaign's logo 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-jslibrary internally to interact with Zalo services. - Requires valid credentials including cookie, IMEI, and user agent information for authentication.
- Must have the Zalo API credential configured in n8n with proper permissions to manage groups.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the provided API key credential is correct and includes valid cookie, IMEI, and user agent values.
- Group Not Found: Errors may occur if the provided group ID does not exist or the authenticated user lacks permission to modify the group.
- Invalid Image URL: Ensure the image URL is accessible and points to a valid image format supported by Zalo.
- API Rate Limits: Frequent calls might hit Zalo API rate limits; consider adding delays or handling retries.
- Continue On Fail: If enabled, errors per item will be returned in the output JSON under an
errorfield instead of stopping execution.