Zalo User icon

Zalo User

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

Overview

This node manages Zalo user accounts by interacting with the Zalo platform through an API. Specifically, for the "Zalo User" resource and the "Thay đổi cài đặt tài khoản" (Change Account Setting) operation, it updates a user's profile information such as display name, date of birth, and gender.

Common scenarios where this node is useful include:

  • Automating profile updates for Zalo users in bulk.
  • Synchronizing user data from other systems into Zalo profiles.
  • Managing user account settings programmatically without manual intervention.

For example, you could use this node to update the display name and birthdate of multiple Zalo users based on data collected from a CRM system.

Properties

Name Meaning
Name The display name of the Zalo user to be set.
Date of Birth The user's date of birth in the format YYYY-MM-DD.
Gender The user's gender. Options: Male (1), Female (2), Other (3).
Language (Optional) The language preference, e.g., "vi" for Vietnamese or "en" for English.

Output

The output JSON contains:

  • status: A string indicating the result of the operation, typically "Thành công" meaning "Success".
  • response: The raw response object returned from 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 output is produced by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured properly in n8n before execution.

Troubleshooting

  • No API instance found error: This occurs if the node cannot establish a connection to the Zalo API using the provided credentials. Ensure that the API key, cookie, IMEI, and user agent are correctly set and valid.
  • Invalid input data: Make sure the date of birth follows the YYYY-MM-DD format and that required fields like name, dob, and gender are provided.
  • API errors from Zalo: If the API returns errors (e.g., permission denied, invalid parameters), check the credentials and parameter values.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.

Links and References

Discussion