This field specifies all conversational related parameters addition to traditional retail search.
JSON representation |
---|
{
"followupConversationRequested": boolean,
"conversationId": string,
"userAnswer": {
object ( |
Fields | |
---|---|
followupConversationRequested |
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 |
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 |
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 |
Fields | |
---|---|
Union field type . This field specifies the type of user answer. type can be only one of the following: |
|
textAnswer |
This field specifies the incremental input text from the user during the conversational search. |
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 ( |
Fields | |
---|---|
productAttributeValues[] |
This field is deprecated and should not be set. |
productAttributeValue |
This field specifies the selected answer which is a attribute key-value. |