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, agentsIdintentView, languageCode, pageSize, pageToken
projects_locations_agents_intents_createinsertprojectsId, locationsId, agentsIdlanguageCode
projects_locations_agents_intents_patchupdateprojectsId, locationsId, agentsId, intentsIdlanguageCode, updateMask
projects_locations_agents_intents_deletedeleteprojectsId, locationsId, agentsId, intentsId
projects_locations_agents_intents_exportexecprojectsId, locationsId, agentsId
projects_locations_agents_intents_importexecprojectsId, 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__description,
data__displayName,
data__dtmfPattern,
data__isFallback,
data__labels,
data__name,
data__parameters,
data__priority,
data__trainingPhrases,
projectsId,
locationsId,
agentsId,
languageCode
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ dtmfPattern }}',
{{ isFallback }},
'{{ labels }}',
'{{ name }}',
'{{ parameters }}',
{{ priority }},
'{{ trainingPhrases }}',
'{{ 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__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__dtmfPattern = '{{ dtmfPattern }}',
data__isFallback = {{ isFallback }},
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__parameters = '{{ parameters }}',
data__priority = {{ priority }},
data__trainingPhrases = '{{ trainingPhrases }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND intentsId = '{{ intentsId }}' --required
AND languageCode = '{{ languageCode}}'
AND updateMask = '{{ updateMask}}'
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_export
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"dataFormat": "{{ dataFormat }}",
"intents": "{{ intents }}",
"intentsContentInline": {{ intentsContentInline }},
"intentsUri": "{{ intentsUri }}"
}'
;