- [Resource: Agent](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#Agent)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#Agent.SCHEMA_REPRESENTATION)
- [SpeechToTextSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#SpeechToTextSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#SpeechToTextSettings.SCHEMA_REPRESENTATION)
- [GitIntegrationSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitIntegrationSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitIntegrationSettings.SCHEMA_REPRESENTATION)
- [GithubSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GithubSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GithubSettings.SCHEMA_REPRESENTATION)
- [GitConnectionSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitConnectionSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitConnectionSettings.SCHEMA_REPRESENTATION)
- [BigQueryExportSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#BigQueryExportSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#BigQueryExportSettings.SCHEMA_REPRESENTATION)
- [TextToSpeechSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#TextToSpeechSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#TextToSpeechSettings.SCHEMA_REPRESENTATION)
- [GenAppBuilderSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GenAppBuilderSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GenAppBuilderSettings.SCHEMA_REPRESENTATION)
- [AnswerFeedbackSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#AnswerFeedbackSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#AnswerFeedbackSettings.SCHEMA_REPRESENTATION)
- [PersonalizationSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#PersonalizationSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#PersonalizationSettings.SCHEMA_REPRESENTATION)
- [ClientCertificateSettings](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#ClientCertificateSettings)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#ClientCertificateSettings.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#METHODS_SUMMARY)

## 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 `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.intents#Intent`, `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.entityTypes#EntityType`, `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.flows#Flow`, `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Fulfillment`, `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.webhooks#Webhook`, `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.flows.transitionRouteGroups#TransitionRouteGroup` and so on to manage the conversation flows.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "defaultLanguageCode": string, "supportedLanguageCodes": [ string ], "timeZone": string, "description": string, "avatarUri": string, "speechToTextSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#SpeechToTextSettings`) }, "securitySettings": string, "enableStackdriverLogging": boolean, "enableSpellCorrection": boolean, "enableMultiLanguageTraining": boolean, "locked": boolean, "advancedSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/AdvancedSettings`) }, "gitIntegrationSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitIntegrationSettings`) }, "bigqueryExportSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#BigQueryExportSettings`) }, "textToSpeechSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#TextToSpeechSettings`) }, "answerFeedbackSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#AnswerFeedbackSettings`) }, "personalizationSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#PersonalizationSettings`) }, "clientCertificateSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#ClientCertificateSettings`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "startFlow": string, "startPlaybook": string // End of mutually exclusive fields. "genAppBuilderSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GenAppBuilderSettings`) }, "satisfiesPzs": boolean, "satisfiesPzi": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` The unique identifier of the agent. Required for the `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/patch#google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent` method. `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/create#google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent` populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. |
| `displayName` | `string` Required. The human-readable name of the agent, unique within the location. |
| `defaultLanguageCode` | `string` Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/patch#google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent` method. |
| `supportedLanguageCodes[]` | `string` The list of all languages supported by the agent (except for the `defaultLanguageCode`). |
| `timeZone` | `string` Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. |
| `description` | `string` The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected. |
| `avatarUri` | `string` The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration. |
| `speechToTextSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#SpeechToTextSettings`)`` Speech recognition related settings. |
| `securitySettings` | `string` Name of the `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.securitySettings#SecuritySettings` reference for the agent. Format: `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`. |
| `enableStackdriverLogging (deprecated)` | `boolean` > [!WARNING] > This item is deprecated! Indicates if stackdriver logging is enabled for the agent. Please use `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/AdvancedSettings#LoggingSettings` instead. |
| `enableSpellCorrection` | `boolean` Indicates if automatic spell correction is enabled in detect intent requests. |
| `enableMultiLanguageTraining` | `boolean` Optional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the 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 \[agents.restore\]\[\]. |
| `advancedSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/AdvancedSettings`)`` Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level. |
| `gitIntegrationSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitIntegrationSettings`)`` Git integration settings for this agent. |
| `bigqueryExportSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#BigQueryExportSettings`)`` Optional. The BigQuery export settings for this agent. The conversation data will be exported to BigQuery tables if it is enabled. By default, BigQuery export settings will not be exported with agent. You need to set `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/export#body.request_body.FIELDS.include_bigquery_export_settings` to include it in the exported agent. |
| `textToSpeechSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#TextToSpeechSettings`)`` Settings on instructing the speech synthesizer on how to generate the output audio content. |
| `answerFeedbackSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#AnswerFeedbackSettings`)`` Optional. Answer feedback collection settings. |
| `personalizationSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#PersonalizationSettings`)`` Optional. Settings for end user personalization. |
| `clientCertificateSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#ClientCertificateSettings`)`` Optional. Settings for custom client certificates. |
| The resource to start the conversations with for the agent. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `startFlow` | `string` 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Currently only the default start flow with id "00000000-0000-0000-0000-000000000000" is allowed. |
| `startPlaybook` | `string` Name of the start playbook in this agent. A start playbook will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. Currently only the default playbook with id "00000000-0000-0000-0000-000000000000" is allowed. |
| End of mutually exclusive fields. ||
| `genAppBuilderSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GenAppBuilderSettings`)`` Gen App Builder-related agent-level settings. |
| `satisfiesPzs` | `boolean` Optional. Output only. A read only boolean field reflecting Zone Separation status of the agent. |
| `satisfiesPzi` | `boolean` Optional. Output only. A read only boolean field reflecting Zone Isolation status of the agent. |

## SpeechToTextSettings

Settings related to speech recognition.

| JSON representation |
|---|
| ``` { "enableSpeechAdaptation": boolean } ``` |

| Fields ||
|---|---|
| `enableSpeechAdaptation` | `boolean` Whether to use speech adaptation for speech recognition. |

## GitIntegrationSettings

Settings for connecting to Git repository for an agent.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "githubSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GithubSettings`) }, "gitConnectionSettings": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitConnectionSettings`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The git settings to specific systems. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `githubSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GithubSettings`)`` GitHub settings. |
| `gitConnectionSettings` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#GitConnectionSettings`)`` Git connection settings. |
| End of mutually exclusive fields. ||

## GithubSettings

Settings of integration with GitHub.

| JSON representation |
|---|
| ``` { "displayName": string, "repositoryUri": string, "trackingBranch": string, "accessToken": string, "branches": [ string ] } ``` |

| Fields ||
|---|---|
| `displayName` | `string` The unique repository display name for the GitHub repository. |
| `repositoryUri` | `string` The GitHub repository URI related to the agent. |
| `trackingBranch` | `string` The branch of the GitHub repository tracked for this agent. |
| `accessToken` | `string` The access token used to authenticate the access to the GitHub repository. |
| `branches[]` | `string` A list of branches configured to be used from Dialogflow. |

## GitConnectionSettings

Integration settings for a Git service hosted on Cloud Run.

| JSON representation |
|---|
| ``` { "displayName": string, "repositoryUri": string, "trackingBranch": string, "branches": [ string ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "accessTokenSecret": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Required. Display name for the repository |
| `repositoryUri` | `string` Required. Git server reporitory URI. |
| `trackingBranch` | `string` Required. Default branch of the repository. |
| `branches[]` | `string` Optional. List of branches configured for the repository. |
| Support auth types. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `accessTokenSecret` | `string` The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}` |
| End of mutually exclusive fields. ||

## BigQueryExportSettings

The settings of BigQuery export.

| JSON representation |
|---|
| ``` { "enabled": boolean, "bigqueryTable": string } ``` |

| Fields ||
|---|---|
| `enabled` | `boolean` The field to indicate whether the BigQuery export is enabled. |
| `bigqueryTable` | `string` The BigQuery table to export. Format: `projects/<ProjectID>/datasets/<DatasetID>/tables/<TableID>`. |

## TextToSpeechSettings

Settings related to speech synthesizing.

| JSON representation |
|---|
| ``` { "synthesizeSpeechConfigs": { string: { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/SynthesizeSpeechConfig`) }, ... } } ``` |

| Fields ||
|---|---|
| `synthesizeSpeechConfigs` | ``map (key: string, value: object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/SynthesizeSpeechConfig`))`` Configuration of how speech should be synthesized, mapping from language (<https://cloud.google.com/dialogflow/cx/docs/reference/language>) to SynthesizeSpeechConfig. These settings affect: - The [phone gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway) synthesize configuration set via `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#Agent.FIELDS.text_to_speech_settings`. - How speech is synthesized when invoking `session` APIs. `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents#Agent.FIELDS.text_to_speech_settings` only applies if `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.conversations#OutputAudioConfig.FIELDS.synthesize_speech_config` is not specified. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## GenAppBuilderSettings

Settings for Gen App Builder.

| JSON representation |
|---|
| ``` { "engine": string } ``` |

| Fields ||
|---|---|
| `engine` | `string` Required. The full name of the Gen App Builder engine related to this agent if there is one. Format: `projects/{Project ID}/locations/{Location ID}/collections/{Collection ID}/engines/{Engine ID}` |

## AnswerFeedbackSettings

Settings for answer feedback collection.

| JSON representation |
|---|
| ``` { "enableAnswerFeedback": boolean } ``` |

| Fields ||
|---|---|
| `enableAnswerFeedback` | `boolean` Optional. If enabled, end users will be able to provide `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.conversations#AnswerFeedback` to Dialogflow responses. Feature works only if interaction logging is enabled in the Dialogflow agent. |

## PersonalizationSettings

Settings for end user personalization.

| JSON representation |
|---|
| ``` { "defaultEndUserMetadata": { object } } ``` |

| Fields ||
|---|---|
| `defaultEndUserMetadata` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.conversations#QueryParameters.FIELDS.end_user_metadata` in `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.conversations#DetectIntentRequest.FIELDS.query_params` during query processing. |

## ClientCertificateSettings

Settings for custom client certificates.

| JSON representation |
|---|
| ``` { "sslCertificate": string, "privateKey": string, "passphrase": string } ``` |

| Fields ||
|---|---|
| `sslCertificate` | `string` Required. The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. |
| `privateKey` | `string` Required. The name of the SecretManager secret version resource storing the private key encoded in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` |
| `passphrase` | `string` Optional. The name of the SecretManager secret version resource storing the passphrase. 'passphrase' should be left unset if the private key is not encrypted. Format: `projects/{project}/secrets/{secret}/versions/{version}` |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/create` | Creates an agent in the specified location. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/delete` | Deletes the specified agent. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/export` | Exports the specified agent to a binary file. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/get` | Retrieves the specified agent. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/getGenerativeSettings` | Gets the generative settings for the agent. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/getValidationResult` | Gets the latest agent validation result. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/list` | Returns the list of all agents in the specified location. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/patch` | Updates the specified agent. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/restore` | Restores the specified agent from a binary file. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/updateGenerativeSettings` | Updates the generative settings for the agent. |
| ### `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents/validate` | Validates the specified agent and creates or updates validation results. |