google_dialogflow_cx_entity_type

Entities are extracted from user input and represent parameters that are meaningful to your application. For example, a date range, a proper name such as a geographic location or landmark, and so on. Entities represent actionable data for your application.

To get more information about EntityType, see:

Open in Cloud Shell

Example Usage - Dialogflowcx Entity Type Full

resource "google_dialogflow_cx_agent" "agent" {
  display_name = "dialogflowcx-agent"
  location = "global"
  default_language_code = "en"
  supported_language_codes = ["fr","de","es"]
  time_zone = "America/New_York"
  description = "Example description."
  avatar_uri = "https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png"
  enable_stackdriver_logging = true
  enable_spell_correction    = true
  speech_to_text_settings {
    enable_speech_adaptation = true
  }
}


resource "google_dialogflow_cx_entity_type" "basic_entity_type" {
  parent       = google_dialogflow_cx_agent.agent.id
  display_name = "MyEntity"
  kind         = "KIND_MAP"
  entities {
    value = "value1"
    synonyms = ["synonym1","synonym2"]
  }
  entities {
    value = "value2"
    synonyms = ["synonym3","synonym4"]
  }
  enable_fuzzy_extraction = false
} 

Argument Reference

The following arguments are supported:

The entities block supports:


The excluded_phrases block supports:

Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

EntityType can be imported using any of these accepted formats:

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

import {
  id = "{{parent}}/entityTypes/{{name}}"
  to = google_dialogflow_cx_entity_type.default
}

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

$ terraform import google_dialogflow_cx_entity_type.default {{parent}}/entityTypes/{{name}}
$ terraform import google_dialogflow_cx_entity_type.default {{parent}}/{{name}}