Mtai Zalo User icon

Mtai Zalo User

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

Overview

This node manages Zalo user interactions through various operations such as accepting friend requests, sending friend requests, blocking/unblocking users, changing account avatar or settings, retrieving user info, listing friends, and finding users by phone number. It is useful for automating social interactions on the Zalo platform, for example:

  • Automatically accepting incoming friend requests to grow your network.
  • Sending personalized friend requests with messages.
  • Managing user blocks to control interactions.
  • Updating profile avatars or account settings programmatically.
  • Fetching detailed user information or friend lists for CRM or marketing purposes.

Specifically, the "Chấp nhận lời mời kết bạn" (Accept Friend Request) operation accepts a pending friend request from a specified user ID.

Properties

Name Meaning
User ID The ID of the Zalo user whose friend request you want to accept.

Output

The output JSON contains:

  • status: A string indicating the result status, e.g., "Thành công" meaning "Success".
  • response: The raw response object returned by the Zalo API for the accept friend request action.

The output is paired with the input item index to maintain data consistency.

No binary data output is produced by this operation.

Example output JSON:

{
  "status": "Thành công",
  "response": {
    // API response details here
  }
}

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 may cause authentication failures.
    • Missing or incorrect User ID parameter will prevent the operation from succeeding.
    • Network connectivity problems can interrupt API communication.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo API. Check your credentials and ensure they are correctly configured.
    • Errors thrown during API calls will be reported with their message. If "Continue On Fail" is enabled, errors will be included in the output JSON per item.
  • Resolution tips:

    • Verify that the API key credential is up to date and has necessary permissions.
    • Confirm the User ID exists and is correct.
    • Enable "Continue On Fail" to handle partial failures gracefully.

Links and References

Discussion