Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Session entity types are referred to as User entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on.
You can redefine a session entity type at the session level to extend or replace a custom entity type at the user session level (we refer to the entity types defined at the agent level as "custom entity types").
Note: session entity types apply to all queries, regardless of the language.
Required. The unique identifier of the session entity type. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>/entityTypes/<EntityTypeID> or projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>. If Environment ID is not specified, we assume default 'draft' environment.
Required. The collection of entities to override or supplement the custom entity type.
EntityOverrideMode
The types of modifications for the session entity type.
Enums
ENTITY_OVERRIDE_MODE_UNSPECIFIED
Not specified. This value should be never used.
ENTITY_OVERRIDE_MODE_OVERRIDE
The collection of session entities overrides the collection of entities in the corresponding custom entity type.
ENTITY_OVERRIDE_MODE_SUPPLEMENT
The collection of session entities extends the collection of entities in the corresponding custom entity type.
Note: Even in this override mode calls to entityTypes.list, entityTypes.get, entityTypes.create and entityTypes.patch only return the additional entities added in this session entity type. If you want to get the supplemented list, please call EntityTypes.GetEntityType on the custom entity type and merge.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eSession entity types, also known as User entity types, are designed for individual user-specific data like preferences or playlists.\u003c/p\u003e\n"],["\u003cp\u003eThese session entity types can extend or replace custom entity types at the user session level.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eentityOverrideMode\u003c/code\u003e field determines if session entities override or supplement custom entity type definitions.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation defines the structure of a session entity type, which includes a name, entity override mode, and the entities themselves.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods are available to manage session entity types, including creating, deleting, retrieving, listing, and updating them.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.locations.agents.environments.sessions.entityTypes\n\n- [Resource: SessionEntityType](#SessionEntityType)\n - [JSON representation](#SessionEntityType.SCHEMA_REPRESENTATION)\n - [EntityOverrideMode](#SessionEntityType.EntityOverrideMode)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SessionEntityType\n---------------------------\n\nSession entity types are referred to as **User** entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on.\n\nYou can redefine a session entity type at the session level to extend or replace a [custom entity type](/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.entityTypes#EntityType) at the user session level (we refer to the entity types defined at the agent level as \"custom entity types\").\n\nNote: session entity types apply to all queries, regardless of the language.\n\nFor more information about entity types, see the [Dialogflow documentation](https://cloud.google.com/dialogflow/docs/entities-overview).\n\n### EntityOverrideMode\n\nThe types of modifications for the session entity type."]]