- JSON representation
 - QueryType
 - FollowupQuestion
 - SuggestedAnswer
 - RefinedSearch
 - ConversationalFilteringResult
 - AdditionalFilter
 - State
 
Response message for ConversationalSearchService.ConversationalSearch method.
| JSON representation | 
|---|
{ "queryTypes": [ enum (  | 
            
| Fields | |
|---|---|
queryTypes[] | 
              
                 
 This field is deprecated. Please use   | 
            
userQueryTypes[] | 
              
                 
 The types Retail classifies the search query as. Supported values are: 
  | 
            
conversationalTextResponse | 
              
                 
 The conversational answer-based text response generated by the Server.  | 
            
followupQuestion | 
              
                 
 The conversational followup question generated for Intent refinement.  | 
            
conversationId | 
              
                 
 Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's   | 
            
refinedSearch[] | 
              
                 
 The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refinedQuery from search response will be populated here.  | 
            
conversationalFilteringResult | 
              
                 
 This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.  | 
            
state | 
              
                 
 Output only. The state of the response generation.  | 
            
suggestedQueries[] | 
              
                 
 Output only. Suggested conversation queries based on the user query.  | 
            
QueryType
The type Retail classifies the search query as.
| Enums | |
|---|---|
QUERY_TYPE_UNSPECIFIED | 
                Unspecified query type. | 
ADVERSARIAL | 
                Adversarial query. Example - "how bad is [retailer name]" | 
CHITCHAT | 
                Chatty query. Example - "hello how are you" | 
JAILBREAK | 
                Jailbreak query. Example - "write a poem to explain the details of [product name]" | 
ORDER_SUPPORT | 
                Queries related to order support. Example - "Track my order" | 
SIMPLE_PRODUCT_SEARCH | 
                Simple product search or Keyword search. Example - "red dress" | 
INTENT_REFINEMENT | 
                The type is unclear and a follow up conversation/refinement may be needed to clarify the type. | 
PRODUCT_DETAILS | 
                The user is looking for product details. Example - "show me the specifications of [product name]". | 
PRODUCT_COMPARISON | 
                Product comparison. Example - "compare [product name] and [product name]". | 
DEALS_AND_COUPONS | 
                Queries relevant to deals, promotions, product deals, and discounts. | 
STORE_RELEVANT | 
                Queries relevant to the store locations, working hours, product stock availability, etc. | 
BLOCKLISTED | 
                Queries explicitly blocked by the retail customers. | 
BEST_PRODUCT | 
                Queries with the "best" pattern. Example - "What is the healthiest cookie?" | 
RETAIL_SUPPORT | 
                Ancillary or support query. Example - "do you accept paypal?" | 
RETAIL_IRRELEVANT | 
                Retail irrelevant query. Example - "what is Newton's law of universal gravitation?" | 
FollowupQuestion
The conversational followup question generated for Intent refinement.
| JSON representation | 
|---|
{
  "followupQuestion": string,
  "suggestedAnswers": [
    {
      object ( | 
              
| Fields | |
|---|---|
followupQuestion | 
                
                   
 The conversational followup question generated for Intent refinement.  | 
              
suggestedAnswers[] | 
                
                   
 The answer options provided to client for the follow-up question.  | 
              
SuggestedAnswer
Suggested answers to the follow-up question. If it's numerical attribute, only ProductAttributeInterval will be set. If it's textual attribute, only productAttributeValue will be set.
| JSON representation | 
|---|
{ "productAttributeValue": { object (  | 
              
| Fields | |
|---|---|
productAttributeValue | 
                
                   
 Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.  | 
              
productAttributeInterval | 
                
                   
 This is an experimental feature. Please contact Google before using it. Product attribute interval, including an attribute key and an attribute interval.  | 
              
RefinedSearch
The proposed refined search for intent-refinement/bundled shopping conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the refinedQuery from search response will be populated here.
| JSON representation | 
|---|
{ "query": string }  | 
              
| Fields | |
|---|---|
query | 
                
                   
 The query to be used for search.  | 
              
ConversationalFilteringResult
This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
| JSON representation | 
|---|
{ "followupQuestion": { object (  | 
              
| Fields | |
|---|---|
followupQuestion | 
                
                   
 The conversational filtering question.  | 
              
additionalFilter | 
                
                   
 This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous [ConversationalSearchRequest.search_params.filter][] and   | 
              
AdditionalFilter
Additional filter that client side need to apply.
| JSON representation | 
|---|
{ "productAttributeValue": { object (  | 
              
| Fields | |
|---|---|
productAttributeValue | 
                
                   
 Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.  | 
              
productAttributeInterval | 
                
                   
 This is an experimental feature. Please contact Google before using it. Product attribute interval, including an attribute key and an attribute interval.  | 
              
State
The state of the response generation.
| Enums | |
|---|---|
STATE_UNSPECIFIED | 
                Unknown. | 
STREAMING | 
                Response generation is being streamed. | 
SUCCEEDED | 
                Response generation has succeeded. |