Class Conversation (2.40.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

Name Description
name str
Output only. Identifier. 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
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; 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.
telephony_connection_info google.cloud.dialogflow_v2.types.Conversation.TelephonyConnectionInfo
Output only. The telephony connection information.
ingested_context_references MutableMapping[str, google.cloud.dialogflow_v2.types.Conversation.ContextReference]
Output only. The context reference updates provided by external systems.

Classes

ContextReference

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

Represents a section of ingested context information.

ConversationStage

ConversationStage(value)

Enumeration of the different conversation stages a conversation can be in. Reference: https://cloud.google.com/agent-assist/docs/basics#conversation_stages

IngestedContextReferencesEntry

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

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

LifecycleState

LifecycleState(value)

Enumeration of the completion status of the conversation.

TelephonyConnectionInfo

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

The information about phone calls connected via phone gateway to the conversation.