Actions9
Overview
This node manages Zalo user account settings, specifically allowing users to change their personal account information such as display name, date of birth, gender, and language preference. It is useful in scenarios where automated workflows need to update or synchronize user profile details on Zalo, a popular messaging platform.
Practical examples include:
- Automatically updating user profiles based on data from other systems.
- Batch updating multiple Zalo user accounts with new settings.
- Integrating Zalo user management into broader CRM or marketing automation workflows.
Properties
| Name | Meaning |
|---|---|
| Name | Display name of the Zalo user account. |
| 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 for the user, e.g., "vi" for Vietnamese, "en" for English. |
Output
The node outputs JSON objects containing the status and response from the Zalo API after attempting to change the account settings. The structure typically includes:
{
"status": "success",
"response": {
// API response details about the updated account settings
}
}
If an error occurs during execution, the output JSON will contain an error field describing the issue.
The node does not output binary data.
Dependencies
- Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
- The node uses these credentials to authenticate and perform operations via the Zalo API.
- Proper configuration of these credentials within n8n is necessary for successful operation.
Troubleshooting
Common issues:
- Invalid or expired authentication cookies may cause login failures.
- Missing or incorrect IMEI or user agent values can lead to authentication errors.
- Incorrectly formatted date of birth or unsupported language codes might cause API rejections.
Error messages:
"Login failed": Indicates that the node could not authenticate with Zalo using provided credentials. Verify that the cookie, IMEI, and user agent are correct and up to date.- API response errors returned in the
errorfield usually indicate invalid input parameters or permission issues. Check property values and ensure the authenticated user has rights to modify the account.
To resolve errors, confirm all credential fields are correctly set, inputs conform to expected formats, and retry the operation.
Links and References
- Zalo Official Developer Documentation
- Zalo API Reference (for detailed API endpoints and parameters)