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 SearchResponse.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
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "textAnswer": string,
  "selectedAnswer": {
    object (SelectedAnswer)
  }
  // End of mutually exclusive fields.
}
Fields
This field specifies the type of user answer. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
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 SearchResponse.ConversationalSearchResult.suggested_answers.

End of mutually exclusive fields.

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.