Skip to main content

intents

Creates, updates, deletes, gets or lists an intents resource.

Overview

Nameintents
TypeResource
Idgoogle.dialogflow.intents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
descriptionstring
displayNamestring
dtmfPatternstring
isFallbackboolean
labelsobject
parametersarray
priorityinteger (int32)
trainingPhrasesarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_intents_getselectprojectsId, locationsId, agentsId, intentsIdlanguageCode
projects_locations_agents_intents_listselectprojectsId, locationsId, agentsIdpageSize, languageCode, intentView, pageToken
projects_locations_agents_intents_createinsertprojectsId, locationsId, agentsIdlanguageCode
projects_locations_agents_intents_patchupdateprojectsId, locationsId, agentsId, intentsIdupdateMask, languageCode
projects_locations_agents_intents_deletedeleteprojectsId, locationsId, agentsId, intentsId
projects_locations_agents_intents_importexecprojectsId, locationsId, agentsId
projects_locations_agents_intents_exportexecprojectsId, locationsId, agentsId

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
intentsIdstring
locationsIdstring
projectsIdstring
intentViewstring
languageCodestring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
description,
displayName,
dtmfPattern,
isFallback,
labels,
parameters,
priority,
trainingPhrases
FROM google.dialogflow.intents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND intentsId = '{{ intentsId }}' -- required
AND languageCode = '{{ languageCode }}'
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.intents (
data__trainingPhrases,
data__priority,
data__displayName,
data__parameters,
data__isFallback,
data__dtmfPattern,
data__name,
data__labels,
data__description,
projectsId,
locationsId,
agentsId,
languageCode
)
SELECT
'{{ trainingPhrases }}',
{{ priority }},
'{{ displayName }}',
'{{ parameters }}',
{{ isFallback }},
'{{ dtmfPattern }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}',
'{{ languageCode }}'
RETURNING
name,
description,
displayName,
dtmfPattern,
isFallback,
labels,
parameters,
priority,
trainingPhrases
;

UPDATE examples

No description available.

UPDATE google.dialogflow.intents
SET
data__trainingPhrases = '{{ trainingPhrases }}',
data__priority = {{ priority }},
data__displayName = '{{ displayName }}',
data__parameters = '{{ parameters }}',
data__isFallback = {{ isFallback }},
data__dtmfPattern = '{{ dtmfPattern }}',
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND intentsId = '{{ intentsId }}' --required
AND updateMask = '{{ updateMask}}'
AND languageCode = '{{ languageCode}}'
RETURNING
name,
description,
displayName,
dtmfPattern,
isFallback,
labels,
parameters,
priority,
trainingPhrases;

DELETE examples

No description available.

DELETE FROM google.dialogflow.intents
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND intentsId = '{{ intentsId }}' --required
;

Lifecycle Methods

Successful response

EXEC google.dialogflow.intents.projects_locations_agents_intents_import
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"intentsUri": "{{ intentsUri }}",
"intentsContent": "{{ intentsContent }}",
"mergeOption": "{{ mergeOption }}"
}'
;