Class EntityType

Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted.

Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent.

For more information, see the Entity guide <https://cloud.google.com/dialogflow/docs/entities-overview>__.

Attributes
NameDescription
strname
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Supported formats: - ``projects/
strdisplay_name
Required. The name of the entity type.
google.cloud.dialogflow_v2beta1.types.EntityType.Kindkind
Required. Indicates the kind of entity type.
google.cloud.dialogflow_v2beta1.types.EntityType.AutoExpansionModeauto_expansion_mode
Optional. Indicates whether the entity type can be automatically expanded.
Sequence[google.cloud.dialogflow_v2beta1.types.EntityType.Entity]entities
Optional. The collection of entity entries associated with the entity type.
boolenable_fuzzy_extraction
Optional. Enables fuzzy entity extraction during classification.

Inheritance

builtins.object > proto.message.Message > EntityType

Classes

AutoExpansionMode

AutoExpansionMode(value)

Represents different entity type expansion modes. Automated expansion allows an agent to recognize values that have not been explicitly listed in the entity (for example, new kinds of shopping list items).

Entity

Entity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An entity entry for an associated entity type.

Kind

Kind(value)

Represents kinds of entities.