ConversationalSearchSpec

This field specifies all conversational related parameters addition to traditional retail search.

JSON representation
{
  "followupConversationRequested": boolean,
  "conversationId": string,
  "userAnswer": {
    object (UserAnswer)
  }
}
Fields
followupConversationRequested

boolean

This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.

conversationId

string

This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.

userAnswer

object (UserAnswer)

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

UserAnswer

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

JSON representation
{

  // Union field type can be only one of the following:
  "textAnswer": string,
  "selectedAnswer": {
    object (SelectedAnswer)
  }
  // End of list of possible types for union field type.
}
Fields
Union field type. This field specifies the type of user answer. type can be only one of the following:
textAnswer

string

This field specifies the incremental input text from the user during the conversational search.

selectedAnswer

object (SelectedAnswer)

This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].

SelectedAnswer

This field specifies the selected answers during the conversational search.

JSON representation
{
  "productAttributeValues": [
    {
      object (ProductAttributeValue)
    }
  ],
  "productAttributeValue": {
    object (ProductAttributeValue)
  }
}
Fields
productAttributeValues[]
(deprecated)

object (ProductAttributeValue)

This field is deprecated and should not be set.

productAttributeValue

object (ProductAttributeValue)

This field specifies the selected answer which is a attribute key-value.