Skip to main content

entity_types

Creates, updates, deletes, gets or lists a entity_types resource.

Overview

Nameentity_types
TypeResource
Idgoogle.dialogflow.entity_types

Fields

NameDatatypeDescription
namestringRequired. The unique identifier of the session entity type. Format: projects//locations//agents//sessions//entityTypes/ or projects//locations//agents//environments//sessions//entityTypes/. If Environment ID is not specified, we assume default 'draft' environment.
entitiesarrayRequired. The collection of entities to override or supplement the custom entity type.
entityOverrideModestringRequired. Indicates whether the additional data should override or supplement the custom entity type definition.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_agents_entity_types_getSELECTagentsId, entityTypesId, locationsId, projectsIdRetrieves the specified entity type.
projects_locations_agents_entity_types_listSELECTagentsId, locationsId, projectsIdReturns the list of all entity types in the specified agent.
projects_locations_agents_environments_sessions_entity_types_getSELECTagentsId, entityTypesId, environmentsId, locationsId, projectsId, sessionsIdRetrieves the specified session entity type.
projects_locations_agents_environments_sessions_entity_types_listSELECTagentsId, environmentsId, locationsId, projectsId, sessionsIdReturns the list of all session entity types in the specified session.
projects_locations_agents_sessions_entity_types_getSELECTagentsId, entityTypesId, locationsId, projectsId, sessionsIdRetrieves the specified session entity type.
projects_locations_agents_sessions_entity_types_listSELECTagentsId, locationsId, projectsId, sessionsIdReturns the list of all session entity types in the specified session.
projects_locations_agents_entity_types_createINSERTagentsId, locationsId, projectsIdCreates an entity type in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
projects_locations_agents_environments_sessions_entity_types_createINSERTagentsId, environmentsId, locationsId, projectsId, sessionsIdCreates a session entity type.
projects_locations_agents_sessions_entity_types_createINSERTagentsId, locationsId, projectsId, sessionsIdCreates a session entity type.
projects_locations_agents_entity_types_deleteDELETEagentsId, entityTypesId, locationsId, projectsIdDeletes the specified entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.
projects_locations_agents_environments_sessions_entity_types_deleteDELETEagentsId, entityTypesId, environmentsId, locationsId, projectsId, sessionsIdDeletes the specified session entity type.
projects_locations_agents_sessions_entity_types_deleteDELETEagentsId, entityTypesId, locationsId, projectsId, sessionsIdDeletes the specified session entity type.
projects_locations_agents_entity_types_patchUPDATEagentsId, entityTypesId, locationsId, projectsIdUpdates the specified entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.
projects_locations_agents_environments_sessions_entity_types_patchUPDATEagentsId, entityTypesId, environmentsId, locationsId, projectsId, sessionsIdUpdates the specified session entity type.
projects_locations_agents_sessions_entity_types_patchUPDATEagentsId, entityTypesId, locationsId, projectsId, sessionsIdUpdates the specified session entity type.
projects_locations_agents_entity_types_exportEXECagentsId, locationsId, projectsIdExports the selected entity types.
projects_locations_agents_entity_types_importEXECagentsId, locationsId, projectsIdImports the specified entitytypes into the agent.

SELECT examples

Returns the list of all entity types in the specified agent.

SELECT
name,
entities,
entityOverrideMode
FROM google.dialogflow.entity_types
WHERE agentsId = '{{ agentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new entity_types resource.

/*+ create */
INSERT INTO google.dialogflow.entity_types (
agentsId,
locationsId,
projectsId,
name,
displayName,
autoExpansionMode,
entities,
excludedPhrases,
enableFuzzyExtraction,
redact
)
SELECT
'{{ agentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ autoExpansionMode }}',
'{{ entities }}',
'{{ excludedPhrases }}',
{{ enableFuzzyExtraction }},
{{ redact }}
;

UPDATE example

Updates a entity_types resource.

/*+ update */
UPDATE google.dialogflow.entity_types
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
autoExpansionMode = '{{ autoExpansionMode }}',
entities = '{{ entities }}',
excludedPhrases = '{{ excludedPhrases }}',
enableFuzzyExtraction = true|false,
redact = true|false
WHERE
agentsId = '{{ agentsId }}'
AND entityTypesId = '{{ entityTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified entity_types resource.

/*+ delete */
DELETE FROM google.dialogflow.entity_types
WHERE agentsId = '{{ agentsId }}'
AND entityTypesId = '{{ entityTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';