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.
When you define an entity, you can also include synonyms that all
map to that entity. For example, "soft drink", "soda", "pop", and so
on.
There are three types of entities:
System - entities that are defined by the Dialogflow API for
common data types such as date, time, currency, and so on. A
system entity is represented by the EntityType type.
Custom - entities that are defined by you that represent
actionable data that is meaningful to your application. For
example, you could define a pizza.sauce entity for red or
white pizza sauce, a pizza.cheese entity for the different
types of cheese on a pizza, a pizza.topping entity for
different toppings, and so on. A custom entity is represented by
the EntityType type.
User - entities that are built for an individual user such as
favorites, preferences, playlists, and so on. A user entity is
represented by the
SessionEntityType
type.
For more information about entity types, see the Dialogflow
documentation <https://cloud.google.com/dialogflow/docs/entities-overview>__.
Attributes
Name
Description
name
str
The unique identifier of the entity type. Required for
EntityTypes.UpdateEntityType.
Format:
projects/.
display_name
str
Required. The human-readable name of the
entity type, unique within the agent.
MutableSequence[google.cloud.dialogflowcx_v3.types.EntityType.ExcludedPhrase]
Collection of exceptional words and phrases that shouldn't
be matched. For example, if you have a size entity type with
entry giant\ (an adjective), you might consider adding
giants\ (a noun) as an exclusion. If the kind of entity
type is KIND_MAP, then the phrases specified by entities
and excluded phrases should be mutually exclusive.
enable_fuzzy_extraction
bool
Enables fuzzy entity extraction during
classification.
redact
bool
Indicates whether parameters of the entity
type should be redacted in log. If redaction is
enabled, page parameters and intent parameters
referring to the entity type will be replaced by
parameter name when logging.
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class EntityType (1.42.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.42.0 (latest)](/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.41.1](/python/docs/reference/dialogflow-cx/1.41.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.40.0](/python/docs/reference/dialogflow-cx/1.40.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.39.0](/python/docs/reference/dialogflow-cx/1.39.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.38.0](/python/docs/reference/dialogflow-cx/1.38.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.37.0](/python/docs/reference/dialogflow-cx/1.37.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.36.0](/python/docs/reference/dialogflow-cx/1.36.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.35.0](/python/docs/reference/dialogflow-cx/1.35.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.34.1](/python/docs/reference/dialogflow-cx/1.34.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.33.0](/python/docs/reference/dialogflow-cx/1.33.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.32.1](/python/docs/reference/dialogflow-cx/1.32.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.31.1](/python/docs/reference/dialogflow-cx/1.31.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.30.1](/python/docs/reference/dialogflow-cx/1.30.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.29.0](/python/docs/reference/dialogflow-cx/1.29.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.28.0](/python/docs/reference/dialogflow-cx/1.28.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.27.0](/python/docs/reference/dialogflow-cx/1.27.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.26.0](/python/docs/reference/dialogflow-cx/1.26.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.25.0](/python/docs/reference/dialogflow-cx/1.25.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.24.0](/python/docs/reference/dialogflow-cx/1.24.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.23.1](/python/docs/reference/dialogflow-cx/1.23.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.22.0](/python/docs/reference/dialogflow-cx/1.22.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.21.0](/python/docs/reference/dialogflow-cx/1.21.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.20.1](/python/docs/reference/dialogflow-cx/1.20.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.19.0](/python/docs/reference/dialogflow-cx/1.19.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.18.0](/python/docs/reference/dialogflow-cx/1.18.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.17.1](/python/docs/reference/dialogflow-cx/1.17.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.16.0](/python/docs/reference/dialogflow-cx/1.16.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.15.0](/python/docs/reference/dialogflow-cx/1.15.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.14.1](/python/docs/reference/dialogflow-cx/1.14.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.13.5](/python/docs/reference/dialogflow-cx/1.13.5/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.12.1](/python/docs/reference/dialogflow-cx/1.12.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.11.0](/python/docs/reference/dialogflow-cx/1.11.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.10.0](/python/docs/reference/dialogflow-cx/1.10.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.9.1](/python/docs/reference/dialogflow-cx/1.9.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.8.0](/python/docs/reference/dialogflow-cx/1.8.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.7.0](/python/docs/reference/dialogflow-cx/1.7.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.6.0](/python/docs/reference/dialogflow-cx/1.6.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.5.0](/python/docs/reference/dialogflow-cx/1.5.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.4.0](/python/docs/reference/dialogflow-cx/1.4.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.3.2](/python/docs/reference/dialogflow-cx/1.3.2/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.2.0](/python/docs/reference/dialogflow-cx/1.2.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.1.1](/python/docs/reference/dialogflow-cx/1.1.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [1.0.0](/python/docs/reference/dialogflow-cx/1.0.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.8.2](/python/docs/reference/dialogflow-cx/0.8.2/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.7.1](/python/docs/reference/dialogflow-cx/0.7.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.6.0](/python/docs/reference/dialogflow-cx/0.6.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.5.0](/python/docs/reference/dialogflow-cx/0.5.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.4.1](/python/docs/reference/dialogflow-cx/0.4.1/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.3.0](/python/docs/reference/dialogflow-cx/0.3.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.2.0](/python/docs/reference/dialogflow-cx/0.2.0/google.cloud.dialogflowcx_v3.types.EntityType)\n- [0.1.1](/python/docs/reference/dialogflow-cx/0.1.1/google.cloud.dialogflowcx_v3.types.EntityType) \n\n EntityType(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nEntities are extracted from user input and represent parameters that\nare meaningful to your application. For example, a date range, a\nproper name such as a geographic location or landmark, and so on.\nEntities represent actionable data for your application.\n\nWhen you define an entity, you can also include synonyms that all\nmap to that entity. For example, \"soft drink\", \"soda\", \"pop\", and so\non.\n\nThere are three types of entities:\n\n- **System** - entities that are defined by the Dialogflow API for\n common data types such as date, time, currency, and so on. A\n system entity is represented by the `EntityType` type.\n\n- **Custom** - entities that are defined by you that represent\n actionable data that is meaningful to your application. For\n example, you could define a `pizza.sauce` entity for red or\n white pizza sauce, a `pizza.cheese` entity for the different\n types of cheese on a pizza, a `pizza.topping` entity for\n different toppings, and so on. A custom entity is represented by\n the `EntityType` type.\n\n- **User** - entities that are built for an individual user such as\n favorites, preferences, playlists, and so on. A user entity is\n represented by the\n SessionEntityType\n type.\n\nFor more information about entity types, see the `Dialogflow\ndocumentation \u003chttps://cloud.google.com/dialogflow/docs/entities-overview\u003e`__.\n\nClasses\n-------\n\n### AutoExpansionMode\n\n AutoExpansionMode(value)\n\nRepresents different entity type expansion modes. Automated\nexpansion allows an agent to recognize values that have not been\nexplicitly listed in the entity (for example, new kinds of\nshopping list items).\n\n### Entity\n\n Entity(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn **entity entry** for an associated entity type.\n\n### ExcludedPhrase\n\n ExcludedPhrase(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn excluded entity phrase that should not be matched.\n\n### Kind\n\n Kind(value)\n\nRepresents kinds of entities."]]