Actions10
Overview
This node manages Zalo user account settings and interactions via the Zalo API. It is useful for automating tasks related to a Zalo user's profile and social connections, such as updating personal information, managing friend requests, blocking/unblocking users, and retrieving user data.
A practical example is updating a user's display name, date of birth, or gender programmatically in bulk, or automatically accepting friend requests received on a Zalo account.
Specifically, the "Thay đổI Cài đặT Tài Khoản" (Change Account Setting) operation allows updating the user's profile details like name, date of birth, gender, and language.
Properties
| Name | Meaning |
|---|---|
| Name | Display name of the Zalo user (Tên hiển thị). |
| Date of Birth | User's date of birth in the format YYYY-MM-DD (Ngày sinh). |
| Gender | User's gender; options are Male (1), Female (2), Other (3) (Giới tính). |
| Language | User's preferred language code, e.g., "vi" for Vietnamese, "en" for English (Ngôn ngữ). |
Output
The output JSON contains:
status: A string indicating success, typically "Thành công" (Success).response: The detailed response object returned from the Zalo API after updating the profile.
Example output structure:
{
"status": "Thành công",
"response": {
// API response fields related to the updated profile
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses stored cookie, IMEI, and user agent values from credentials or input data to establish the session.
- Depends on the external
zalo-api-finallibrary to interact with the Zalo platform.
Troubleshooting
- Invalid Credentials: If the node cannot create an API instance, it throws an error indicating invalid or missing credentials. Ensure that the API key, cookie, IMEI, and user agent are correctly configured.
- API Errors: Errors from the Zalo API (e.g., invalid date format, unauthorized access) will be thrown during execution. Use the error message to adjust input parameters accordingly.
- Date Format: The "Date of Birth" must strictly follow the "YYYY-MM-DD" format; otherwise, the API may reject the update.
- Gender Value: Must be one of the predefined options (1, 2, or 3); other values will cause errors.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages per item.
Links and References
- Zalo Official Developer Documentation
- Zalo API Node.js SDK (zalo-api-final) (for reference on API methods used)