This field specifies all conversational related parameters addition to traditional retail search.
JSON representation |
---|
{
"followupConversationRequested": boolean,
"conversationId": string,
"userAnswer": {
object ( |
Fields | |
---|---|
followup |
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. |
conversation |
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. |
user |
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: |
|
text |
This field specifies the incremental input text from the user during the conversational search. |
selected |
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. |
product |
This field specifies the selected answer which is a attribute key-value. |