public sealed class Conversation : IMessage<Conversation>, IEquatable<Conversation>, IDeepCloneable<Conversation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class Conversation.
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.
Implements
IMessageConversation, IEquatableConversation, IDeepCloneableConversation, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
Conversation()
public Conversation()
Conversation(Conversation)
public Conversation(Conversation other)
Parameter | |
---|---|
Name | Description |
other |
Conversation |
Properties
ConversationName
public ConversationName ConversationName { get; set; }
ConversationName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
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/<Conversation Profile ID>
.
Property Value | |
---|---|
Type | Description |
string |
ConversationProfileAsConversationProfileName
public ConversationProfileName ConversationProfileAsConversationProfileName { get; set; }
ConversationProfileName-typed view over the ConversationProfile resource name property.
Property Value | |
---|---|
Type | Description |
ConversationProfileName |
ConversationStage
public Conversation.Types.ConversationStage ConversationStage { get; set; }
Optional. 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 | |
---|---|
Type | Description |
ConversationTypesConversationStage |
EndTime
public Timestamp EndTime { get; set; }
Output only. The time the conversation was finished.
Property Value | |
---|---|
Type | Description |
Timestamp |
LifecycleState
public Conversation.Types.LifecycleState LifecycleState { get; set; }
Output only. The current state of the Conversation.
Property Value | |
---|---|
Type | Description |
ConversationTypesLifecycleState |
Name
public string Name { get; set; }
Output only. Identifier. The unique identifier of this conversation.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ConversationPhoneNumber |
StartTime
public Timestamp StartTime { get; set; }
Output only. The time the conversation was started.
Property Value | |
---|---|
Type | Description |
Timestamp |