Zalo User icon

Zalo User

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

Overview

This node manages Zalo user account settings and interactions. It is useful for automating tasks related to a Zalo user's profile and social connections, such as updating personal information, managing friend requests, blocking/unblocking users, and retrieving user data.

A practical example is automatically updating a user's display name, date of birth, and gender in their Zalo profile based on external data sources or workflows. Another use case includes accepting or sending friend requests programmatically within an automation pipeline.

Specifically, the "Thay đổi cài đặt tài khoản" (Change Account Setting) operation allows updating the user's profile details like name, date of birth, and gender.

Properties

Name Meaning
Name The display name of the Zalo user.
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 success, typically "Thành công" (Success).
  • response: The detailed response object returned from the Zalo API after updating the profile.

Example output structure:

{
  "status": "Thành công",
  "response": {
    // API response fields related to the updated profile
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
  • Uses the zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured in n8n under a generic API authentication token setup.

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," verify that the provided API credentials are correct and include valid cookie, IMEI, and user agent values.
  • API Errors: Errors from the Zalo API (e.g., invalid date format, unauthorized access) will be surfaced as error messages. Ensure input values conform to expected formats and the API permissions are sufficient.
  • Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output JSON.

Links and References

Discussion