Zalo User icon

Zalo User

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

Zalo User → Chấp Nhận Lời Mời Kết Bạn

AI-generated

Overview

This node operation allows you to accept a friend request on the Zalo platform for a specified user. It is useful in automating social interactions, such as managing friend requests programmatically without manual intervention. For example, if you run a marketing campaign or community management workflow, this node can automatically accept incoming friend requests from users, streamlining your contact list growth.

Properties

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

Output

The node outputs JSON data containing the status and response from the Zalo API after attempting to accept the friend request. The structure typically includes:

  • status: A string indicating the result status (e.g., "success" or an error code).
  • response: The detailed response object from the API call, which may include confirmation details or error messages.

No binary data output is involved in this operation.

Example output JSON structure:

{
  "status": "success",
  "response": {
    // API response details here
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • The node uses an internal Zalo API client instantiated with authentication cookies, IMEI, and user agent strings.
  • Proper configuration of these credentials and environment variables within n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication tokens/cookies may cause failures.
    • Incorrect or missing User ID input will prevent the operation from completing.
    • Network connectivity problems can lead to timeouts or unreachable API errors.
  • Error messages:

    • Errors thrown when authentication fails usually indicate invalid credentials; reconfigure the API key or authentication tokens.
    • If the User ID is not found or invalid, the API response will reflect that, and the node will return an error in the output JSON.
    • Unexpected errors are caught and returned per item, allowing partial success in batch operations.

To resolve errors, verify the API credentials, ensure the User ID is correct, and check network connectivity.

Links and References

Discussion