Actions12
Overview
This node manages Zalo user account settings and interactions. It is useful for automating tasks related to a Zalo user's profile and social connections, such as updating profile information, managing friend requests, blocking/unblocking users, and retrieving user data.
The specific operation "Thay Đổi Cài Đặt Tài Khoản" (Change Account Setting) allows you to update the display name, date of birth, and gender of the Zalo user account. This can be beneficial in scenarios where user profile details need to be programmatically updated or synchronized with other systems.
Practical example: Automatically update a user's profile information after they submit changes through a web form, ensuring their Zalo account reflects the latest personal details.
Properties
| Name | Meaning |
|---|---|
| Name | Display name of the Zalo user. |
| Date of Birth | User's date of birth in the format YYYY-MM-DD. |
| Gender | User's gender. Options: Male (1), Female (2), Other (3). |
| Language | (Optional) Language preference, e.g., "vi" for Vietnamese or "en" for English. |
Output
The output JSON contains:
status: A string indicating the result of the operation, typically"Thành công"meaning "Success".response: The detailed response object returned from the Zalo API after updating the profile.
Example output structure:
{
"status": "Thành công",
"response": {
// Detailed API response about the updated profile
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses stored cookie, device IMEI, and user agent information from credentials or input data to establish a session.
- Depends on the external
zca-jslibrary to interact with the Zalo API.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect date format for the Date of Birth property will likely cause API errors.
- Missing required fields (Name, Date of Birth, Gender) will prevent successful execution.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo. Verify that the API key and associated cookies/IMEI/user agent are correctly configured.- Errors returned from the Zalo API during profile update will be passed through; check the error message for details and ensure all required parameters are valid.
To handle errors gracefully, enable the "Continue On Fail" option to allow processing of subsequent items even if one fails.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)