intents
Creates, updates, deletes, gets or lists an intents resource.
Overview
| Name | intents |
| Type | Resource |
| Id | google.dialogflow.intents |
Fields
The following fields are returned by SELECT queries:
- projects_locations_agents_intents_get
- projects_locations_agents_intents_list
| Name | Datatype | Description |
|---|---|---|
name | string | |
description | string | |
displayName | string | |
dtmfPattern | string | |
isFallback | boolean | |
labels | object | |
parameters | array | |
priority | integer (int32) | |
trainingPhrases | array |
| Name | Datatype | Description |
|---|---|---|
name | string | |
description | string | |
displayName | string | |
dtmfPattern | string | |
isFallback | boolean | |
labels | object | |
parameters | array | |
priority | integer (int32) | |
trainingPhrases | array |
Methods
The following methods are available for this resource:
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.
| Name | Datatype | Description |
|---|---|---|
agentsId | string | |
intentsId | string | |
locationsId | string | |
projectsId | string | |
intentView | string | |
languageCode | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- projects_locations_agents_intents_get
- projects_locations_agents_intents_list
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 }}'
;
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 pageSize = '{{ pageSize }}'
AND languageCode = '{{ languageCode }}'
AND intentView = '{{ intentView }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- projects_locations_agents_intents_create
- Manifest
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
;
# Description fields are for documentation purposes
- name: intents
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the intents resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the intents resource.
- name: agentsId
value: "{{ agentsId }}"
description: Required parameter for the intents resource.
- name: trainingPhrases
value:
- parts: "{{ parts }}"
repeatCount: {{ repeatCount }}
id: "{{ id }}"
- name: priority
value: {{ priority }}
- name: displayName
value: "{{ displayName }}"
- name: parameters
value:
- entityType: "{{ entityType }}"
redact: {{ redact }}
id: "{{ id }}"
isList: {{ isList }}
- name: isFallback
value: {{ isFallback }}
- name: dtmfPattern
value: "{{ dtmfPattern }}"
- name: name
value: "{{ name }}"
- name: labels
value: "{{ labels }}"
- name: description
value: "{{ description }}"
- name: languageCode
value: "{{ languageCode }}"
UPDATE examples
- projects_locations_agents_intents_patch
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
- projects_locations_agents_intents_delete
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
- projects_locations_agents_intents_import
- projects_locations_agents_intents_export
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 }}"
}'
;
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 }}",
"intentsUri": "{{ intentsUri }}",
"intentsContentInline": {{ intentsContentInline }}
}'
;