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_restoreexecprojectsId, locationsId, agentsId
projects_locations_agents_validateexecprojectsId, locationsId, agentsId
projects_locations_agents_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
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__defaultLanguageCode,
data__speechToTextSettings,
data__personalizationSettings,
data__answerFeedbackSettings,
data__enableMultiLanguageTraining,
data__securitySettings,
data__textToSpeechSettings,
data__description,
data__clientCertificateSettings,
data__displayName,
data__enableSpellCorrection,
data__supportedLanguageCodes,
data__genAppBuilderSettings,
data__avatarUri,
data__startPlaybook,
data__enableStackdriverLogging,
data__timeZone,
data__name,
data__locked,
data__gitIntegrationSettings,
data__advancedSettings,
data__startFlow,
projectsId,
locationsId
)
SELECT
'{{ defaultLanguageCode }}',
'{{ speechToTextSettings }}',
'{{ personalizationSettings }}',
'{{ answerFeedbackSettings }}',
{{ enableMultiLanguageTraining }},
'{{ securitySettings }}',
'{{ textToSpeechSettings }}',
'{{ description }}',
'{{ clientCertificateSettings }}',
'{{ displayName }}',
{{ enableSpellCorrection }},
'{{ supportedLanguageCodes }}',
'{{ genAppBuilderSettings }}',
'{{ avatarUri }}',
'{{ startPlaybook }}',
{{ enableStackdriverLogging }},
'{{ timeZone }}',
'{{ name }}',
{{ locked }},
'{{ gitIntegrationSettings }}',
'{{ advancedSettings }}',
'{{ startFlow }}',
'{{ 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__defaultLanguageCode = '{{ defaultLanguageCode }}',
data__speechToTextSettings = '{{ speechToTextSettings }}',
data__personalizationSettings = '{{ personalizationSettings }}',
data__answerFeedbackSettings = '{{ answerFeedbackSettings }}',
data__enableMultiLanguageTraining = {{ enableMultiLanguageTraining }},
data__securitySettings = '{{ securitySettings }}',
data__textToSpeechSettings = '{{ textToSpeechSettings }}',
data__description = '{{ description }}',
data__clientCertificateSettings = '{{ clientCertificateSettings }}',
data__displayName = '{{ displayName }}',
data__enableSpellCorrection = {{ enableSpellCorrection }},
data__supportedLanguageCodes = '{{ supportedLanguageCodes }}',
data__genAppBuilderSettings = '{{ genAppBuilderSettings }}',
data__avatarUri = '{{ avatarUri }}',
data__startPlaybook = '{{ startPlaybook }}',
data__enableStackdriverLogging = {{ enableStackdriverLogging }},
data__timeZone = '{{ timeZone }}',
data__name = '{{ name }}',
data__locked = {{ locked }},
data__gitIntegrationSettings = '{{ gitIntegrationSettings }}',
data__advancedSettings = '{{ advancedSettings }}',
data__startFlow = '{{ startFlow }}'
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_restore
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required
@@json=
'{
"agentUri": "{{ agentUri }}",
"restoreOption": "{{ restoreOption }}",
"agentContent": "{{ agentContent }}",
"gitSource": "{{ gitSource }}"
}'
;