Actions9
Overview
This node interacts with Zalo User accounts, providing various user-related operations such as accepting friend requests, blocking users, and changing account settings. However, the specific operation "Đổi ảnh đại diện (Không hỗ trợ)" (Change Account Avatar - Not Supported) is explicitly marked as unsupported in the implementation. This means that while the node interface may show this option, attempting to use it will not perform any avatar change.
Typical use cases for this node include automating social interactions on Zalo, such as managing friends or updating user settings programmatically. For example, a user might automate accepting multiple friend requests or blocking certain users based on criteria.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user whose avatar is intended to be changed. |
| File Path | The file path to the new avatar image to be uploaded (not supported in this operation). |
Note: These properties are defined for the "changeAccountAvatar" operation but the operation itself is not implemented/supported.
Output
The output structure generally contains JSON objects with status messages and responses from the Zalo API calls related to the requested operation. Each output item corresponds to an input item and includes:
status: A string indicating success or failure (e.g., "Thành công" meaning "Success").response: The detailed response data returned by the API call.error(optional): If an error occurs and the node is set to continue on failure, this field contains the error message.
For the unsupported "changeAccountAvatar" operation, no successful output is produced since the functionality is not implemented.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Zalo service.
- Uses a Zalo API client internally which requires:
- Cookie
- IMEI identifier
- User agent string
- These credentials and parameters must be configured properly in n8n for the node to function.
Troubleshooting
- Unsupported Operation: Attempting to use the "Đổi ảnh đại diện (Không hỗ trợ)" operation will not work because the node does not implement this feature. Users should avoid selecting this operation.
- Authentication Errors: If credentials (cookie, IMEI, user agent) are missing or invalid, the node will throw errors indicating authentication failure.
- API Errors: Network issues or invalid user IDs can cause API call failures. The node captures these and either throws errors or outputs them if "continue on fail" is enabled.
- Error Messages: Common error messages include:
- "Không hỗ trợ" (Not supported) — indicates the operation is not implemented.
- Authentication or permission denied errors — check API credentials.
- Invalid user ID — verify the user ID input.
To resolve issues, ensure valid credentials are provided, correct user IDs are used, and unsupported operations are avoided.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- General information about Zalo platform and user management APIs