agents
Creates, updates, deletes, gets or lists a agents
resource.
Overview
Name | agents |
Type | Resource |
Id | google.dialogflow.agents |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects//locations//agents/ . |
description | string | The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected. |
advancedSettings | object | Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Overriding occurs at the sub-setting level. For example, the playback_interruption_settings at fulfillment level only overrides the playback_interruption_settings at the agent level, leaving other settings at the agent level unchanged. DTMF settings does not override each other. DTMF settings set at different levels define DTMF detections running in parallel. Hierarchy: Agent->Flow->Page->Fulfillment/Parameter. |
answerFeedbackSettings | object | Settings for answer feedback collection. |
avatarUri | string | The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration. |
clientCertificateSettings | object | Settings for custom client certificates. |
defaultLanguageCode | string | Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method. |
displayName | string | Required. The human-readable name of the agent, unique within the location. |
enableMultiLanguageTraining | boolean | Optional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the agent. |
enableSpellCorrection | boolean | Indicates if automatic spell correction is enabled in detect intent requests. |
enableStackdriverLogging | boolean | Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead. |
genAppBuilderSettings | object | Settings for Gen App Builder. |
gitIntegrationSettings | object | Settings for connecting to Git repository for an agent. |
locked | boolean | Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent. |
personalizationSettings | object | Settings for end user personalization. |
securitySettings | string | Name of the SecuritySettings reference for the agent. Format: projects//locations//securitySettings/ . |
speechToTextSettings | object | Settings related to speech recognition. |
startFlow | string | Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects//locations//agents//flows/ . |
supportedLanguageCodes | array | The list of all languages supported by the agent (except for the default_language_code ). |
textToSpeechSettings | object | Settings related to speech synthesizing. |
timeZone | string | Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_agents_get | SELECT | agentsId, locationsId, projectsId | Retrieves the specified agent. |
projects_locations_agents_list | SELECT | locationsId, projectsId | Returns the list of all agents in the specified location. |
projects_locations_agents_create | INSERT | locationsId, projectsId | Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the training documentation. |
projects_locations_agents_delete | DELETE | agentsId, locationsId, projectsId | Deletes the specified agent. |
projects_locations_agents_patch | UPDATE | agentsId, locationsId, projectsId | Updates the specified agent. Note: You should always train flows prior to sending them queries. See the training documentation. |
projects_locations_agents_export | EXEC | agentsId, locationsId, projectsId | Exports the specified agent to a binary file. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata : An empty Struct message - response : ExportAgentResponse |
projects_locations_agents_restore | EXEC | agentsId, locationsId, projectsId | Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata : An empty Struct message - response : An Empty message Note: You should always train flows prior to sending them queries. See the training documentation. |
projects_locations_agents_validate | EXEC | agentsId, locationsId, projectsId | Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results. |
SELECT
examples
Returns the list of all agents in the specified location.
SELECT
name,
description,
advancedSettings,
answerFeedbackSettings,
avatarUri,
clientCertificateSettings,
defaultLanguageCode,
displayName,
enableMultiLanguageTraining,
enableSpellCorrection,
enableStackdriverLogging,
genAppBuilderSettings,
gitIntegrationSettings,
locked,
personalizationSettings,
securitySettings,
speechToTextSettings,
startFlow,
supportedLanguageCodes,
textToSpeechSettings,
timeZone
FROM google.dialogflow.agents
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new agents
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dialogflow.agents (
locationsId,
projectsId,
name,
displayName,
defaultLanguageCode,
supportedLanguageCodes,
timeZone,
description,
avatarUri,
speechToTextSettings,
startFlow,
securitySettings,
enableStackdriverLogging,
enableSpellCorrection,
enableMultiLanguageTraining,
locked,
advancedSettings,
gitIntegrationSettings,
textToSpeechSettings,
genAppBuilderSettings,
answerFeedbackSettings,
personalizationSettings,
clientCertificateSettings
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ defaultLanguageCode }}',
'{{ supportedLanguageCodes }}',
'{{ timeZone }}',
'{{ description }}',
'{{ avatarUri }}',
'{{ speechToTextSettings }}',
'{{ startFlow }}',
'{{ securitySettings }}',
{{ enableStackdriverLogging }},
{{ enableSpellCorrection }},
{{ enableMultiLanguageTraining }},
{{ locked }},
'{{ advancedSettings }}',
'{{ gitIntegrationSettings }}',
'{{ textToSpeechSettings }}',
'{{ genAppBuilderSettings }}',
'{{ answerFeedbackSettings }}',
'{{ personalizationSettings }}',
'{{ clientCertificateSettings }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: displayName
value: string
- name: defaultLanguageCode
value: string
- name: supportedLanguageCodes
value:
- string
- name: timeZone
value: string
- name: description
value: string
- name: avatarUri
value: string
- name: speechToTextSettings
value:
- name: enableSpeechAdaptation
value: boolean
- name: startFlow
value: string
- name: securitySettings
value: string
- name: enableStackdriverLogging
value: boolean
- name: enableSpellCorrection
value: boolean
- name: enableMultiLanguageTraining
value: boolean
- name: locked
value: boolean
- name: advancedSettings
value:
- name: audioExportGcsDestination
value:
- name: uri
value: string
- name: speechSettings
value:
- name: endpointerSensitivity
value: integer
- name: noSpeechTimeout
value: string
- name: useTimeoutBasedEndpointing
value: boolean
- name: models
value: object
- name: dtmfSettings
value:
- name: enabled
value: boolean
- name: maxDigits
value: integer
- name: finishDigit
value: string
- name: interdigitTimeoutDuration
value: string
- name: endpointingTimeoutDuration
value: string
- name: loggingSettings
value:
- name: enableStackdriverLogging
value: boolean
- name: enableInteractionLogging
value: boolean
- name: enableConsentBasedRedaction
value: boolean
- name: gitIntegrationSettings
value:
- name: githubSettings
value:
- name: displayName
value: string
- name: repositoryUri
value: string
- name: trackingBranch
value: string
- name: accessToken
value: string
- name: branches
value:
- string
- name: textToSpeechSettings
value:
- name: synthesizeSpeechConfigs
value: object
- name: genAppBuilderSettings
value:
- name: engine
value: string
- name: answerFeedbackSettings
value:
- name: enableAnswerFeedback
value: boolean
- name: personalizationSettings
value:
- name: defaultEndUserMetadata
value: object
- name: clientCertificateSettings
value:
- name: sslCertificate
value: string
- name: privateKey
value: string
- name: passphrase
value: string
UPDATE
example
Updates a agents
resource.
/*+ update */
UPDATE google.dialogflow.agents
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
defaultLanguageCode = '{{ defaultLanguageCode }}',
supportedLanguageCodes = '{{ supportedLanguageCodes }}',
timeZone = '{{ timeZone }}',
description = '{{ description }}',
avatarUri = '{{ avatarUri }}',
speechToTextSettings = '{{ speechToTextSettings }}',
startFlow = '{{ startFlow }}',
securitySettings = '{{ securitySettings }}',
enableStackdriverLogging = true|false,
enableSpellCorrection = true|false,
enableMultiLanguageTraining = true|false,
locked = true|false,
advancedSettings = '{{ advancedSettings }}',
gitIntegrationSettings = '{{ gitIntegrationSettings }}',
textToSpeechSettings = '{{ textToSpeechSettings }}',
genAppBuilderSettings = '{{ genAppBuilderSettings }}',
answerFeedbackSettings = '{{ answerFeedbackSettings }}',
personalizationSettings = '{{ personalizationSettings }}',
clientCertificateSettings = '{{ clientCertificateSettings }}'
WHERE
agentsId = '{{ agentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified agents
resource.
/*+ delete */
DELETE FROM google.dialogflow.agents
WHERE agentsId = '{{ agentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';