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 users to send friend requests on the Zalo platform programmatically. It is designed for scenarios where automation of social interactions is needed, such as marketing campaigns, customer engagement, or community building on Zalo. For example, a business could use this node to automatically send personalized friend requests with custom messages to a list of potential customers, streamlining outreach efforts.

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 node outputs JSON data containing the status and response from the Zalo API for each friend request sent. Each output item corresponds to an input item and includes:

  • status: A string indicating the result status of the friend request operation.
  • response: The detailed response object returned by the Zalo API, which may include success confirmation or error details.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Zalo API, authenticated via an API key credential configured in n8n.
  • The node internally uses a helper class to interact with the Zalo API, handling authentication cookies, device identifiers, and user agent strings.
  • Proper configuration of credentials and environment variables related to Zalo API access is necessary for successful execution.

Troubleshooting

  • Common Issues:

    • Invalid or missing User ID or Message properties will cause the node to fail.
    • Authentication failures due to incorrect or expired API credentials.
    • Network connectivity issues preventing communication with the Zalo API.
    • Rate limiting or API restrictions imposed by Zalo.
  • Error Messages:

    • Errors indicating missing or invalid credentials suggest checking the API key setup.
    • API response errors may include messages about invalid user IDs or message content; verify inputs accordingly.
    • Timeout or network errors require checking internet connectivity and firewall settings.
  • Resolution Tips:

    • Ensure all required properties are provided and correctly formatted.
    • Verify that the API key credential is valid and has necessary permissions.
    • Retry after some time if rate limits are hit.
    • Consult Zalo API documentation for specific error codes and handling.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution or dynamic import resolution.

Discussion