Class Agent (3.5.0)

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

A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system.

For more information about agents, see the Agent guide.

Inheritance

Object > Agent

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

Agent()

public Agent()

Agent(Agent)

public Agent(Agent other)
Parameter
NameDescription
otherAgent

Properties

ApiVersion

public Agent.Types.ApiVersion ApiVersion { get; set; }

Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.

Property Value
TypeDescription
Agent.Types.ApiVersion

AvatarUri

public string AvatarUri { get; set; }

Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

Property Value
TypeDescription
String

ClassificationThreshold

public float ClassificationThreshold { get; set; }

Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.

Property Value
TypeDescription
Single

DefaultLanguageCode

public string DefaultLanguageCode { get; set; }

Required. 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 Update method.

Property Value
TypeDescription
String

Description

public string Description { get; set; }

Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.

Property Value
TypeDescription
String

DisplayName

public string DisplayName { get; set; }

Required. The name of this agent.

Property Value
TypeDescription
String

EnableLogging

public bool EnableLogging { get; set; }

Optional. Determines whether this agent should log conversation queries.

Property Value
TypeDescription
Boolean

MatchMode

[Obsolete]
public Agent.Types.MatchMode MatchMode { get; set; }

Optional. Determines how intents are detected from user queries.

Property Value
TypeDescription
Agent.Types.MatchMode

Parent

public string Parent { get; set; }

Required. The project of this agent. Format: projects/{Project ID}.

Property Value
TypeDescription
String

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName

SupportedLanguageCodes

public RepeatedField<string> SupportedLanguageCodes { get; }

Optional. The list of all languages supported by this agent (except for the default_language_code).

Property Value
TypeDescription
RepeatedField<String>

Tier

public Agent.Types.Tier Tier { get; set; }

Optional. The agent tier. If not specified, TIER_STANDARD is assumed.

Property Value
TypeDescription
Agent.Types.Tier

TimeZone

public string TimeZone { get; set; }

Required. The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.

Property Value
TypeDescription
String