Zalo User icon

Zalo User

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

Zalo User → Gửi Lời Mời Kết Bạn

AI-generated

Overview

This node allows interaction with Zalo user accounts through various operations such as sending friend requests, accepting friend requests, blocking/unblocking users, updating profile settings, retrieving user information, managing friends list, and handling message status. It is particularly useful for automating social interactions on the Zalo platform, such as programmatically sending friend invitations with custom messages or managing contacts in bulk.

A practical example is using the "Gửi Lời Mời Kết Bạn" (Send Friend Request) operation to automatically send a friend request along with a personalized message to a specified user ID, which can be helpful for marketing campaigns or community building.

Properties

Name Meaning
User ID The unique identifier of the Zalo user to whom the friend request will be sent.
Message The accompanying message that will be sent along with the friend request invitation.

Output

The output JSON object contains at least two fields:

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

For the "sendFriendRequest" operation, the output confirms whether the friend request was successfully sent and includes any additional response details from the API.

No binary data output is produced by this node.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • Uses an external library (zca-js) to interact with the Zalo API.
  • The node expects these credentials to be configured properly within n8n before execution.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failure, resulting in no API instance found error.
    • Missing required parameters like User ID or Message will prevent the operation from executing.
    • Network or API rate limiting errors could interrupt requests.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      This indicates that the node failed to authenticate with Zalo. Verify that the API key credential is correctly set up and not expired.
    • Errors thrown during individual item processing will either stop execution or, if "Continue On Fail" is enabled, return an error object per item.

Links and References

Discussion