Actions12
Zalo User → Thay Đổi Cài Đặt Tài Khoản
AI-generatedOverview
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 include:
- Automatically updating user profiles after registration or profile edits in an external system.
- Batch updating multiple users' profile details based on external data feeds.
- Integrating Zalo user management into broader CRM or marketing automation workflows.
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 with options: Male (1), Female (2), Other (3). |
| Language | Optional language code for the user profile, 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 API response about the updated profile
}
}
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. - The node expects these credentials to be configured in n8n prior to execution.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found," verify that the Zalo API credentials are correctly configured and valid.
- API Errors: Errors from the Zalo API (e.g., invalid parameters or permission issues) will be surfaced as error messages. Check the input values for correctness.
- Date Format: Ensure the date of birth is provided in the exact
YYYY-MM-DDformat to avoid validation errors. - Gender Value: Use only the allowed numeric values (1, 2, or 3) corresponding to Male, Female, or Other.
If the node is set to continue on failure, errors for individual items will be included in the output JSON under an error field.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client)