google_discovery_engine_chat_engine

Vertex chat and Conversation Engine Chat type

To get more information about ChatEngine, see:

Open in Cloud Shell

Example Usage - Discoveryengine Chat Engine Basic

resource "google_discovery_engine_data_store" "test_data_store" {
  location                    = "global"
  data_store_id               = "data-store"
  display_name                = "Structured datastore"
  industry_vertical           = "GENERIC"
  content_config              = "NO_CONTENT"
  solution_types              = ["SOLUTION_TYPE_CHAT"]
}

resource "google_discovery_engine_data_store" "test_data_store_2" {
  location                    = google_discovery_engine_data_store.test_data_store.location
  data_store_id               = "data-store-2"
  display_name                = "Structured datastore 2"
  industry_vertical           = "GENERIC"
  content_config              = "NO_CONTENT"
  solution_types              = ["SOLUTION_TYPE_CHAT"]
}

resource "google_discovery_engine_chat_engine" "primary" {
  engine_id = "chat-engine-id"
  collection_id = "default_collection"
  location = google_discovery_engine_data_store.test_data_store.location
  display_name = "Chat engine"
  industry_vertical = "GENERIC"
  data_store_ids = [google_discovery_engine_data_store.test_data_store.data_store_id, google_discovery_engine_data_store.test_data_store_2.data_store_id]
  common_config {
    company_name = "test-company"
  }
  chat_engine_config {
    agent_creation_config {
    business = "test business name"
    default_language_code = "en"
    time_zone = "America/Los_Angeles"
    }
  }
}

Argument Reference

The following arguments are supported:

The chat_engine_config block supports:

The agent_creation_config block supports:


The common_config block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The chat_engine_metadata block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

ChatEngine can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import ChatEngine using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/collections/{{collection_id}}/engines/{{engine_id}}"
  to = google_discovery_engine_chat_engine.default
}

When using the terraform import command, ChatEngine can be imported using one of the formats above. For example:

$ terraform import google_discovery_engine_chat_engine.default projects/{{project}}/locations/{{location}}/collections/{{collection_id}}/engines/{{engine_id}}
$ terraform import google_discovery_engine_chat_engine.default {{project}}/{{location}}/{{collection_id}}/{{engine_id}}
$ terraform import google_discovery_engine_chat_engine.default {{location}}/{{collection_id}}/{{engine_id}}

User Project Overrides

This resource supports User Project Overrides.