Skip to content

Notify Recommendations Received

connectwisdomservice_notify_recommendations_received R Documentation

Removes the specified recommendations from the specified assistant's queue of newly available recommendations

Description

Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with get_recommendations and a waitTimeSeconds input for long-polling behavior and avoiding duplicate recommendations.

Usage

connectwisdomservice_notify_recommendations_received(assistantId,
  recommendationIds, sessionId)

Arguments

assistantId

[required] The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

recommendationIds

[required] The identifiers of the recommendations.

sessionId

[required] The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

Value

A list with the following syntax:

list(
  errors = list(
    list(
      message = "string",
      recommendationId = "string"
    )
  ),
  recommendationIds = list(
    "string"
  )
)

Request syntax

svc$notify_recommendations_received(
  assistantId = "string",
  recommendationIds = list(
    "string"
  ),
  sessionId = "string"
)