- [Resource: ConversationModel](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels#ConversationModel)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels#ConversationModel.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels#METHODS_SUMMARY)

## Resource: ConversationModel

Represents a conversation model.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "createTime": string, "datasets": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/InputDataset`) } ], "state": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.State`), "languageCode": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "articleSuggestionModelMetadata": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.ArticleSuggestionModelMetadata`) }, "smartReplyModelMetadata": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.SmartReplyModelMetadata`) } // End of mutually exclusive fields. "satisfiesPzs": boolean, "satisfiesPzi": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>` |
| `displayName` | `string` Required. The display name of the model. At most 64 bytes long. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of this model. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `datasets[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/InputDataset`)`` Required. Datasets used to create model. |
| `state` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.State`)`` Output only. State of the model. A model can only serve prediction requests after it gets deployed. |
| `languageCode` | `string` Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
| Required. The model metadata that is specific to the problem type. Must match the metadata type of the dataset used to train the model. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `articleSuggestionModelMetadata` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.ArticleSuggestionModelMetadata`)`` Metadata for article suggestion models. |
| `smartReplyModelMetadata` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationModels#ConversationModel.SmartReplyModelMetadata`)`` Metadata for smart reply models. |
| End of mutually exclusive fields. ||
| `satisfiesPzs` | `boolean` Output only. A read only boolean field reflecting Zone Separation status of the model. |
| `satisfiesPzi` | `boolean` Output only. A read only boolean field reflecting Zone Isolation status of the model. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/create` | Creates a model. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/delete` | Deletes a model. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/deploy` | Deploys a model. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/get` | Gets conversation model. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/list` | Lists conversation models. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations.conversationModels/undeploy` | Undeploys a model. |