Actions10
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 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 communication or social media automation.
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, typically"Thành công"(meaning "Success").response: The raw response from the API call that changes the group's avatar, which may include additional metadata or confirmation details.
Example output structure:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses stored cookie, IMEI, and user agent information from credentials or input data to establish a session.
- Depends on the external
zca-jslibrary for interacting with the Zalo API.
Troubleshooting
- Invalid Credentials or Session: If the node cannot create an API instance, it throws an error indicating no API instance was found. Ensure valid credentials with correct cookie, IMEI, and user agent are provided.
- Invalid Group ID or Image URL: Providing incorrect group IDs or invalid image URLs may cause the API call to fail. Verify these inputs before running the node.
- API Rate Limits or Network Issues: Temporary failures might occur due to network problems or API rate limits. Retrying or checking network connectivity can help.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client used)