Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.
To get more information about EntityType, see:
resource "google_dialogflow_agent" "basic_agent" {
display_name = "example_agent"
default_language_code = "en"
time_zone = "America/New_York"
}
resource "google_dialogflow_entity_type" "basic_entity_type" {
depends_on = [google_dialogflow_agent.basic_agent]
display_name = ""
kind = "KIND_MAP"
entities {
value = "value1"
synonyms = ["synonym1","synonym2"]
}
entities {
value = "value2"
synonyms = ["synonym3","synonym4"]
}
}
The following arguments are supported:
display_name
-
(Required)
The name of this entity type to be displayed on the console.
kind
-
(Required)
Indicates the kind of entity type.
KIND_MAP
, KIND_LIST
, KIND_REGEXP
.enable_fuzzy_extraction
-
(Optional)
Enables fuzzy entity extraction during classification.
entities
-
(Optional)
The collection of entity entries associated with the entity type.
Structure is documented below.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
value
-
(Required)
The primary value associated with this entity entry. For example, if the entity type is vegetable, the value
could be scallions.
For KIND_MAP entity types:
synonyms
-
(Required)
A collection of value synonyms. For example, if the entity type is vegetable, and value is scallions, a synonym
could be green onions.
For KIND_LIST entity types:
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format {{name}}
name
-
The unique identifier of the entity type.
Format: projects/
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.EntityType can be imported using any of these accepted formats:
{{name}}
In Terraform v1.5.0 and later, use an import
block to import EntityType using one of the formats above. For example:
import {
id = "{{name}}"
to = google_dialogflow_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_entity_type.default {{name}}
This resource supports User Project Overrides.