Zalo User icon

Zalo User

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

Overview

This node enables interaction with Zalo user accounts through various operations such as sending friend requests, accepting friend requests, blocking/unblocking users, changing account settings or avatar, retrieving user information, and searching for users. It is particularly useful for automating social interactions on the Zalo platform, managing contacts, and customizing user profiles programmatically.

A practical example is automating the process of sending personalized friend requests to multiple users by specifying their user IDs and accompanying messages, which can streamline marketing or networking campaigns on Zalo.

Properties

Name Meaning
User ID The unique identifier of the Zalo user to whom the friend request will be sent.
Message The message text that accompanies the friend request being sent to the specified user.

Output

The output JSON object contains:

  • status: A string indicating the success status of the operation, typically "Thành công" (meaning "Success").
  • response: The raw response data returned from the Zalo API for the executed operation.

Each output item is paired with its corresponding input item index.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses a third-party library (zca-js) to handle Zalo API interactions.
  • Requires valid credentials including cookie, device IMEI, and user agent strings either from the node credentials or incoming input data.
  • Must be configured with appropriate Zalo API credentials in n8n.

Troubleshooting

  • Common Issues:

    • Invalid or expired credentials may cause authentication failures.
    • Missing required parameters like User ID or Message will result in errors.
    • Network issues or API rate limits could interrupt communication with Zalo services.
  • Error Messages:

    • "No API instance found. Please make sure to provide valid credentials."
      This indicates missing or invalid authentication details; verify your API credentials and ensure they are correctly set up.
    • Errors thrown during execution include the specific error message from the Zalo API; enabling "Continue On Fail" allows processing subsequent items despite individual failures.

Links and References

Discussion