Zalo User icon

Zalo User

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

Overview

This node manages Zalo user account operations, specifically for the "Zalo User" resource. The operation "Thay đổi cài đặt tài khoản" (Change Account Setting) allows updating a user's profile information such as display name, date of birth, and gender.

Typical use cases include:

  • Automating updates to user profiles in bulk.
  • Synchronizing user data from other systems into Zalo.
  • Managing user information programmatically without manual intervention.

For example, you can update a user's display name and birthday after receiving updated info from a CRM system.

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 (Optional) Language preference, e.g., "vi" for Vietnamese or "en" for English.

Output

The output JSON contains:

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

Example output JSON structure:

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

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses stored cookie, 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 data.
  • Incorrect Date Format: Ensure the "Date of Birth" is in YYYY-MM-DD format; otherwise, the API may reject the request.
  • Missing Required Fields: The "Name," "Date of Birth," and "Gender" fields are required. Omitting them will cause errors.
  • API Errors: Any error from the Zalo API will be thrown unless "Continue On Fail" is enabled, in which case the error message will be included in the output JSON under error.

Links and References

Discussion