Zalo User icon

Zalo User

Quản lý người dùng Zalo

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 users to update their Zalo 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 a user's profile after registration on another platform.
  • Synchronizing user demographic data from a CRM system into Zalo.
  • Batch updating multiple user profiles with new information.

Properties

Name Meaning
Name Display name of the Zalo user to set in the profile.
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 code, e.g., "vi" for Vietnamese, "en" for English.

Output

The output JSON contains:

  • status: A string indicating success, typically "Thành công" (Success).
  • response: The detailed response object returned by the Zalo API after updating the profile.

Example output structure:

{
  "status": "Thành công",
  "response": {
    // API response details about the updated profile
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses stored cookie, device IMEI, and user agent values from credentials or input data for authentication.
  • Depends on the external zca-js library to interact with the Zalo API.

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," verify that the provided API key credential is valid and includes necessary cookie, IMEI, and user agent information.
  • Incorrect Date Format: Ensure the "Date of Birth" property follows the YYYY-MM-DD format to avoid API errors.
  • Missing Required Fields: The "Name," "Date of Birth," and "Gender" fields are required; missing any will cause the operation to fail.
  • API Rate Limits or Network Issues: Temporary failures may occur due to network problems or API rate limits; retrying later might help.
  • Use the "Continue On Fail" option to handle errors gracefully when processing multiple items.

Links and References

Discussion