Method: projects.locations.collections.engines.sessions.recommendQuestions

Gets recommended questions for the given session.

HTTP request

GET https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}:recommendQuestions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the Session. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}

Query parameters

Parameters
assistant

string

Optional. The name of the Assistant. If specified, the generated questions will respect the Assistant's configuration (including but not limited to banned phrases).

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

Request body

The request body must be empty.

Response body

Response for the AssistantService.RecommendQuestions method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "questions": [
    string
  ]
}
Fields
questions[]

string

The recommended questions.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • discoveryengine.sessions.recommendQuestions

For more information, see the IAM documentation.