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 updating a user's display name, date of birth, and gender in bulk from an external database or CRM system. Another use case is automating friend request acceptance or sending personalized friend requests with messages.

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 Display name of the user (required string).
Date of Birth User's date of birth in the format YYYY-MM-DD (required string).
Gender User's gender (required option): Male (1), Female (2), Other (3).
Language Optional language code (e.g., "vi" for Vietnamese, "en" for English).

Output

The output JSON contains:

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

Each output item corresponds to one input item processed, paired by index.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • Uses the external zca-js library to interact with the Zalo API.
  • Node configuration must include these credentials to authenticate API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials will cause authentication failures.
    • Incorrect date format for "Date of Birth" may lead to API errors.
    • Missing required fields (Name, Date of Birth, Gender) will prevent successful execution.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." indicates missing or invalid credentials.
    • API errors returned from Zalo are passed through; check the error message for details.
  • Resolutions:

    • Verify and update the API credentials in n8n.
    • Ensure date strings follow the YYYY-MM-DD format.
    • Provide all required parameters when configuring the node.

Links and References

Discussion