Resource: Agent
Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way.
After you create an agent, you can add Intents
, Entity Types
, Flows
, Fulfillments
, Webhooks
, and so on to manage the conversation flows..
JSON representation | |
---|---|
{
"name": string,
"displayName": string,
"defaultLanguageCode": string,
"timeZone": string,
"description": string,
"avatarUri": string,
"speechToTextSettings": {
object ( |
Fields | |
---|---|
name |
The unique identifier of the agent. Required for the |
displayName |
Required. The human-readable name of the agent, unique within the location. |
defaultLanguageCode |
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 |
timeZone |
Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris. |
description |
The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected. |
avatarUri |
The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration. |
speechToTextSettings |
Speech recognition related settings. |
startFlow |
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: |
securitySettings |
Name of the |
enableStackdriverLogging |
Indicates if stackdriver logging is enabled for the agent. |
enableSpellCorrection |
Indicates if automatic spell correction is enabled in detect intent requests. |
SpeechToTextSettings
Settings related to speech recognition.
JSON representation | |
---|---|
{ "enableSpeechAdaptation": boolean } |
Fields | |
---|---|
enableSpeechAdaptation |
Whether to use speech adaptation for speech recognition. |
Methods |
|
---|---|
|
Creates an agent in the specified location. |
|
Deletes the specified agent. |
|
Exports the specified agent to a binary file. |
|
Retrieves the specified agent. |
|
Gets the latest agent validation result. |
|
Returns the list of all agents in the specified location. |
|
Updates the specified agent. |
|
Restores the specified agent from a binary file. |
|
Validates the specified agent and creates or updates validation results. |