Class Conversation (2.25.0)

Conversation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Attributes

NameDescription
name str
Output only. The unique identifier of this conversation. Format: projects/.
lifecycle_state google.cloud.dialogflow_v2.types.Conversation.LifecycleState
Output only. The current state of the Conversation.
conversation_profile str
Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: projects/.
phone_number google.cloud.dialogflow_v2.types.ConversationPhoneNumber
Output only. It will not be empty if the conversation is to be connected over telephony.
start_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the conversation was started.
end_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the conversation was finished.
conversation_stage google.cloud.dialogflow_v2.types.Conversation.ConversationStage
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; Otherwise, defaults to 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, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE.

Classes

ConversationStage

ConversationStage(value)

Enumeration of the different conversation stages a conversation can be in. Reference:

https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages

Values: CONVERSATION_STAGE_UNSPECIFIED (0): Unknown. Should never be used after a conversation is successfully created. VIRTUAL_AGENT_STAGE (1): The conversation should return virtual agent responses into the conversation. HUMAN_ASSIST_STAGE (2): The conversation should not provide responses, just listen and provide suggestions.

LifecycleState

LifecycleState(value)

Enumeration of the completion status of the conversation.

Values: LIFECYCLE_STATE_UNSPECIFIED (0): Unknown. IN_PROGRESS (1): Conversation is currently open for media analysis. COMPLETED (2): Conversation has been completed.