Class Conversation (4.0.0)

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

Represents a conversation. A conversation is an interaction between an agent, including live agents and Dialogflow agents, and a support customer. Conversations can include phone calls and text-based chat sessions.

Inheritance

Object > Conversation

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

Conversation()

public Conversation()

Conversation(Conversation)

public Conversation(Conversation other)
Parameter
NameDescription
otherConversation

Properties

ConversationName

public ConversationName ConversationName { get; set; }

ConversationName-typed view over the Name resource name property.

Property Value
TypeDescription
ConversationName

ConversationProfile

public string ConversationProfile { get; set; }

Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: projects/{Project ID}/locations/{Location ID>/conversationProfiles/&lt;Conversation Profile ID>.

Property Value
TypeDescription
String

ConversationProfileAsConversationProfileName

public ConversationProfileName ConversationProfileAsConversationProfileName { get; set; }

ConversationProfileName-typed view over the ConversationProfile resource name property.

Property Value
TypeDescription
ConversationProfileName

ConversationStage

public Conversation.Types.ConversationStage ConversationStage { get; set; }

The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation.

If the conversation is created with the conversation profile that has Dialogflow config set, defaults to [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

Property Value
TypeDescription
Conversation.Types.ConversationStage

EndTime

public Timestamp EndTime { get; set; }

Output only. The time the conversation was finished.

Property Value
TypeDescription
Timestamp

LifecycleState

public Conversation.Types.LifecycleState LifecycleState { get; set; }

Output only. The current state of the Conversation.

Property Value
TypeDescription
Conversation.Types.LifecycleState

Name

public string Name { get; set; }

Output only. The unique identifier of this conversation. Format: projects/{Project ID}/locations/{Location ID>/conversations/&lt;Conversation ID>.

Property Value
TypeDescription
String

PhoneNumber

public ConversationPhoneNumber PhoneNumber { get; set; }

Output only. It will not be empty if the conversation is to be connected over telephony.

Property Value
TypeDescription
ConversationPhoneNumber

StartTime

public Timestamp StartTime { get; set; }

Output only. The time the conversation was started.

Property Value
TypeDescription
Timestamp