Actions9
Overview
This node interacts with the Zalo User API to perform various user-related operations such as accepting friend requests, blocking users, changing account avatars, retrieving friends lists, and more. The specific operation "Thay đổi cài đặt tài khoản (Không hỗ trợ)" (Change Account Setting - Not Supported) is included but appears to be not supported or fully implemented.
Typical use cases include automating social interactions on Zalo, managing user profiles, and handling friend relationships programmatically. For example, a user might automate accepting friend requests or updating their profile avatar through this node.
Properties
| Name | Meaning |
|---|---|
| Name | Display name of the user (string). |
| Date of Birth | User's date of birth in YYYY-MM-DD format (string). |
| Gender | User's gender; options are Male (1), Female (2), Other (3). |
| Language | Language preference, e.g., "vi" for Vietnamese or "en" for English (optional string). |
These properties are relevant when attempting to change account settings, although this operation is marked as not supported.
Output
The node outputs an array of JSON objects, each corresponding to an input item processed. Each output object typically contains:
status: A string indicating success or failure messages like "Thành công" (Success).response: The raw response from the Zalo API for the requested operation.friends: When fetching friends list, an array of friend objects.error: If an error occurs and the node is set to continue on failure, the error message is included here.
Binary data output is not indicated in the code, so the node primarily deals with JSON responses.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- Uses a cookie, IMEI, and user agent strings extracted from credentials or input data for API calls.
- Depends on an internal Zalo API client class instantiated within the node.
- No external environment variables are explicitly required beyond the API credential.
Troubleshooting
- Unsupported Operation: The "changeAccountSetting" operation is marked as not supported. Attempting to use it may result in errors or no effect.
- Authentication Errors: Missing or invalid API credentials (cookie, IMEI, user agent) will cause authentication failures.
- API Rate Limits or Restrictions: Frequent calls may be limited by Zalo API policies.
- Error Handling: If "continue on fail" is enabled, errors per item are returned in the output JSON; otherwise, the node execution stops with an error.
- Invalid Input Data: Providing incorrect property values (e.g., wrong date format) may cause API rejections.
Links and References
- Zalo Official Developer Documentation (general reference for Zalo API)
- n8n Documentation on Creating Custom Nodes
Note: The node source code is obfuscated and minified, limiting detailed static analysis. The summary is based on available property definitions and visible logic patterns.