Skip to main content

agents

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

Overview​

Nameagents
TypeResource
Idgoogle.dialogflow.agents

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
advancedSettingsobject (id: GoogleCloudDialogflowCxV3AdvancedSettings)
answerFeedbackSettingsobject (id: GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings)
avatarUristring
clientCertificateSettingsobject (id: GoogleCloudDialogflowCxV3AgentClientCertificateSettings)
defaultLanguageCodestring
descriptionstring
displayNamestring
enableMultiLanguageTrainingboolean
enableSpellCorrectionboolean
enableStackdriverLoggingboolean
genAppBuilderSettingsobject (id: GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings)
gitIntegrationSettingsobject (id: GoogleCloudDialogflowCxV3AgentGitIntegrationSettings)
lockedboolean
personalizationSettingsobject (id: GoogleCloudDialogflowCxV3AgentPersonalizationSettings)
satisfiesPziboolean
satisfiesPzsboolean
securitySettingsstring
speechToTextSettingsobject (id: GoogleCloudDialogflowCxV3SpeechToTextSettings)
startFlowstring
startPlaybookstring
supportedLanguageCodesarray
textToSpeechSettingsobject (id: GoogleCloudDialogflowCxV3TextToSpeechSettings)
timeZonestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_getselectprojectsId, locationsId, agentsId
projects_locations_agents_listselectprojectsId, locationsIdpageSize, pageToken
projects_locations_agents_createinsertprojectsId, locationsId
projects_locations_agents_patchupdateprojectsId, locationsId, agentsIdupdateMask
projects_locations_agents_deletedeleteprojectsId, locationsId, agentsId
projects_locations_agents_exportexecprojectsId, locationsId, agentsId
projects_locations_agents_restoreexecprojectsId, locationsId, agentsId
projects_locations_agents_validateexecprojectsId, 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
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Successful response

SELECT
name,
advancedSettings,
answerFeedbackSettings,
avatarUri,
clientCertificateSettings,
defaultLanguageCode,
description,
displayName,
enableMultiLanguageTraining,
enableSpellCorrection,
enableStackdriverLogging,
genAppBuilderSettings,
gitIntegrationSettings,
locked,
personalizationSettings,
satisfiesPzi,
satisfiesPzs,
securitySettings,
speechToTextSettings,
startFlow,
startPlaybook,
supportedLanguageCodes,
textToSpeechSettings,
timeZone
FROM google.dialogflow.agents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
;

INSERT examples​

No description available.

INSERT INTO google.dialogflow.agents (
data__advancedSettings,
data__answerFeedbackSettings,
data__avatarUri,
data__clientCertificateSettings,
data__defaultLanguageCode,
data__description,
data__displayName,
data__enableMultiLanguageTraining,
data__enableSpellCorrection,
data__enableStackdriverLogging,
data__genAppBuilderSettings,
data__gitIntegrationSettings,
data__locked,
data__name,
data__personalizationSettings,
data__securitySettings,
data__speechToTextSettings,
data__startFlow,
data__startPlaybook,
data__supportedLanguageCodes,
data__textToSpeechSettings,
data__timeZone,
projectsId,
locationsId
)
SELECT
'{{ advancedSettings }}',
'{{ answerFeedbackSettings }}',
'{{ avatarUri }}',
'{{ clientCertificateSettings }}',
'{{ defaultLanguageCode }}',
'{{ description }}',
'{{ displayName }}',
{{ enableMultiLanguageTraining }},
{{ enableSpellCorrection }},
{{ enableStackdriverLogging }},
'{{ genAppBuilderSettings }}',
'{{ gitIntegrationSettings }}',
{{ locked }},
'{{ name }}',
'{{ personalizationSettings }}',
'{{ securitySettings }}',
'{{ speechToTextSettings }}',
'{{ startFlow }}',
'{{ startPlaybook }}',
'{{ supportedLanguageCodes }}',
'{{ textToSpeechSettings }}',
'{{ timeZone }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
advancedSettings,
answerFeedbackSettings,
avatarUri,
clientCertificateSettings,
defaultLanguageCode,
description,
displayName,
enableMultiLanguageTraining,
enableSpellCorrection,
enableStackdriverLogging,
genAppBuilderSettings,
gitIntegrationSettings,
locked,
personalizationSettings,
satisfiesPzi,
satisfiesPzs,
securitySettings,
speechToTextSettings,
startFlow,
startPlaybook,
supportedLanguageCodes,
textToSpeechSettings,
timeZone
;

UPDATE examples​

No description available.

UPDATE google.dialogflow.agents
SET
data__advancedSettings = '{{ advancedSettings }}',
data__answerFeedbackSettings = '{{ answerFeedbackSettings }}',
data__avatarUri = '{{ avatarUri }}',
data__clientCertificateSettings = '{{ clientCertificateSettings }}',
data__defaultLanguageCode = '{{ defaultLanguageCode }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__enableMultiLanguageTraining = {{ enableMultiLanguageTraining }},
data__enableSpellCorrection = {{ enableSpellCorrection }},
data__enableStackdriverLogging = {{ enableStackdriverLogging }},
data__genAppBuilderSettings = '{{ genAppBuilderSettings }}',
data__gitIntegrationSettings = '{{ gitIntegrationSettings }}',
data__locked = {{ locked }},
data__name = '{{ name }}',
data__personalizationSettings = '{{ personalizationSettings }}',
data__securitySettings = '{{ securitySettings }}',
data__speechToTextSettings = '{{ speechToTextSettings }}',
data__startFlow = '{{ startFlow }}',
data__startPlaybook = '{{ startPlaybook }}',
data__supportedLanguageCodes = '{{ supportedLanguageCodes }}',
data__textToSpeechSettings = '{{ textToSpeechSettings }}',
data__timeZone = '{{ timeZone }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
advancedSettings,
answerFeedbackSettings,
avatarUri,
clientCertificateSettings,
defaultLanguageCode,
description,
displayName,
enableMultiLanguageTraining,
enableSpellCorrection,
enableStackdriverLogging,
genAppBuilderSettings,
gitIntegrationSettings,
locked,
personalizationSettings,
satisfiesPzi,
satisfiesPzs,
securitySettings,
speechToTextSettings,
startFlow,
startPlaybook,
supportedLanguageCodes,
textToSpeechSettings,
timeZone;

DELETE examples​

No description available.

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

Lifecycle Methods​

Successful response

EXEC google.dialogflow.agents.projects_locations_agents_export
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"agentUri": "{{ agentUri }}",
"dataFormat": "{{ dataFormat }}",
"environment": "{{ environment }}",
"gitDestination": "{{ gitDestination }}",
"includeBigqueryExportSettings": {{ includeBigqueryExportSettings }}
}'
;