flows
Creates, updates, deletes, gets or lists a flows resource.
Overview
| Name | flows |
| Type | Resource |
| Id | google.dialogflow.flows |
Fields
The following fields are returned by SELECT queries:
- projects_locations_agents_flows_get
- projects_locations_agents_flows_list
| Name | Datatype | Description |
|---|---|---|
name | string | |
advancedSettings | object | (id: GoogleCloudDialogflowCxV3AdvancedSettings) |
description | string | |
displayName | string | |
eventHandlers | array | |
inputParameterDefinitions | array | |
knowledgeConnectorSettings | object | (id: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) |
locked | boolean | |
multiLanguageSettings | object | (id: GoogleCloudDialogflowCxV3FlowMultiLanguageSettings) |
nluSettings | object | (id: GoogleCloudDialogflowCxV3NluSettings) |
outputParameterDefinitions | array | |
transitionRouteGroups | array | |
transitionRoutes | array |
| Name | Datatype | Description |
|---|---|---|
name | string | |
advancedSettings | object | (id: GoogleCloudDialogflowCxV3AdvancedSettings) |
description | string | |
displayName | string | |
eventHandlers | array | |
inputParameterDefinitions | array | |
knowledgeConnectorSettings | object | (id: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) |
locked | boolean | |
multiLanguageSettings | object | (id: GoogleCloudDialogflowCxV3FlowMultiLanguageSettings) |
nluSettings | object | (id: GoogleCloudDialogflowCxV3NluSettings) |
outputParameterDefinitions | array | |
transitionRouteGroups | array | |
transitionRoutes | 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 | |
flowsId | string | |
locationsId | string | |
projectsId | string | |
force | boolean | |
languageCode | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- projects_locations_agents_flows_get
- projects_locations_agents_flows_list
Successful response
SELECT
name,
advancedSettings,
description,
displayName,
eventHandlers,
inputParameterDefinitions,
knowledgeConnectorSettings,
locked,
multiLanguageSettings,
nluSettings,
outputParameterDefinitions,
transitionRouteGroups,
transitionRoutes
FROM google.dialogflow.flows
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND flowsId = '{{ flowsId }}' -- required
AND languageCode = '{{ languageCode }}'
;
Successful response
SELECT
name,
advancedSettings,
description,
displayName,
eventHandlers,
inputParameterDefinitions,
knowledgeConnectorSettings,
locked,
multiLanguageSettings,
nluSettings,
outputParameterDefinitions,
transitionRouteGroups,
transitionRoutes
FROM google.dialogflow.flows
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND languageCode = '{{ languageCode }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- projects_locations_agents_flows_create
- Manifest
No description available.
INSERT INTO google.dialogflow.flows (
data__name,
data__locked,
data__advancedSettings,
data__transitionRoutes,
data__knowledgeConnectorSettings,
data__inputParameterDefinitions,
data__outputParameterDefinitions,
data__eventHandlers,
data__description,
data__nluSettings,
data__transitionRouteGroups,
data__displayName,
data__multiLanguageSettings,
projectsId,
locationsId,
agentsId,
languageCode
)
SELECT
'{{ name }}',
{{ locked }},
'{{ advancedSettings }}',
'{{ transitionRoutes }}',
'{{ knowledgeConnectorSettings }}',
'{{ inputParameterDefinitions }}',
'{{ outputParameterDefinitions }}',
'{{ eventHandlers }}',
'{{ description }}',
'{{ nluSettings }}',
'{{ transitionRouteGroups }}',
'{{ displayName }}',
'{{ multiLanguageSettings }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}',
'{{ languageCode }}'
RETURNING
name,
advancedSettings,
description,
displayName,
eventHandlers,
inputParameterDefinitions,
knowledgeConnectorSettings,
locked,
multiLanguageSettings,
nluSettings,
outputParameterDefinitions,
transitionRouteGroups,
transitionRoutes
;
# Description fields are for documentation purposes
- name: flows
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the flows resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the flows resource.
- name: agentsId
value: "{{ agentsId }}"
description: Required parameter for the flows resource.
- name: name
value: "{{ name }}"
- name: locked
value: {{ locked }}
- name: advancedSettings
value:
loggingSettings:
enableInteractionLogging: {{ enableInteractionLogging }}
enableConsentBasedRedaction: {{ enableConsentBasedRedaction }}
enableStackdriverLogging: {{ enableStackdriverLogging }}
audioExportGcsDestination:
uri: "{{ uri }}"
speechSettings:
useTimeoutBasedEndpointing: {{ useTimeoutBasedEndpointing }}
models: "{{ models }}"
endpointerSensitivity: {{ endpointerSensitivity }}
noSpeechTimeout: "{{ noSpeechTimeout }}"
dtmfSettings:
maxDigits: {{ maxDigits }}
finishDigit: "{{ finishDigit }}"
interdigitTimeoutDuration: "{{ interdigitTimeoutDuration }}"
enabled: {{ enabled }}
endpointingTimeoutDuration: "{{ endpointingTimeoutDuration }}"
- name: transitionRoutes
value:
- name: "{{ name }}"
targetPage: "{{ targetPage }}"
condition: "{{ condition }}"
description: "{{ description }}"
targetFlow: "{{ targetFlow }}"
intent: "{{ intent }}"
triggerFulfillment:
returnPartialResponses: {{ returnPartialResponses }}
generators:
- inputParameters: "{{ inputParameters }}"
generator: "{{ generator }}"
outputParameter: "{{ outputParameter }}"
webhook: "{{ webhook }}"
enableGenerativeFallback: {{ enableGenerativeFallback }}
setParameterActions:
- parameter: "{{ parameter }}"
value: "{{ value }}"
tag: "{{ tag }}"
advancedSettings:
loggingSettings:
enableInteractionLogging: {{ enableInteractionLogging }}
enableConsentBasedRedaction: {{ enableConsentBasedRedaction }}
enableStackdriverLogging: {{ enableStackdriverLogging }}
audioExportGcsDestination:
uri: "{{ uri }}"
speechSettings:
useTimeoutBasedEndpointing: {{ useTimeoutBasedEndpointing }}
models: "{{ models }}"
endpointerSensitivity: {{ endpointerSensitivity }}
noSpeechTimeout: "{{ noSpeechTimeout }}"
dtmfSettings:
maxDigits: {{ maxDigits }}
finishDigit: "{{ finishDigit }}"
interdigitTimeoutDuration: "{{ interdigitTimeoutDuration }}"
enabled: {{ enabled }}
endpointingTimeoutDuration: "{{ endpointingTimeoutDuration }}"
messages:
- playAudio:
audioUri: "{{ audioUri }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
toolCall:
tool: "{{ tool }}"
action: "{{ action }}"
inputParameters: "{{ inputParameters }}"
knowledgeInfoCard: "{{ knowledgeInfoCard }}"
endInteraction: "{{ endInteraction }}"
conversationSuccess:
metadata: "{{ metadata }}"
channel: "{{ channel }}"
text:
text:
- "{{ text }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
telephonyTransferCall:
phoneNumber: "{{ phoneNumber }}"
responseType: "{{ responseType }}"
payload: "{{ payload }}"
outputAudioText:
text: "{{ text }}"
ssml: "{{ ssml }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
mixedAudio:
segments:
- allowPlaybackInterruption: {{ allowPlaybackInterruption }}
audio: "{{ audio }}"
uri: "{{ uri }}"
liveAgentHandoff:
metadata: "{{ metadata }}"
conditionalCases:
- cases: "{{ cases }}"
- name: knowledgeConnectorSettings
value:
targetFlow: "{{ targetFlow }}"
dataStoreConnections:
- dataStore: "{{ dataStore }}"
documentProcessingMode: "{{ documentProcessingMode }}"
dataStoreType: "{{ dataStoreType }}"
triggerFulfillment:
returnPartialResponses: {{ returnPartialResponses }}
generators:
- inputParameters: "{{ inputParameters }}"
generator: "{{ generator }}"
outputParameter: "{{ outputParameter }}"
webhook: "{{ webhook }}"
enableGenerativeFallback: {{ enableGenerativeFallback }}
setParameterActions:
- parameter: "{{ parameter }}"
value: "{{ value }}"
tag: "{{ tag }}"
advancedSettings:
loggingSettings:
enableInteractionLogging: {{ enableInteractionLogging }}
enableConsentBasedRedaction: {{ enableConsentBasedRedaction }}
enableStackdriverLogging: {{ enableStackdriverLogging }}
audioExportGcsDestination:
uri: "{{ uri }}"
speechSettings:
useTimeoutBasedEndpointing: {{ useTimeoutBasedEndpointing }}
models: "{{ models }}"
endpointerSensitivity: {{ endpointerSensitivity }}
noSpeechTimeout: "{{ noSpeechTimeout }}"
dtmfSettings:
maxDigits: {{ maxDigits }}
finishDigit: "{{ finishDigit }}"
interdigitTimeoutDuration: "{{ interdigitTimeoutDuration }}"
enabled: {{ enabled }}
endpointingTimeoutDuration: "{{ endpointingTimeoutDuration }}"
messages:
- playAudio:
audioUri: "{{ audioUri }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
toolCall:
tool: "{{ tool }}"
action: "{{ action }}"
inputParameters: "{{ inputParameters }}"
knowledgeInfoCard: "{{ knowledgeInfoCard }}"
endInteraction: "{{ endInteraction }}"
conversationSuccess:
metadata: "{{ metadata }}"
channel: "{{ channel }}"
text:
text:
- "{{ text }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
telephonyTransferCall:
phoneNumber: "{{ phoneNumber }}"
responseType: "{{ responseType }}"
payload: "{{ payload }}"
outputAudioText:
text: "{{ text }}"
ssml: "{{ ssml }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
mixedAudio:
segments:
- allowPlaybackInterruption: {{ allowPlaybackInterruption }}
audio: "{{ audio }}"
uri: "{{ uri }}"
liveAgentHandoff:
metadata: "{{ metadata }}"
conditionalCases:
- cases: "{{ cases }}"
enabled: {{ enabled }}
targetPage: "{{ targetPage }}"
- name: inputParameterDefinitions
value:
- name: "{{ name }}"
type: "{{ type }}"
typeSchema:
schemaReference:
tool: "{{ tool }}"
schema: "{{ schema }}"
inlineSchema:
type: "{{ type }}"
items:
schemaReference:
tool: "{{ tool }}"
schema: "{{ schema }}"
inlineSchema:
type: "{{ type }}"
items: "{{ items }}"
description: "{{ description }}"
- name: outputParameterDefinitions
value:
- name: "{{ name }}"
type: "{{ type }}"
typeSchema:
schemaReference:
tool: "{{ tool }}"
schema: "{{ schema }}"
inlineSchema:
type: "{{ type }}"
items:
schemaReference:
tool: "{{ tool }}"
schema: "{{ schema }}"
inlineSchema:
type: "{{ type }}"
items: "{{ items }}"
description: "{{ description }}"
- name: eventHandlers
value:
- name: "{{ name }}"
event: "{{ event }}"
targetPage: "{{ targetPage }}"
triggerFulfillment:
returnPartialResponses: {{ returnPartialResponses }}
generators:
- inputParameters: "{{ inputParameters }}"
generator: "{{ generator }}"
outputParameter: "{{ outputParameter }}"
webhook: "{{ webhook }}"
enableGenerativeFallback: {{ enableGenerativeFallback }}
setParameterActions:
- parameter: "{{ parameter }}"
value: "{{ value }}"
tag: "{{ tag }}"
advancedSettings:
loggingSettings:
enableInteractionLogging: {{ enableInteractionLogging }}
enableConsentBasedRedaction: {{ enableConsentBasedRedaction }}
enableStackdriverLogging: {{ enableStackdriverLogging }}
audioExportGcsDestination:
uri: "{{ uri }}"
speechSettings:
useTimeoutBasedEndpointing: {{ useTimeoutBasedEndpointing }}
models: "{{ models }}"
endpointerSensitivity: {{ endpointerSensitivity }}
noSpeechTimeout: "{{ noSpeechTimeout }}"
dtmfSettings:
maxDigits: {{ maxDigits }}
finishDigit: "{{ finishDigit }}"
interdigitTimeoutDuration: "{{ interdigitTimeoutDuration }}"
enabled: {{ enabled }}
endpointingTimeoutDuration: "{{ endpointingTimeoutDuration }}"
messages:
- playAudio:
audioUri: "{{ audioUri }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
toolCall:
tool: "{{ tool }}"
action: "{{ action }}"
inputParameters: "{{ inputParameters }}"
knowledgeInfoCard: "{{ knowledgeInfoCard }}"
endInteraction: "{{ endInteraction }}"
conversationSuccess:
metadata: "{{ metadata }}"
channel: "{{ channel }}"
text:
text:
- "{{ text }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
telephonyTransferCall:
phoneNumber: "{{ phoneNumber }}"
responseType: "{{ responseType }}"
payload: "{{ payload }}"
outputAudioText:
text: "{{ text }}"
ssml: "{{ ssml }}"
allowPlaybackInterruption: {{ allowPlaybackInterruption }}
mixedAudio:
segments:
- allowPlaybackInterruption: {{ allowPlaybackInterruption }}
audio: "{{ audio }}"
uri: "{{ uri }}"
liveAgentHandoff:
metadata: "{{ metadata }}"
conditionalCases:
- cases: "{{ cases }}"
targetFlow: "{{ targetFlow }}"
targetPlaybook: "{{ targetPlaybook }}"
- name: description
value: "{{ description }}"
- name: nluSettings
value:
classificationThreshold: {{ classificationThreshold }}
modelTrainingMode: "{{ modelTrainingMode }}"
modelType: "{{ modelType }}"
- name: transitionRouteGroups
value:
- "{{ transitionRouteGroups }}"
- name: displayName
value: "{{ displayName }}"
- name: multiLanguageSettings
value:
enableMultiLanguageDetection: {{ enableMultiLanguageDetection }}
supportedResponseLanguageCodes:
- "{{ supportedResponseLanguageCodes }}"
- name: languageCode
value: "{{ languageCode }}"
UPDATE examples
- projects_locations_agents_flows_patch
No description available.
UPDATE google.dialogflow.flows
SET
data__name = '{{ name }}',
data__locked = {{ locked }},
data__advancedSettings = '{{ advancedSettings }}',
data__transitionRoutes = '{{ transitionRoutes }}',
data__knowledgeConnectorSettings = '{{ knowledgeConnectorSettings }}',
data__inputParameterDefinitions = '{{ inputParameterDefinitions }}',
data__outputParameterDefinitions = '{{ outputParameterDefinitions }}',
data__eventHandlers = '{{ eventHandlers }}',
data__description = '{{ description }}',
data__nluSettings = '{{ nluSettings }}',
data__transitionRouteGroups = '{{ transitionRouteGroups }}',
data__displayName = '{{ displayName }}',
data__multiLanguageSettings = '{{ multiLanguageSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND flowsId = '{{ flowsId }}' --required
AND updateMask = '{{ updateMask}}'
AND languageCode = '{{ languageCode}}'
RETURNING
name,
advancedSettings,
description,
displayName,
eventHandlers,
inputParameterDefinitions,
knowledgeConnectorSettings,
locked,
multiLanguageSettings,
nluSettings,
outputParameterDefinitions,
transitionRouteGroups,
transitionRoutes;
DELETE examples
- projects_locations_agents_flows_delete
No description available.
DELETE FROM google.dialogflow.flows
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND flowsId = '{{ flowsId }}' --required
AND force = '{{ force }}'
;
Lifecycle Methods
- projects_locations_agents_flows_import
- projects_locations_agents_flows_export
- projects_locations_agents_flows_validate
- projects_locations_agents_flows_train
Successful response
EXEC google.dialogflow.flows.projects_locations_agents_flows_import
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"flowUri": "{{ flowUri }}",
"flowContent": "{{ flowContent }}",
"flowImportStrategy": "{{ flowImportStrategy }}",
"importOption": "{{ importOption }}"
}'
;
Successful response
EXEC google.dialogflow.flows.projects_locations_agents_flows_export
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@flowsId='{{ flowsId }}' --required
@@json=
'{
"flowUri": "{{ flowUri }}",
"includeReferencedFlows": {{ includeReferencedFlows }}
}'
;
Successful response
EXEC google.dialogflow.flows.projects_locations_agents_flows_validate
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@flowsId='{{ flowsId }}' --required
@@json=
'{
"languageCode": "{{ languageCode }}"
}'
;
Successful response
EXEC google.dialogflow.flows.projects_locations_agents_flows_train
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@flowsId='{{ flowsId }}' --required
;