# Google Cloud Dialogflow v2beta1 API - Class AutomatedAgentConfig (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public sealed class AutomatedAgentConfig : IMessage<AutomatedAgentConfig>, IEquatable<AutomatedAgentConfig>, IDeepCloneable<AutomatedAgentConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class AutomatedAgentConfig.

Defines the Automated Agent to connect to a conversation.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AutomatedAgentConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutomatedAgentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AutomatedAgentConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutomatedAgentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AutomatedAgentConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutomatedAgentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AutomatedAgentConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Constructors

### AutomatedAgentConfig()

    public AutomatedAgentConfig()

### AutomatedAgentConfig(AutomatedAgentConfig)

    public AutomatedAgentConfig(AutomatedAgentConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AutomatedAgentConfig` |

## Properties

### Agent

    public string Agent { get; set; }

Required. The resource name of the Dialogflow agent environment to use.

This project needs to either be the same project as the conversation or you
need to grant `service-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
Service Agent` role in this project.

- For ES agents, use format: `projects/<Project ID>/locations/<Location
  ID>/agent/environments/<Environment ID or '-'>`. If environment is not
  specified, the default `draft` environment is used. Refer to
  [DetectIntentRequest](https://docs.cloud.google.com/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.DetectIntentRequest)
  for more details.

- For CX agents, use format `projects/<Project ID>/locations/<Location
  ID>/agents/<Agent ID>/environments/<Environment ID
  or '-'>`. If environment is not specified, the default `draft` environment
  is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### AgentAsAgentName

    public AgentName AgentAsAgentName { get; set; }

[AgentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName)-typed view over the [Agent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AutomatedAgentConfig#Google_Cloud_Dialogflow_V2Beta1_AutomatedAgentConfig_Agent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` |   |

### SessionTtl

    public Duration SessionTtl { get; set; }

Optional. Configure lifetime of the Dialogflow session.
By default, a Dialogflow CX session remains active and its data is stored
for 30 minutes after the last request is sent for the session.
This value should be no longer than 1 day.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |