- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#SCHEMA_REPRESENTATION)
- [IntentClassificationConfig](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#IntentClassificationConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#IntentClassificationConfig.SCHEMA_REPRESENTATION)
- [InlineSource](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#InlineSource)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#InlineSource.SCHEMA_REPRESENTATION)
- [InlineForceIntent](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#InlineForceIntent)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#InlineForceIntent.SCHEMA_REPRESENTATION)
- [Operation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#Operation)
- [Example](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#Example)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2beta/ConversationalSearchCustomizationConfig.md.txt#Example.SCHEMA_REPRESENTATION)

The public proto to represent the conversational search customization config. It will be converted to the internal proto in the backend.

| JSON representation |
|---|
| ``` { "retailerDisplayName": string, "intentClassificationConfig": { object (`IntentClassificationConfig`) }, "catalog": string } ``` |

| Fields ||
|---|---|
| `retailerDisplayName` | `string` Optional. The retailer's display name that could be used in our LLM answers. Example - "Google" |
| `intentClassificationConfig` | ``object (`IntentClassificationConfig`)`` Optional. The configs for intent classification. |
| `catalog` | `string` Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |

## IntentClassificationConfig

The public proto to represent the intent classification config. It will be converted to the internal proto in the backend.

| JSON representation |
|---|
| ``` { "modelPreamble": string, "example": [ { object (`Example`) } ], "blocklistKeywords": [ string ], "disabledIntentTypes": [ string ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "inlineSource": { object (`InlineSource`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `modelPreamble` | `string` Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt. |
| `example[]` | ``object (`Example`)`` Optional. A list of examples for intent classification. |
| `blocklistKeywords[]` | `string` Optional. A list of keywords that will be used to classify the query to the "BLOCKLISTED" intent type. The keywords are case insensitive. |
| `disabledIntentTypes[]` | `string` Optional. A list of intent types that will be disabled for this customer. The intent types must match one of the predefined intent types defined at <https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype> |
| Parsed from the external proto force_intent_classification string. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `inlineSource` | ``object (`InlineSource`)`` Optional. Inline source for intent classifications. |
| End of mutually exclusive fields. ||

## InlineSource

Inline source for intent classifications.

| JSON representation |
|---|
| ``` { "inlineForceIntents": [ { object (`InlineForceIntent`) } ] } ``` |

| Fields ||
|---|---|
| `inlineForceIntents[]` | ``object (`InlineForceIntent`)`` Optional. A list of inline force intent classifications. |

## InlineForceIntent

An inline force intent classification configuration.

| JSON representation |
|---|
| ``` { "query": string, "operation": enum (`Operation`), "intentType": string } ``` |

| Fields ||
|---|---|
| `query` | `string` Optional. A example query. |
| `operation` | ``enum (`Operation`)`` Optional. The operation to perform for the query. |
| `intentType` | `string` Optional. The intentType must match one of the predefined intent types defined at <https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype> |

## Operation

Controls whether the query will be exact match or contains match.

| Enums ||
|---|---|
| `OPERATION_UNSPECIFIED` | Unspecified match operation. |
| `EXACT_MATCH` | Exact match. |
| `CONTAINS` | Contains match. |

## Example

An example for intent classification.

| JSON representation |
|---|
| ``` { "query": string, "intentType": string, "reason": string, "classifiedPositive": boolean } ``` |

| Fields ||
|---|---|
| `query` | `string` Required. Example query. |
| `intentType` | `string` Optional. The intentType must match one of the predefined intent types defined at <https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype> |
| `reason` | `string` Optional. The reason for the intent classification. This is used to explain the intent classification decision. |
| `classifiedPositive` | `boolean` Required. Whether the example is classified positively. |