Entity Type
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:
How-to Guides
Example Usage
Dialogflow Entity Type Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
import com.pulumi.gcp.diagflow.EntityType;
import com.pulumi.gcp.diagflow.EntityTypeArgs;
import com.pulumi.gcp.diagflow.inputs.EntityTypeEntityArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basicAgent = new Agent("basicAgent", AgentArgs.builder()
.displayName("example_agent")
.defaultLanguageCode("en")
.timeZone("America/New_York")
.build());
var basicEntityType = new EntityType("basicEntityType", EntityTypeArgs.builder()
.displayName("")
.kind("KIND_MAP")
.entities(
EntityTypeEntityArgs.builder()
.value("value1")
.synonyms(
"synonym1",
"synonym2")
.build(),
EntityTypeEntityArgs.builder()
.value("value2")
.synonyms(
"synonym3",
"synonym4")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(basicAgent)
.build());
}
}
Content copied to clipboard
Import
EntityType can be imported using any of these accepted formats:
$ pulumi import gcp:diagflow/entityType:EntityType default {{name}}
Content copied to clipboard
Properties
Link copied to clipboard
The name of this entity type to be displayed on the console.
Link copied to clipboard
Enables fuzzy entity extraction during classification.
Link copied to clipboard
The collection of entity entries associated with the entity type. Structure is documented below.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard