connectwisdomservice_get_recommendations: Retrieves recommendations for the specified session

View source: R/connectwisdomservice_operations.R

connectwisdomservice_get_recommendationsR Documentation

Retrieves recommendations for the specified session

Description

Retrieves recommendations for the specified session. To avoid retrieving the same recommendations in subsequent calls, use notify_recommendations_received. This API supports long-polling behavior with the waitTimeSeconds parameter. Short poll is the default behavior and only returns recommendations already available. To perform a manual query against an assistant, use query_assistant.

See https://www.paws-r-sdk.com/docs/connectwisdomservice_get_recommendations/ for full documentation.

Usage

connectwisdomservice_get_recommendations(
  assistantId,
  maxResults = NULL,
  sessionId,
  waitTimeSeconds = NULL
)

Arguments

assistantId

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

maxResults

The maximum number of results to return per page.

sessionId

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

waitTimeSeconds

The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list.


paws.customer.engagement documentation built on Sept. 12, 2023, 1:19 a.m.