REST Resource: projects.locations.authorizedViewSets.authorizedViews.conversations

Resource: Conversation

The conversation resource.

JSON representation
{
  "name": string,
  "dataSource": {
    object (ConversationDataSource)
  },
  "createTime": string,
  "updateTime": string,
  "startTime": string,
  "languageCode": string,
  "agentId": string,
  "labels": {
    string: string,
    ...
  },
  "qualityMetadata": {
    object (QualityMetadata)
  },
  "metadataJson": string,
  "transcript": {
    object (Transcript)
  },
  "medium": enum (Medium),
  "duration": string,
  "turnCount": integer,
  "latestAnalysis": {
    object (Analysis)
  },
  "latestSummary": {
    object (ConversationSummarizationSuggestionData)
  },
  "runtimeAnnotations": [
    {
      object (RuntimeAnnotation)
    }
  ],
  "dialogflowIntents": {
    string: {
      object (DialogflowIntent)
    },
    ...
  },
  "obfuscatedUserId": string,
  "correlationInfo": {
    object (CorrelationInfo)
  },
  "satisfiesPzi": boolean,
  "satisfiesPzs": boolean,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "callMetadata": {
    object (CallMetadata)
  }
  // End of mutually exclusive fields.

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "expireTime": string,
  "ttl": string
  // End of mutually exclusive fields.
}
Fields
name

string

Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}

dataSource

object (ConversationDataSource)

The source of the audio and transcription for the conversation.

createTime

string (Timestamp format)

Output only. The time at which the conversation was created.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The most recent time at which the conversation was updated.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

startTime

string (Timestamp format)

The time at which the conversation started.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

languageCode

string

A user-specified language code for the conversation.

agentId

string

An opaque, user-specified string representing the human agent who handled the conversation.

labels

map (key: string, value: string)

A map for the user to specify any custom fields. A maximum of 100 labels per conversation is allowed, with a maximum of 256 characters per entry.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

qualityMetadata

object (QualityMetadata)

Conversation metadata related to quality management.

metadataJson

string

Optional. JSON metadata encoded as a string. This field is primarily used by Insights integrations with various telephony systems and must be in one of Insight's supported formats.

transcript

object (Transcript)

Output only. The conversation transcript.

medium

enum (Medium)

Immutable. The conversation medium.

duration

string (Duration format)

Output only. The duration of the conversation.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

turnCount

integer

Output only. The number of turns in the conversation.

latestAnalysis

object (Analysis)

Output only. The conversation's latest analysis, if one exists.

latestSummary

object (ConversationSummarizationSuggestionData)

Output only. Latest summary of the conversation.

runtimeAnnotations[]

object (RuntimeAnnotation)

Output only. The annotations that were generated during the customer and agent interaction.

dialogflowIntents

map (key: string, value: object (DialogflowIntent))

Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent}

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

obfuscatedUserId

string

Obfuscated user ID which the customer sent to us.

correlationInfo

object (CorrelationInfo)

Output only. Info for correlating across conversations.

satisfiesPzi

boolean

Output only. Whether this resource is zone isolated.

satisfiesPzs

boolean

Output only. Whether this resource is zone separated.

Metadata that applies to the conversation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
callMetadata

object (CallMetadata)

Call-specific metadata.

End of mutually exclusive fields.
A time to live expiration setting, can be either a specified timestamp or a duration from the time that the conversation creation request was received. Conversations with an expiration set will be removed up to 24 hours after the specified time. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
expireTime

string (Timestamp format)

The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

ttl

string (Duration format)

Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

End of mutually exclusive fields.

CallMetadata

Call-specific metadata.

JSON representation
{
  "customerChannel": integer,
  "agentChannel": integer
}
Fields
customerChannel

integer

The audio channel that contains the customer.

agentChannel

integer

The audio channel that contains the agent.

ConversationDataSource

The conversation source, which is a combination of transcript and audio.

JSON representation
{
  "metadataUri": string,
  "turnLevelAudios": [
    {
      object (TurnLevelAudio)
    }
  ],

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "gcsSource": {
    object (GcsSource)
  },
  "dialogflowSource": {
    object (DialogflowSource)
  }
  // End of mutually exclusive fields.
}
Fields
metadataUri

string

Cloud Storage URI that points to a file that contains the conversation metadata.

turnLevelAudios[]

object (TurnLevelAudio)

Cloud Storage URIs that points to files that contain the conversation audio for each turn. Assume the order of the URIs is the same as the order of the transcript turns.

The source of the conversation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
gcsSource

object (GcsSource)

A Cloud Storage location specification for the audio and transcript.

dialogflowSource

object (DialogflowSource)

The source when the conversation comes from Dialogflow.

End of mutually exclusive fields.

GcsSource

A Cloud Storage source of conversation data.

JSON representation
{
  "audioUri": string,
  "transcriptUri": string,
  "audioUris": [
    string
  ]
}
Fields
audioUri
(deprecated)

string

Immutable. Deprecated: Use audioUris instead.

Cloud Storage URI that points to a file that contains the conversation audio.

transcriptUri

string

Immutable. Cloud Storage URI that points to a file that contains the conversation transcript.

audioUris[]

string

Immutable. Cloud Storage URIs that point to files that contain the conversation audio. Supports both single audio files and multi-leg session recordings (e.g., call transfers, rolling recording buffers).

DialogflowSource

A Dialogflow source of conversation data.

JSON representation
{
  "dialogflowConversation": string,
  "audioUri": string
}
Fields
dialogflowConversation

string

Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation}

audioUri

string

Cloud Storage URI that points to a file that contains the conversation audio.

TurnLevelAudio

A wrapper for holding the audio for any given turn.

JSON representation
{
  "audioGcsUri": string,
  "audioDuration": string
}
Fields
audioGcsUri

string

The Cloud Storage URI of the audio for any given turn.

audioDuration

string (Duration format)

The duration of the audio.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

QualityMetadata

Conversation metadata related to quality management.

JSON representation
{
  "customerSatisfactionRating": integer,
  "waitDuration": string,
  "menuPath": string,
  "agentInfo": [
    {
      object (AgentInfo)
    }
  ],
  "feedbackLabels": [
    {
      object (FeedbackLabel)
    }
  ]
}
Fields
customerSatisfactionRating

integer

An arbitrary integer value indicating the customer's satisfaction rating.

waitDuration

string (Duration format)

The amount of time the customer waited to connect with an agent.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

menuPath

string

An arbitrary string value specifying the menu path the customer took.

agentInfo[]

object (AgentInfo)

Information about agents involved in the call.

feedbackLabels[]

object (FeedbackLabel)

Input only. The feedback labels associated with the conversation.

Transcript

A message representing the transcript of a conversation.

JSON representation
{
  "transcriptSegments": [
    {
      object (TranscriptSegment)
    }
  ]
}
Fields
transcriptSegments[]

object (TranscriptSegment)

A list of sequential transcript segments that comprise the conversation.

TranscriptSegment

A segment of a full transcript.

JSON representation
{
  "messageTime": string,
  "text": string,
  "confidence": number,
  "words": [
    {
      object (WordInfo)
    }
  ],
  "languageCode": string,
  "channelTag": integer,
  "segmentParticipant": {
    object (ConversationParticipant)
  },
  "dialogflowSegmentMetadata": {
    object (DialogflowSegmentMetadata)
  },
  "sentiment": {
    object (SentimentData)
  },
  "turnLevelAudio": {
    object (TurnLevelAudio)
  },
  "parts": [
    {
      object (TranscriptPart)
    }
  ]
}
Fields
messageTime

string (Timestamp format)

The time that the message occurred, if provided.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

text

string

The text of this segment.

confidence

number

A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.

words[]

object (WordInfo)

A list of the word-specific information for each word in the segment.

languageCode

string

The language code of this segment as a BCP-47 language tag. Example: "en-US".

channelTag

integer

For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.

segmentParticipant

object (ConversationParticipant)

The participant of this segment.

dialogflowSegmentMetadata

object (DialogflowSegmentMetadata)

CCAI metadata relating to the current transcript segment.

sentiment

object (SentimentData)

The sentiment for this transcript segment.

turnLevelAudio

object (TurnLevelAudio)

Turn level audio for this transcript segment.

parts[]

object (TranscriptPart)

Optional. The structured parts that make up this transcript segment.

WordInfo

Word-level info for words in a transcript.

JSON representation
{
  "startOffset": string,
  "endOffset": string,
  "word": string,
  "confidence": number
}
Fields
startOffset

string (Duration format)

Time offset of the start of this word relative to the beginning of the total conversation.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

endOffset

string (Duration format)

Time offset of the end of this word relative to the beginning of the total conversation.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

word

string

The word itself. Includes punctuation marks that surround the word.

confidence

number

A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.

ConversationParticipant

The call participant speaking for a given utterance.

JSON representation
{
  "dialogflowParticipant": string,
  "obfuscatedExternalUserId": string,
  "role": enum (Role),

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "dialogflowParticipantName": string,
  "userId": string
  // End of mutually exclusive fields.
}
Fields
dialogflowParticipant
(deprecated)

string

Deprecated. Use dialogflowParticipantName instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

obfuscatedExternalUserId

string

Obfuscated user ID from Dialogflow.

role

enum (Role)

The role of the participant.

The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
dialogflowParticipantName

string

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

userId

string

A user-specified ID representing the participant.

End of mutually exclusive fields.

DialogflowSegmentMetadata

Metadata from Dialogflow relating to the current transcript segment.

JSON representation
{
  "smartReplyAllowlistCovered": boolean
}
Fields
smartReplyAllowlistCovered

boolean

Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist.

TranscriptPart

A structured component/part of a transcript segment.

JSON representation
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "text": {
    object (TextPart)
  },
  "thought": {
    object (ThoughtPart)
  },
  "productCollection": {
    object (ProductCollectionPart)
  },
  "suggestionChips": {
    object (SuggestionChipsPart)
  },
  "table": {
    object (TablePart)
  },
  "list": {
    object (ListPart)
  },
  "image": {
    object (MediaPart)
  },
  "video": {
    object (MediaPart)
  },
  "link": {
    object (LinkPart)
  },
  "citation": {
    object (CitationPart)
  },
  "customPayload": {
    object (CustomPayloadPart)
  }
  // End of mutually exclusive fields.
}
Fields
The specific part type and payload. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
text

object (TextPart)

Optional. Plain text content.

thought

object (ThoughtPart)

Optional. Model thought or internal reasoning.

productCollection

object (ProductCollectionPart)

Optional. Product collection or carousel.

suggestionChips

object (SuggestionChipsPart)

Optional. Suggestion chips or interactive buttons.

table

object (TablePart)

Optional. Tabular data.

list

object (ListPart)

Optional. Ordered or unordered list.

image

object (MediaPart)

Optional. Image media.

video

object (MediaPart)

Optional. Video media.

citation

object (CitationPart)

Optional. Citation or reference to grounding material.

customPayload

object (CustomPayloadPart)

Optional. Generic custom structured payload.

End of mutually exclusive fields.

TextPart

A text part.

JSON representation
{
  "text": string
}
Fields
text

string

Optional. The text content.

ThoughtPart

A thought part.

JSON representation
{
  "text": string
}
Fields
text

string

Optional. The thought or reasoning text.

ProductCollectionPart

A product collection part.

JSON representation
{
  "products": [
    {
      object (Product)
    }
  ]
}
Fields
products[]

object (Product)

Optional. List of products.

Product

A product in a product collection.

JSON representation
{
  "id": string,
  "displayName": string,
  "description": string,
  "price": {
    object (Money)
  },
  "uri": string,
  "imageUris": [
    string
  ]
}
Fields
id

string

Optional. Product ID.

displayName

string

Optional. Product display name.

description

string

Optional. Product description.

price

object (Money)

Optional. Product price.

uri

string

Optional. Product URL or deep link.

imageUris[]

string

Optional. Product image URLs.

SuggestionChipsPart

A suggestion chips part.

JSON representation
{
  "chips": [
    {
      object (Chip)
    }
  ]
}
Fields
chips[]

object (Chip)

Optional. List of suggestion chips.

Chip

A suggestion chip.

JSON representation
{
  "text": string,
  "actionUri": string
}
Fields
text

string

Optional. The chip label or text.

actionUri

string

Optional. Optional action or destination URI triggered by the chip.

TablePart

A table part.

JSON representation
{
  "title": string,
  "headers": [
    string
  ],
  "rows": [
    {
      object (TableRow)
    }
  ]
}
Fields
title

string

Optional. Optional title for the table.

headers[]

string

Optional. Table column headers.

rows[]

object (TableRow)

Optional. Table rows.

TableRow

A row in a table.

JSON representation
{
  "cells": [
    string
  ]
}
Fields
cells[]

string

Optional. The cell values in the row.

ListPart

A list part.

JSON representation
{
  "listType": enum (ListType),
  "items": [
    {
      object (ListItem)
    }
  ]
}
Fields
listType

enum (ListType)

Optional. The type of list.

items[]

object (ListItem)

Optional. List items.

ListType

Type of list.

Enums
LIST_TYPE_UNSPECIFIED Unspecified list type.
UNORDERED Unordered list.
ORDERED_NUMBER Ordered numbered list.
ORDERED_ALPHA Ordered alphabetic list.

ListItem

An item in a list.

JSON representation
{
  "text": string,
  "subItems": [
    {
      object (ListItem)
    }
  ]
}
Fields
text

string

Optional. The text of the list item.

subItems[]

object (ListItem)

Optional. Nested sub-items.

MediaPart

A media part.

JSON representation
{
  "uri": string,
  "alternativeText": string
}
Fields
uri

string

Optional. URI or URL to the media.

alternativeText

string

Optional. Alternative text description.

LinkPart

A link part.

JSON representation
{
  "text": string,
  "uri": string
}
Fields
text

string

Optional. Anchor or display text.

uri

string

Optional. Target URI.

CitationPart

A citation part.

JSON representation
{
  "sourceUri": string,
  "sourceTitle": string,
  "snippet": string
}
Fields
sourceUri

string

Optional. The cited source URI.

sourceTitle

string

Optional. The cited source title.

snippet

string

Optional. Snippet of the cited text.

CustomPayloadPart

A custom payload part.

JSON representation
{
  "payloadType": string,
  "payload": {
    object
  }
}
Fields
payloadType

string

Optional. Type identifier for the payload.

payload

object (Struct format)

Optional. Arbitrary structured payload.

ConversationSummarizationSuggestionData

Conversation summarization suggestion data.

JSON representation
{
  "text": string,
  "textSections": {
    string: string,
    ...
  },
  "confidence": number,
  "metadata": {
    string: string,
    ...
  },
  "answerRecord": string,
  "conversationModel": string,
  "generatorId": string
}
Fields
text

string

The summarization content that is concatenated into one string.

textSections

map (key: string, value: string)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

confidence

number

The confidence score of the summarization.

metadata

map (key: string, value: string)

A map that contains metadata about the summarization and the document from which it originates.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

answerRecord

string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answerRecord}

conversationModel

string

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversationModel}

generatorId

string

Agent Assist generator ID.

RuntimeAnnotation

An annotation that was generated during the customer and agent interaction.

JSON representation
{
  "annotationId": string,
  "createTime": string,
  "startBoundary": {
    object (AnnotationBoundary)
  },
  "endBoundary": {
    object (AnnotationBoundary)
  },
  "answerFeedback": {
    object (AnswerFeedback)
  },
  "userInput": {
    object (UserInput)
  },

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "articleSuggestion": {
    object (ArticleSuggestionData)
  },
  "faqAnswer": {
    object (FaqAnswerData)
  },
  "smartReply": {
    object (SmartReplyData)
  },
  "smartComposeSuggestion": {
    object (SmartComposeSuggestionData)
  },
  "dialogflowInteraction": {
    object (DialogflowInteractionData)
  },
  "conversationSummarizationSuggestion": {
    object (ConversationSummarizationSuggestionData)
  },
  "cesTurnAnnotation": {
    object (CesTurnAnnotation)
  },
  "cesEndSessionAnnotation": {
    object (CesEndSessionAnnotation)
  }
  // End of mutually exclusive fields.
}
Fields
annotationId

string

The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation}

createTime

string (Timestamp format)

The time at which this annotation was created.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

startBoundary

object (AnnotationBoundary)

The boundary in the conversation where the annotation starts, inclusive.

endBoundary

object (AnnotationBoundary)

The boundary in the conversation where the annotation ends, inclusive.

answerFeedback

object (AnswerFeedback)

The feedback that the customer has about the answer in data.

userInput

object (UserInput)

Explicit input used for generating the answer

The data in the annotation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
articleSuggestion

object (ArticleSuggestionData)

Agent Assist Article Suggestion data.

faqAnswer

object (FaqAnswerData)

Agent Assist FAQ answer data.

smartReply

object (SmartReplyData)

Agent Assist Smart Reply data.

smartComposeSuggestion

object (SmartComposeSuggestionData)

Agent Assist Smart Compose suggestion data.

dialogflowInteraction

object (DialogflowInteractionData)

Dialogflow interaction data.

conversationSummarizationSuggestion

object (ConversationSummarizationSuggestionData)

Conversation summarization suggestion data.

cesTurnAnnotation

object (CesTurnAnnotation)

The CES turn annotation.

cesEndSessionAnnotation

object (CesEndSessionAnnotation)

The CES end session annotation.

End of mutually exclusive fields.

ArticleSuggestionData

Agent Assist Article Suggestion data.

JSON representation
{
  "title": string,
  "uri": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string,
  "source": string
}
Fields
title

string

Article title.

uri

string

Article URI.

confidenceScore

number

The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

metadata

map (key: string, value: string)

Map that contains metadata about the Article Suggestion and the document that it originates from.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

queryRecord

string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answerRecord}

source

string

The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledgeBase}/documents/{document}

FaqAnswerData

Agent Assist frequently-asked-question answer data.

JSON representation
{
  "answer": string,
  "confidenceScore": number,
  "question": string,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string,
  "source": string
}
Fields
answer

string

The piece of text from the source knowledge base document.

confidenceScore

number

The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

question

string

The corresponding FAQ question.

metadata

map (key: string, value: string)

Map that contains metadata about the FAQ answer and the document that it originates from.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

queryRecord

string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answerRecord}

source

string

The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledgeBase}/documents/{document}.

SmartReplyData

Agent Assist Smart Reply data.

JSON representation
{
  "reply": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string
}
Fields
reply

string

The content of the reply.

confidenceScore

number

The system's confidence score that this reply is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

metadata

map (key: string, value: string)

Map that contains metadata about the Smart Reply and the document from which it originates.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

queryRecord

string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answerRecord}

SmartComposeSuggestionData

Agent Assist Smart Compose suggestion data.

JSON representation
{
  "suggestion": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string
}
Fields
suggestion

string

The content of the suggestion.

confidenceScore

number

The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

metadata

map (key: string, value: string)

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

queryRecord

string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answerRecord}

DialogflowInteractionData

Dialogflow interaction data.

JSON representation
{
  "dialogflowIntentId": string,
  "confidence": number
}
Fields
dialogflowIntentId

string

The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent}

confidence

number

The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

CesTurnAnnotation

The CES diagnostic information.

JSON representation
{
  "messages": [
    {
      object (Message)
    }
  ],
  "rootSpan": {
    object (Span)
  }
}
Fields
messages[]

object (Message)

The messages in the turn.

rootSpan

object (Span)

The root span of the action processing.

CesEndSessionAnnotation

The CES end session annotation.

JSON representation
{
  "endSession": {
    object (EndSession)
  }
}
Fields
endSession

object (EndSession)

End session signal from CES.

AnswerFeedback

The feedback that the customer has about a certain answer in the conversation.

JSON representation
{
  "correctnessLevel": enum (CorrectnessLevel),
  "clicked": boolean,
  "displayed": boolean
}
Fields
correctnessLevel

enum (CorrectnessLevel)

The correctness level of an answer.

clicked

boolean

Indicates whether an answer or item was clicked by the human agent.

displayed

boolean

Indicates whether an answer or item was displayed to the human agent in the agent desktop UI.

CorrectnessLevel

The correctness level of an answer.

Enums
CORRECTNESS_LEVEL_UNSPECIFIED Correctness level unspecified.
NOT_CORRECT Answer is totally wrong.
PARTIALLY_CORRECT Answer is partially correct.
FULLY_CORRECT Answer is fully correct.

UserInput

Explicit input used for generating the answer

JSON representation
{
  "query": string,
  "generatorName": string,
  "querySource": enum (QuerySource)
}
Fields
query

string

Query text. Article Search uses this to store the input query used to generate the search results.

generatorName

string

The resource name of associated generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

querySource

enum (QuerySource)

Query source for the answer.

QuerySource

The source of the query.

Enums
QUERY_SOURCE_UNSPECIFIED Unknown query source.
AGENT_QUERY The query is from agents.
SUGGESTED_QUERY The query is a query from previous suggestions, e.g. from a preceding suggestions.suggestKnowledgeAssist response.

DialogflowIntent

The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE.

JSON representation
{
  "displayName": string
}
Fields
displayName

string

The human-readable name of the intent.

CorrelationInfo

Info for correlating across conversations.

JSON representation
{
  "fullConversationCorrelationId": string,
  "mergedFullConversationCorrelationId": string,
  "correlationTypes": [
    enum (CorrelationType)
  ]
}
Fields
fullConversationCorrelationId

string

Output only. The full conversation correlation id this conversation is a segment of.

mergedFullConversationCorrelationId

string

Output only. The full conversation correlation id this conversation is a merged conversation of.

correlationTypes[]

enum (CorrelationType)

Output only. The correlation types of this conversation. A single conversation can have multiple correlation types. For example a conversation that only has a single segment is both a SEGMENT and a FULL_CONVERSATION.

CorrelationType

The type of correlation a conversation has.

Enums
CORRELATION_TYPE_UNSPECIFIED Default value for unspecified.
SEGMENT This conversation represents a segment of a full conversation. The lowest level of granularity.
PARTIAL This conversation represents a partial conversation of potentially multiple segments but is not a full conversation.
FULL This conversation represents a full conversation of potentially multiple segments.
SYNTHETIC This conversation represents a synthetic conversation.

Methods

calculateStats

Gets conversation statistics.

delete

Deletes a conversation.

generateSignedAudio

Gets the signed URI for the audio for the given conversation.

get

Gets a conversation.

list

Lists conversations.