Actions9
Overview
This node manages Zalo user accounts by interacting with the Zalo platform through an API. It supports various operations such as accepting or sending friend requests, blocking/unblocking users, changing account avatars, updating account settings, retrieving user information, listing friends, and finding users by phone number.
The "Thay đổi cài đặt tài khoản" (Change Account Setting) operation specifically allows updating a user's profile details including display name, date of birth, gender, and language preference.
Practical examples:
- Automatically update user profile information in bulk based on external data sources.
- Customize user account settings programmatically after onboarding or during profile updates.
- Integrate Zalo user management into broader automation workflows for customer engagement.
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: Male (1), Female (2), Other (3). |
| Language | Preferred language code for the user, e.g., "vi" for Vietnamese, "en" for English. |
Output
The output JSON object contains:
status: A string indicating success, typically"Thành công"(Success).response: The raw response from the Zalo API after attempting to change the account settings. This may include confirmation details or updated user data.
Example output JSON:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data is output by this operation.
Dependencies
- Requires a valid Zalo API credential containing authentication details such as cookies, device IMEI, and user agent strings.
- Uses the
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
Common issues:
- Invalid or expired credentials leading to login failure.
- Incorrect date format for the Date of Birth property causing API errors.
- Missing required fields like Name, Date of Birth, or Gender.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo API. Verify that the API key/credential is correct and active.- Errors related to invalid parameters usually indicate incorrect input values; ensure all required fields are provided and formatted correctly.
Resolution tips:
- Double-check the API credential configuration.
- Validate input formats, especially date strings.
- Use the "Continue On Fail" option to handle partial failures gracefully in batch operations.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client library)