Actions12
Overview
This node manages Zalo user account settings and interactions. Specifically, the "Thay Đổi Cài Đặt Tài Khoản" (Change Account Setting) operation allows updating a user's profile information such as display name, date of birth, and gender. This is useful for automating profile updates or synchronizing user data from other systems.
Practical examples:
- Automatically update user profiles in bulk after importing new data.
- Synchronize user demographic changes from an external CRM to Zalo accounts.
- Customize user profiles based on marketing segmentation.
Properties
| Name | Meaning |
|---|---|
| Name | Display name of the Zalo user to set |
| Date of Birth | User's date of birth in the format YYYY-MM-DD |
| Gender | User's gender; options are Male (1), Female (2), Other (3) |
| Language | Optional language code (e.g., "vi" for Vietnamese, "en" for English) |
Output
The output JSON contains two main fields:
status: A string indicating the result of the operation, typically"Thành công"meaning "Success".response: The detailed response object returned by the Zalo API after updating the profile.
Example output structure:
{
"status": "Thành công",
"response": {
// Detailed profile update response from Zalo API
}
}
No binary data output is produced by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- Uses the
zca-jslibrary to interact with the Zalo API. - Node configuration must include these credentials to authenticate API requests.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure.
- Incorrect date format for "Date of Birth" can lead to API errors.
- Missing required parameters like "Name", "Date of Birth", or "Gender" will cause validation errors.
Error messages:
"No API instance found. Please make sure to provide valid credentials."indicates missing or invalid authentication.- API errors returned from Zalo will be propagated; check the error message for details.
Resolutions:
- Verify that the API key credential is correctly configured and active.
- Ensure all required fields are provided and formatted correctly.
- Use the "Continue On Fail" option to handle individual item errors gracefully during batch processing.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)