yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="contactcenterinsights_v1.html">Contact Center AI Insights API</a> . <a href="contactcenterinsights_v1.projects.html">projects</a> . <a href="contactcenterinsights_v1.projects.locations.html">locations</a> . <a href="contactcenterinsights_v1.projects.locations.conversations.html">conversations</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="contactcenterinsights_v1.projects.locations.conversations.analyses.html">analyses()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the analyses Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="#calculateStats">calculateStats(location, filter=None, x__xgafv=None)</a></code></p> |
| 84 | <p class="firstline">Gets conversation statistics.</p> |
| 85 | <p class="toc_element"> |
| 86 | <code><a href="#close">close()</a></code></p> |
| 87 | <p class="firstline">Close httplib2 connections.</p> |
| 88 | <p class="toc_element"> |
| 89 | <code><a href="#create">create(parent, body=None, conversationId=None, x__xgafv=None)</a></code></p> |
| 90 | <p class="firstline">Creates a conversation.</p> |
| 91 | <p class="toc_element"> |
| 92 | <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p> |
| 93 | <p class="firstline">Deletes a conversation.</p> |
| 94 | <p class="toc_element"> |
| 95 | <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p> |
| 96 | <p class="firstline">Gets a conversation.</p> |
| 97 | <p class="toc_element"> |
| 98 | <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p> |
| 99 | <p class="firstline">Lists conversations.</p> |
| 100 | <p class="toc_element"> |
| 101 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 102 | <p class="firstline">Retrieves the next page of results.</p> |
| 103 | <p class="toc_element"> |
| 104 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 105 | <p class="firstline">Updates a conversation.</p> |
| 106 | <h3>Method Details</h3> |
| 107 | <div class="method"> |
| 108 | <code class="details" id="calculateStats">calculateStats(location, filter=None, x__xgafv=None)</code> |
| 109 | <pre>Gets conversation statistics. |
| 110 | |
| 111 | Args: |
| 112 | location: string, Required. The location of the conversations. (required) |
| 113 | filter: string, A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties. |
| 114 | x__xgafv: string, V1 error format. |
| 115 | Allowed values |
| 116 | 1 - v1 error format |
| 117 | 2 - v2 error format |
| 118 | |
| 119 | Returns: |
| 120 | An object of the form: |
| 121 | |
| 122 | { # The response for calculating conversation statistics. |
| 123 | "averageDuration": "A String", # The average duration of all conversations. The average is calculated using only conversations that have a time duration. |
| 124 | "averageTurnCount": 42, # The average number of turns per conversation. |
| 125 | "conversationCount": 42, # The total number of conversations. |
| 126 | "conversationCountTimeSeries": { # A time series representing conversations over time. # A time series representing the count of conversations created over time that match that requested filter criteria. |
| 127 | "intervalDuration": "A String", # The duration of each interval. |
| 128 | "points": [ # An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window. |
| 129 | { # A single interval in a time series. |
| 130 | "conversationCount": 42, # The number of conversations created in this interval. |
| 131 | "startTime": "A String", # The start time of this interval. |
| 132 | }, |
| 133 | ], |
| 134 | }, |
| 135 | "customHighlighterMatches": { # A map associating each custom highlighter resource name with its respective number of matches in the set of conversations. |
| 136 | "a_key": 42, |
| 137 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 138 | "issueMatches": { # A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/` Deprecated, use `issue_matches_stats` field instead. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 139 | "a_key": 42, |
| 140 | }, |
| 141 | "smartHighlighterMatches": { # A map associating each smart highlighter display name with its respective number of matches in the set of conversations. |
| 142 | "a_key": 42, |
| 143 | }, |
| 144 | }</pre> |
| 145 | </div> |
| 146 | |
| 147 | <div class="method"> |
| 148 | <code class="details" id="close">close()</code> |
| 149 | <pre>Close httplib2 connections.</pre> |
| 150 | </div> |
| 151 | |
| 152 | <div class="method"> |
| 153 | <code class="details" id="create">create(parent, body=None, conversationId=None, x__xgafv=None)</code> |
| 154 | <pre>Creates a conversation. |
| 155 | |
| 156 | Args: |
| 157 | parent: string, Required. The parent resource of the conversation. (required) |
| 158 | body: object, The request body. |
| 159 | The object takes the form of: |
| 160 | |
| 161 | { # The conversation resource. |
| 162 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 163 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 164 | "agentChannel": 42, # The audio channel that contains the agent. |
| 165 | "customerChannel": 42, # The audio channel that contains the customer. |
| 166 | }, |
| 167 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 168 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 169 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 170 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 171 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 172 | }, |
| 173 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 174 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 175 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 176 | }, |
| 177 | }, |
| 178 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 179 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 180 | "displayName": "A String", # The human-readable name of the intent. |
| 181 | }, |
| 182 | }, |
| 183 | "duration": "A String", # Output only. The duration of the conversation. |
| 184 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 185 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 186 | "a_key": "A String", |
| 187 | }, |
| 188 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 189 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 190 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 191 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 192 | "annotations": [ # A list of call annotations that apply to this call. |
| 193 | { # A piece of metadata that applies to a window of a call. |
| 194 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 195 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 196 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 197 | }, |
| 198 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 199 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 200 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 201 | }, |
| 202 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 203 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 204 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 205 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 206 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 207 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 208 | }, |
| 209 | "type": "A String", # The type of the entity mention. |
| 210 | }, |
| 211 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 212 | }, |
| 213 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 214 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 215 | }, |
| 216 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 217 | }, |
| 218 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 219 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 220 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 221 | }, |
| 222 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 223 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 224 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 225 | }, |
| 226 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 227 | }, |
| 228 | }, |
| 229 | ], |
| 230 | "entities": { # All the entities in the call. |
| 231 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 232 | "displayName": "A String", # The representative name for the entity. |
| 233 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 234 | "a_key": "A String", |
| 235 | }, |
| 236 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 237 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 238 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 239 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 240 | }, |
| 241 | "type": "A String", # The entity type. |
| 242 | }, |
| 243 | }, |
| 244 | "intents": { # All the matched intents in the call. |
| 245 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 246 | "displayName": "A String", # The human-readable name of the intent. |
| 247 | "id": "A String", # The unique identifier of the intent. |
| 248 | }, |
| 249 | }, |
| 250 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 251 | "issueModel": "A String", # Issue model that generates the result. |
| 252 | "issues": [ # All the matched issues. |
| 253 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 254 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 255 | "issue": "A String", # Resource name of the assigned issue. |
| 256 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 257 | }, |
| 258 | ], |
| 259 | }, |
| 260 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 261 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 262 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 263 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 264 | }, |
| 265 | }, |
| 266 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 267 | { # One channel of conversation-level sentiment data. |
| 268 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 269 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 270 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 271 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 272 | }, |
| 273 | }, |
| 274 | ], |
| 275 | }, |
| 276 | "endTime": "A String", # The time at which the analysis ended. |
| 277 | }, |
| 278 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 279 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 280 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 281 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 282 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 283 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 284 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 285 | { # An annotation that was generated during the customer and agent interaction. |
| 286 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 287 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 288 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 289 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 290 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 291 | }, |
| 292 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 293 | "confidenceScore": 3.14, # 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). |
| 294 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 295 | "a_key": "A String", |
| 296 | }, |
| 297 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 298 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 299 | "title": "A String", # Article title. |
| 300 | "uri": "A String", # Article URI. |
| 301 | }, |
| 302 | "createTime": "A String", # The time at which this annotation was created. |
| 303 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 304 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 305 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 306 | }, |
| 307 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 308 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 309 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 310 | }, |
| 311 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 312 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 313 | "confidenceScore": 3.14, # 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). |
| 314 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 315 | "a_key": "A String", |
| 316 | }, |
| 317 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 318 | "question": "A String", # The corresponding FAQ question. |
| 319 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 320 | }, |
| 321 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 322 | "confidenceScore": 3.14, # 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). |
| 323 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 324 | "a_key": "A String", |
| 325 | }, |
| 326 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 327 | "suggestion": "A String", # The content of the suggestion. |
| 328 | }, |
| 329 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 330 | "confidenceScore": 3.14, # 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). |
| 331 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 332 | "a_key": "A String", |
| 333 | }, |
| 334 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 335 | "reply": "A String", # The content of the reply. |
| 336 | }, |
| 337 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 338 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 339 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 340 | }, |
| 341 | }, |
| 342 | ], |
| 343 | "startTime": "A String", # The time at which the conversation started. |
| 344 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 345 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 346 | { # A segment of a full transcript. |
| 347 | "channelTag": 42, # 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. |
| 348 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 349 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 350 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 351 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 352 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 353 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 354 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 355 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 356 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 357 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 358 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 359 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 360 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 361 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 362 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 363 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 364 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 365 | "text": "A String", # The text of this segment. |
| 366 | "words": [ # A list of the word-specific information for each word in the segment. |
| 367 | { # Word-level info for words in a transcript. |
| 368 | "confidence": 3.14, # 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. |
| 369 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 370 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 371 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 372 | }, |
| 373 | ], |
| 374 | }, |
| 375 | ], |
| 376 | }, |
| 377 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 378 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 379 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 380 | } |
| 381 | |
| 382 | conversationId: string, A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-32 characters and must match the regular expression /^[a-z0-9-]{4,32}$/. Valid characters are /a-z-/ |
| 383 | x__xgafv: string, V1 error format. |
| 384 | Allowed values |
| 385 | 1 - v1 error format |
| 386 | 2 - v2 error format |
| 387 | |
| 388 | Returns: |
| 389 | An object of the form: |
| 390 | |
| 391 | { # The conversation resource. |
| 392 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 393 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 394 | "agentChannel": 42, # The audio channel that contains the agent. |
| 395 | "customerChannel": 42, # The audio channel that contains the customer. |
| 396 | }, |
| 397 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 398 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 399 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 400 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 401 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 402 | }, |
| 403 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 404 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 405 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 406 | }, |
| 407 | }, |
| 408 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 409 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 410 | "displayName": "A String", # The human-readable name of the intent. |
| 411 | }, |
| 412 | }, |
| 413 | "duration": "A String", # Output only. The duration of the conversation. |
| 414 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 415 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 416 | "a_key": "A String", |
| 417 | }, |
| 418 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 419 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 420 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 421 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 422 | "annotations": [ # A list of call annotations that apply to this call. |
| 423 | { # A piece of metadata that applies to a window of a call. |
| 424 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 425 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 426 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 427 | }, |
| 428 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 429 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 430 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 431 | }, |
| 432 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 433 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 434 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 435 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 436 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 437 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 438 | }, |
| 439 | "type": "A String", # The type of the entity mention. |
| 440 | }, |
| 441 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 442 | }, |
| 443 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 444 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 445 | }, |
| 446 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 447 | }, |
| 448 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 449 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 450 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 451 | }, |
| 452 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 453 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 454 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 455 | }, |
| 456 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 457 | }, |
| 458 | }, |
| 459 | ], |
| 460 | "entities": { # All the entities in the call. |
| 461 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 462 | "displayName": "A String", # The representative name for the entity. |
| 463 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 464 | "a_key": "A String", |
| 465 | }, |
| 466 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 467 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 468 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 469 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 470 | }, |
| 471 | "type": "A String", # The entity type. |
| 472 | }, |
| 473 | }, |
| 474 | "intents": { # All the matched intents in the call. |
| 475 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 476 | "displayName": "A String", # The human-readable name of the intent. |
| 477 | "id": "A String", # The unique identifier of the intent. |
| 478 | }, |
| 479 | }, |
| 480 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 481 | "issueModel": "A String", # Issue model that generates the result. |
| 482 | "issues": [ # All the matched issues. |
| 483 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 484 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 485 | "issue": "A String", # Resource name of the assigned issue. |
| 486 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 487 | }, |
| 488 | ], |
| 489 | }, |
| 490 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 491 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 492 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 493 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 494 | }, |
| 495 | }, |
| 496 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 497 | { # One channel of conversation-level sentiment data. |
| 498 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 499 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 500 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 501 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 502 | }, |
| 503 | }, |
| 504 | ], |
| 505 | }, |
| 506 | "endTime": "A String", # The time at which the analysis ended. |
| 507 | }, |
| 508 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 509 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 510 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 511 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 512 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 513 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 514 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 515 | { # An annotation that was generated during the customer and agent interaction. |
| 516 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 517 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 518 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 519 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 520 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 521 | }, |
| 522 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 523 | "confidenceScore": 3.14, # 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). |
| 524 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 525 | "a_key": "A String", |
| 526 | }, |
| 527 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 528 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 529 | "title": "A String", # Article title. |
| 530 | "uri": "A String", # Article URI. |
| 531 | }, |
| 532 | "createTime": "A String", # The time at which this annotation was created. |
| 533 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 534 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 535 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 536 | }, |
| 537 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 538 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 539 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 540 | }, |
| 541 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 542 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 543 | "confidenceScore": 3.14, # 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). |
| 544 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 545 | "a_key": "A String", |
| 546 | }, |
| 547 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 548 | "question": "A String", # The corresponding FAQ question. |
| 549 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 550 | }, |
| 551 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 552 | "confidenceScore": 3.14, # 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). |
| 553 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 554 | "a_key": "A String", |
| 555 | }, |
| 556 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 557 | "suggestion": "A String", # The content of the suggestion. |
| 558 | }, |
| 559 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 560 | "confidenceScore": 3.14, # 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). |
| 561 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 562 | "a_key": "A String", |
| 563 | }, |
| 564 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 565 | "reply": "A String", # The content of the reply. |
| 566 | }, |
| 567 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 568 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 569 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 570 | }, |
| 571 | }, |
| 572 | ], |
| 573 | "startTime": "A String", # The time at which the conversation started. |
| 574 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 575 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 576 | { # A segment of a full transcript. |
| 577 | "channelTag": 42, # 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. |
| 578 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 579 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 580 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 581 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 582 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 583 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 584 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 585 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 586 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 587 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 588 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 589 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 590 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 591 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 592 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 593 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 594 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 595 | "text": "A String", # The text of this segment. |
| 596 | "words": [ # A list of the word-specific information for each word in the segment. |
| 597 | { # Word-level info for words in a transcript. |
| 598 | "confidence": 3.14, # 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. |
| 599 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 600 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 601 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 602 | }, |
| 603 | ], |
| 604 | }, |
| 605 | ], |
| 606 | }, |
| 607 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 608 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 609 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 610 | }</pre> |
| 611 | </div> |
| 612 | |
| 613 | <div class="method"> |
| 614 | <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code> |
| 615 | <pre>Deletes a conversation. |
| 616 | |
| 617 | Args: |
| 618 | name: string, Required. The name of the conversation to delete. (required) |
| 619 | force: boolean, If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses. |
| 620 | x__xgafv: string, V1 error format. |
| 621 | Allowed values |
| 622 | 1 - v1 error format |
| 623 | 2 - v2 error format |
| 624 | |
| 625 | Returns: |
| 626 | An object of the form: |
| 627 | |
| 628 | { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. |
| 629 | }</pre> |
| 630 | </div> |
| 631 | |
| 632 | <div class="method"> |
| 633 | <code class="details" id="get">get(name, view=None, x__xgafv=None)</code> |
| 634 | <pre>Gets a conversation. |
| 635 | |
| 636 | Args: |
| 637 | name: string, Required. The name of the conversation to get. (required) |
| 638 | view: string, The level of details of the conversation. Default is `FULL`. |
| 639 | Allowed values |
| 640 | CONVERSATION_VIEW_UNSPECIFIED - Not specified. Defaults to FULL on GetConversationRequest and BASIC for ListConversationsRequest. |
| 641 | BASIC - Transcript field is not populated in the response. |
| 642 | FULL - All fields are populated. |
| 643 | x__xgafv: string, V1 error format. |
| 644 | Allowed values |
| 645 | 1 - v1 error format |
| 646 | 2 - v2 error format |
| 647 | |
| 648 | Returns: |
| 649 | An object of the form: |
| 650 | |
| 651 | { # The conversation resource. |
| 652 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 653 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 654 | "agentChannel": 42, # The audio channel that contains the agent. |
| 655 | "customerChannel": 42, # The audio channel that contains the customer. |
| 656 | }, |
| 657 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 658 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 659 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 660 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 661 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 662 | }, |
| 663 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 664 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 665 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 666 | }, |
| 667 | }, |
| 668 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 669 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 670 | "displayName": "A String", # The human-readable name of the intent. |
| 671 | }, |
| 672 | }, |
| 673 | "duration": "A String", # Output only. The duration of the conversation. |
| 674 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 675 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 676 | "a_key": "A String", |
| 677 | }, |
| 678 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 679 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 680 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 681 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 682 | "annotations": [ # A list of call annotations that apply to this call. |
| 683 | { # A piece of metadata that applies to a window of a call. |
| 684 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 685 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 686 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 687 | }, |
| 688 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 689 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 690 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 691 | }, |
| 692 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 693 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 694 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 695 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 696 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 697 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 698 | }, |
| 699 | "type": "A String", # The type of the entity mention. |
| 700 | }, |
| 701 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 702 | }, |
| 703 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 704 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 705 | }, |
| 706 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 707 | }, |
| 708 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 709 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 710 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 711 | }, |
| 712 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 713 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 714 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 715 | }, |
| 716 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 717 | }, |
| 718 | }, |
| 719 | ], |
| 720 | "entities": { # All the entities in the call. |
| 721 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 722 | "displayName": "A String", # The representative name for the entity. |
| 723 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 724 | "a_key": "A String", |
| 725 | }, |
| 726 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 727 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 728 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 729 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 730 | }, |
| 731 | "type": "A String", # The entity type. |
| 732 | }, |
| 733 | }, |
| 734 | "intents": { # All the matched intents in the call. |
| 735 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 736 | "displayName": "A String", # The human-readable name of the intent. |
| 737 | "id": "A String", # The unique identifier of the intent. |
| 738 | }, |
| 739 | }, |
| 740 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 741 | "issueModel": "A String", # Issue model that generates the result. |
| 742 | "issues": [ # All the matched issues. |
| 743 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 744 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 745 | "issue": "A String", # Resource name of the assigned issue. |
| 746 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 747 | }, |
| 748 | ], |
| 749 | }, |
| 750 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 751 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 752 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 753 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 754 | }, |
| 755 | }, |
| 756 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 757 | { # One channel of conversation-level sentiment data. |
| 758 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 759 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 760 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 761 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 762 | }, |
| 763 | }, |
| 764 | ], |
| 765 | }, |
| 766 | "endTime": "A String", # The time at which the analysis ended. |
| 767 | }, |
| 768 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 769 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 770 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 771 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 772 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 773 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 774 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 775 | { # An annotation that was generated during the customer and agent interaction. |
| 776 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 777 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 778 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 779 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 780 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 781 | }, |
| 782 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 783 | "confidenceScore": 3.14, # 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). |
| 784 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 785 | "a_key": "A String", |
| 786 | }, |
| 787 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 788 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 789 | "title": "A String", # Article title. |
| 790 | "uri": "A String", # Article URI. |
| 791 | }, |
| 792 | "createTime": "A String", # The time at which this annotation was created. |
| 793 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 794 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 795 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 796 | }, |
| 797 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 798 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 799 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 800 | }, |
| 801 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 802 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 803 | "confidenceScore": 3.14, # 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). |
| 804 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 805 | "a_key": "A String", |
| 806 | }, |
| 807 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 808 | "question": "A String", # The corresponding FAQ question. |
| 809 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 810 | }, |
| 811 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 812 | "confidenceScore": 3.14, # 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). |
| 813 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 814 | "a_key": "A String", |
| 815 | }, |
| 816 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 817 | "suggestion": "A String", # The content of the suggestion. |
| 818 | }, |
| 819 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 820 | "confidenceScore": 3.14, # 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). |
| 821 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 822 | "a_key": "A String", |
| 823 | }, |
| 824 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 825 | "reply": "A String", # The content of the reply. |
| 826 | }, |
| 827 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 828 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 829 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 830 | }, |
| 831 | }, |
| 832 | ], |
| 833 | "startTime": "A String", # The time at which the conversation started. |
| 834 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 835 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 836 | { # A segment of a full transcript. |
| 837 | "channelTag": 42, # 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. |
| 838 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 839 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 840 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 841 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 842 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 843 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 844 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 845 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 846 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 847 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 848 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 849 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 850 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 851 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 852 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 853 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 854 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 855 | "text": "A String", # The text of this segment. |
| 856 | "words": [ # A list of the word-specific information for each word in the segment. |
| 857 | { # Word-level info for words in a transcript. |
| 858 | "confidence": 3.14, # 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. |
| 859 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 860 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 861 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 862 | }, |
| 863 | ], |
| 864 | }, |
| 865 | ], |
| 866 | }, |
| 867 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 868 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 869 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 870 | }</pre> |
| 871 | </div> |
| 872 | |
| 873 | <div class="method"> |
| 874 | <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code> |
| 875 | <pre>Lists conversations. |
| 876 | |
| 877 | Args: |
| 878 | parent: string, Required. The parent resource of the conversation. (required) |
| 879 | filter: string, A filter to reduce results to a specific subset. Useful for querying conversations with specific properties. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 880 | pageSize: integer, The maximum number of conversations to return in the response. A valid page size ranges from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 881 | pageToken: string, The value returned by the last `ListConversationsResponse`. This value indicates that this is a continuation of a prior `ListConversations` call and that the system should return the next page of data. |
| 882 | view: string, The level of details of the conversation. Default is `BASIC`. |
| 883 | Allowed values |
| 884 | CONVERSATION_VIEW_UNSPECIFIED - Not specified. Defaults to FULL on GetConversationRequest and BASIC for ListConversationsRequest. |
| 885 | BASIC - Transcript field is not populated in the response. |
| 886 | FULL - All fields are populated. |
| 887 | x__xgafv: string, V1 error format. |
| 888 | Allowed values |
| 889 | 1 - v1 error format |
| 890 | 2 - v2 error format |
| 891 | |
| 892 | Returns: |
| 893 | An object of the form: |
| 894 | |
| 895 | { # The response of listing conversations. |
| 896 | "conversations": [ # The conversations that match the request. |
| 897 | { # The conversation resource. |
| 898 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 899 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 900 | "agentChannel": 42, # The audio channel that contains the agent. |
| 901 | "customerChannel": 42, # The audio channel that contains the customer. |
| 902 | }, |
| 903 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 904 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 905 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 906 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 907 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 908 | }, |
| 909 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 910 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 911 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 912 | }, |
| 913 | }, |
| 914 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 915 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 916 | "displayName": "A String", # The human-readable name of the intent. |
| 917 | }, |
| 918 | }, |
| 919 | "duration": "A String", # Output only. The duration of the conversation. |
| 920 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 921 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 922 | "a_key": "A String", |
| 923 | }, |
| 924 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 925 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 926 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 927 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 928 | "annotations": [ # A list of call annotations that apply to this call. |
| 929 | { # A piece of metadata that applies to a window of a call. |
| 930 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 931 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 932 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 933 | }, |
| 934 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 935 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 936 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 937 | }, |
| 938 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 939 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 940 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 941 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 942 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 943 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 944 | }, |
| 945 | "type": "A String", # The type of the entity mention. |
| 946 | }, |
| 947 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 948 | }, |
| 949 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 950 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 951 | }, |
| 952 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 953 | }, |
| 954 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 955 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 956 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 957 | }, |
| 958 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 959 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 960 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 961 | }, |
| 962 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 963 | }, |
| 964 | }, |
| 965 | ], |
| 966 | "entities": { # All the entities in the call. |
| 967 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 968 | "displayName": "A String", # The representative name for the entity. |
| 969 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 970 | "a_key": "A String", |
| 971 | }, |
| 972 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 973 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 974 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 975 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 976 | }, |
| 977 | "type": "A String", # The entity type. |
| 978 | }, |
| 979 | }, |
| 980 | "intents": { # All the matched intents in the call. |
| 981 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 982 | "displayName": "A String", # The human-readable name of the intent. |
| 983 | "id": "A String", # The unique identifier of the intent. |
| 984 | }, |
| 985 | }, |
| 986 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 987 | "issueModel": "A String", # Issue model that generates the result. |
| 988 | "issues": [ # All the matched issues. |
| 989 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 990 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 991 | "issue": "A String", # Resource name of the assigned issue. |
| 992 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 993 | }, |
| 994 | ], |
| 995 | }, |
| 996 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 997 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 998 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 999 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 1000 | }, |
| 1001 | }, |
| 1002 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 1003 | { # One channel of conversation-level sentiment data. |
| 1004 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 1005 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 1006 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1007 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1008 | }, |
| 1009 | }, |
| 1010 | ], |
| 1011 | }, |
| 1012 | "endTime": "A String", # The time at which the analysis ended. |
| 1013 | }, |
| 1014 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 1015 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 1016 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 1017 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 1018 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1019 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 1020 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 1021 | { # An annotation that was generated during the customer and agent interaction. |
| 1022 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 1023 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 1024 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 1025 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 1026 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 1027 | }, |
| 1028 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 1029 | "confidenceScore": 3.14, # 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). |
| 1030 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 1031 | "a_key": "A String", |
| 1032 | }, |
| 1033 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1034 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 1035 | "title": "A String", # Article title. |
| 1036 | "uri": "A String", # Article URI. |
| 1037 | }, |
| 1038 | "createTime": "A String", # The time at which this annotation was created. |
| 1039 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 1040 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 1041 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 1042 | }, |
| 1043 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 1044 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1045 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1046 | }, |
| 1047 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 1048 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 1049 | "confidenceScore": 3.14, # 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). |
| 1050 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 1051 | "a_key": "A String", |
| 1052 | }, |
| 1053 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 1054 | "question": "A String", # The corresponding FAQ question. |
| 1055 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 1056 | }, |
| 1057 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 1058 | "confidenceScore": 3.14, # 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). |
| 1059 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 1060 | "a_key": "A String", |
| 1061 | }, |
| 1062 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1063 | "suggestion": "A String", # The content of the suggestion. |
| 1064 | }, |
| 1065 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 1066 | "confidenceScore": 3.14, # 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). |
| 1067 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 1068 | "a_key": "A String", |
| 1069 | }, |
| 1070 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1071 | "reply": "A String", # The content of the reply. |
| 1072 | }, |
| 1073 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 1074 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1075 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1076 | }, |
| 1077 | }, |
| 1078 | ], |
| 1079 | "startTime": "A String", # The time at which the conversation started. |
| 1080 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 1081 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 1082 | { # A segment of a full transcript. |
| 1083 | "channelTag": 42, # 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. |
| 1084 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1085 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 1086 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 1087 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1088 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1089 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1090 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1091 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 1092 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 1093 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1094 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1095 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1096 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1097 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 1098 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1099 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1100 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1101 | "text": "A String", # The text of this segment. |
| 1102 | "words": [ # A list of the word-specific information for each word in the segment. |
| 1103 | { # Word-level info for words in a transcript. |
| 1104 | "confidence": 3.14, # 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. |
| 1105 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 1106 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 1107 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 1108 | }, |
| 1109 | ], |
| 1110 | }, |
| 1111 | ], |
| 1112 | }, |
| 1113 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 1114 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 1115 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 1116 | }, |
| 1117 | ], |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 1118 | "nextPageToken": "A String", # A token which can be sent as `page_token` to retrieve the next page. If this field is set, it means there is another page available. If it is not set, it means no other pages are available. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1119 | }</pre> |
| 1120 | </div> |
| 1121 | |
| 1122 | <div class="method"> |
| 1123 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 1124 | <pre>Retrieves the next page of results. |
| 1125 | |
| 1126 | Args: |
| 1127 | previous_request: The request for the previous page. (required) |
| 1128 | previous_response: The response from the request for the previous page. (required) |
| 1129 | |
| 1130 | Returns: |
| 1131 | A request object that you can call 'execute()' on to request the next |
| 1132 | page. Returns None if there are no more items in the collection. |
| 1133 | </pre> |
| 1134 | </div> |
| 1135 | |
| 1136 | <div class="method"> |
| 1137 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 1138 | <pre>Updates a conversation. |
| 1139 | |
| 1140 | Args: |
| 1141 | name: string, Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} (required) |
| 1142 | body: object, The request body. |
| 1143 | The object takes the form of: |
| 1144 | |
| 1145 | { # The conversation resource. |
| 1146 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 1147 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 1148 | "agentChannel": 42, # The audio channel that contains the agent. |
| 1149 | "customerChannel": 42, # The audio channel that contains the customer. |
| 1150 | }, |
| 1151 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 1152 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 1153 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 1154 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 1155 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 1156 | }, |
| 1157 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 1158 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 1159 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 1160 | }, |
| 1161 | }, |
| 1162 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 1163 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 1164 | "displayName": "A String", # The human-readable name of the intent. |
| 1165 | }, |
| 1166 | }, |
| 1167 | "duration": "A String", # Output only. The duration of the conversation. |
| 1168 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 1169 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 1170 | "a_key": "A String", |
| 1171 | }, |
| 1172 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 1173 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 1174 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 1175 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 1176 | "annotations": [ # A list of call annotations that apply to this call. |
| 1177 | { # A piece of metadata that applies to a window of a call. |
| 1178 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 1179 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1180 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1181 | }, |
| 1182 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 1183 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1184 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1185 | }, |
| 1186 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 1187 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 1188 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 1189 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 1190 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1191 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1192 | }, |
| 1193 | "type": "A String", # The type of the entity mention. |
| 1194 | }, |
| 1195 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 1196 | }, |
| 1197 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 1198 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 1199 | }, |
| 1200 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 1201 | }, |
| 1202 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 1203 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 1204 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 1205 | }, |
| 1206 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 1207 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1208 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1209 | }, |
| 1210 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 1211 | }, |
| 1212 | }, |
| 1213 | ], |
| 1214 | "entities": { # All the entities in the call. |
| 1215 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 1216 | "displayName": "A String", # The representative name for the entity. |
| 1217 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 1218 | "a_key": "A String", |
| 1219 | }, |
| 1220 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 1221 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 1222 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1223 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1224 | }, |
| 1225 | "type": "A String", # The entity type. |
| 1226 | }, |
| 1227 | }, |
| 1228 | "intents": { # All the matched intents in the call. |
| 1229 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 1230 | "displayName": "A String", # The human-readable name of the intent. |
| 1231 | "id": "A String", # The unique identifier of the intent. |
| 1232 | }, |
| 1233 | }, |
| 1234 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 1235 | "issueModel": "A String", # Issue model that generates the result. |
| 1236 | "issues": [ # All the matched issues. |
| 1237 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 1238 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1239 | "issue": "A String", # Resource name of the assigned issue. |
| 1240 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 1241 | }, |
| 1242 | ], |
| 1243 | }, |
| 1244 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 1245 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 1246 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 1247 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 1248 | }, |
| 1249 | }, |
| 1250 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 1251 | { # One channel of conversation-level sentiment data. |
| 1252 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 1253 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 1254 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1255 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1256 | }, |
| 1257 | }, |
| 1258 | ], |
| 1259 | }, |
| 1260 | "endTime": "A String", # The time at which the analysis ended. |
| 1261 | }, |
| 1262 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 1263 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 1264 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 1265 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 1266 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1267 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 1268 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 1269 | { # An annotation that was generated during the customer and agent interaction. |
| 1270 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 1271 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 1272 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 1273 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 1274 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 1275 | }, |
| 1276 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 1277 | "confidenceScore": 3.14, # 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). |
| 1278 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 1279 | "a_key": "A String", |
| 1280 | }, |
| 1281 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1282 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 1283 | "title": "A String", # Article title. |
| 1284 | "uri": "A String", # Article URI. |
| 1285 | }, |
| 1286 | "createTime": "A String", # The time at which this annotation was created. |
| 1287 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 1288 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 1289 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 1290 | }, |
| 1291 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 1292 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1293 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1294 | }, |
| 1295 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 1296 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 1297 | "confidenceScore": 3.14, # 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). |
| 1298 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 1299 | "a_key": "A String", |
| 1300 | }, |
| 1301 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 1302 | "question": "A String", # The corresponding FAQ question. |
| 1303 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 1304 | }, |
| 1305 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 1306 | "confidenceScore": 3.14, # 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). |
| 1307 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 1308 | "a_key": "A String", |
| 1309 | }, |
| 1310 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1311 | "suggestion": "A String", # The content of the suggestion. |
| 1312 | }, |
| 1313 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 1314 | "confidenceScore": 3.14, # 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). |
| 1315 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 1316 | "a_key": "A String", |
| 1317 | }, |
| 1318 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1319 | "reply": "A String", # The content of the reply. |
| 1320 | }, |
| 1321 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 1322 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1323 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1324 | }, |
| 1325 | }, |
| 1326 | ], |
| 1327 | "startTime": "A String", # The time at which the conversation started. |
| 1328 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 1329 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 1330 | { # A segment of a full transcript. |
| 1331 | "channelTag": 42, # 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. |
| 1332 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1333 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 1334 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 1335 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1336 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1337 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1338 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1339 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 1340 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 1341 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1342 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1343 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1344 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1345 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 1346 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1347 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1348 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1349 | "text": "A String", # The text of this segment. |
| 1350 | "words": [ # A list of the word-specific information for each word in the segment. |
| 1351 | { # Word-level info for words in a transcript. |
| 1352 | "confidence": 3.14, # 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. |
| 1353 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 1354 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 1355 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 1356 | }, |
| 1357 | ], |
| 1358 | }, |
| 1359 | ], |
| 1360 | }, |
| 1361 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 1362 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 1363 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 1364 | } |
| 1365 | |
| 1366 | updateMask: string, The list of fields to be updated. |
| 1367 | x__xgafv: string, V1 error format. |
| 1368 | Allowed values |
| 1369 | 1 - v1 error format |
| 1370 | 2 - v2 error format |
| 1371 | |
| 1372 | Returns: |
| 1373 | An object of the form: |
| 1374 | |
| 1375 | { # The conversation resource. |
| 1376 | "agentId": "A String", # An opaque, user-specified string representing the human agent who handled the conversation. |
| 1377 | "callMetadata": { # Call-specific metadata. # Call-specific metadata. |
| 1378 | "agentChannel": 42, # The audio channel that contains the agent. |
| 1379 | "customerChannel": 42, # The audio channel that contains the customer. |
| 1380 | }, |
| 1381 | "createTime": "A String", # Output only. The time at which the conversation was created. |
| 1382 | "dataSource": { # The conversation source, which is a combination of transcript and audio. # The source of the audio and transcription for the conversation. |
| 1383 | "dialogflowSource": { # A Dialogflow source of conversation data. # The source when the conversation comes from Dialogflow. |
| 1384 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 1385 | "dialogflowConversation": "A String", # Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 1386 | }, |
| 1387 | "gcsSource": { # A Cloud Storage source of conversation data. # A Cloud Storage location specification for the audio and transcript. |
| 1388 | "audioUri": "A String", # Cloud Storage URI that points to a file that contains the conversation audio. |
| 1389 | "transcriptUri": "A String", # Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. |
| 1390 | }, |
| 1391 | }, |
| 1392 | "dialogflowIntents": { # Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} |
| 1393 | "a_key": { # The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. |
| 1394 | "displayName": "A String", # The human-readable name of the intent. |
| 1395 | }, |
| 1396 | }, |
| 1397 | "duration": "A String", # Output only. The duration of the conversation. |
| 1398 | "expireTime": "A String", # The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. |
| 1399 | "labels": { # A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. |
| 1400 | "a_key": "A String", |
| 1401 | }, |
| 1402 | "languageCode": "A String", # A user-specified language code for the conversation. |
| 1403 | "latestAnalysis": { # The analysis resource. # Output only. The conversation's latest analysis, if one exists. |
| 1404 | "analysisResult": { # The result of an analysis. # Output only. The result of the analysis, which is populated when the analysis finishes. |
| 1405 | "callAnalysisMetadata": { # Call-specific metadata created during analysis. # Call-specific metadata created by the analysis. |
| 1406 | "annotations": [ # A list of call annotations that apply to this call. |
| 1407 | { # A piece of metadata that applies to a window of a call. |
| 1408 | "annotationEndBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 1409 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1410 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1411 | }, |
| 1412 | "annotationStartBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 1413 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1414 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1415 | }, |
| 1416 | "channelTag": 42, # The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. |
| 1417 | "entityMentionData": { # The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. # Data specifying an entity mention. |
| 1418 | "entityUniqueId": "A String", # The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| 1419 | "sentiment": { # The data for a sentiment annotation. # Sentiment expressed for this mention of the entity. |
| 1420 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1421 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1422 | }, |
| 1423 | "type": "A String", # The type of the entity mention. |
| 1424 | }, |
| 1425 | "holdData": { # The data for a hold annotation. # Data specifying a hold. |
| 1426 | }, |
| 1427 | "intentMatchData": { # The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. # Data specifying an intent match. |
| 1428 | "intentUniqueId": "A String", # The id of the matched intent. Can be used to retrieve the corresponding intent information. |
| 1429 | }, |
| 1430 | "interruptionData": { # The data for an interruption annotation. # Data specifying an interruption. |
| 1431 | }, |
| 1432 | "phraseMatchData": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. # Data specifying a phrase match. |
| 1433 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 1434 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 1435 | }, |
| 1436 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 1437 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1438 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1439 | }, |
| 1440 | "silenceData": { # The data for a silence annotation. # Data specifying silence. |
| 1441 | }, |
| 1442 | }, |
| 1443 | ], |
| 1444 | "entities": { # All the entities in the call. |
| 1445 | "a_key": { # The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. |
| 1446 | "displayName": "A String", # The representative name for the entity. |
| 1447 | "metadata": { # Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. |
| 1448 | "a_key": "A String", |
| 1449 | }, |
| 1450 | "salience": 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. |
| 1451 | "sentiment": { # The data for a sentiment annotation. # The aggregate sentiment expressed for this entity in the conversation. |
| 1452 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1453 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1454 | }, |
| 1455 | "type": "A String", # The entity type. |
| 1456 | }, |
| 1457 | }, |
| 1458 | "intents": { # All the matched intents in the call. |
| 1459 | "a_key": { # The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. |
| 1460 | "displayName": "A String", # The human-readable name of the intent. |
| 1461 | "id": "A String", # The unique identifier of the intent. |
| 1462 | }, |
| 1463 | }, |
| 1464 | "issueModelResult": { # Issue Modeling result on a conversation. # Overall conversation-level issue modeling result. |
| 1465 | "issueModel": "A String", # Issue model that generates the result. |
| 1466 | "issues": [ # All the matched issues. |
| 1467 | { # Information about the issue. |
yoshi-code-bot | 2da5ed1 | 2021-09-07 00:20:27 -0700 | [diff] [blame] | 1468 | "displayName": "A String", # Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1469 | "issue": "A String", # Resource name of the assigned issue. |
| 1470 | "score": 3.14, # Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. |
| 1471 | }, |
| 1472 | ], |
| 1473 | }, |
| 1474 | "phraseMatchers": { # All the matched phrase matchers in the call. |
| 1475 | "a_key": { # The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. |
| 1476 | "displayName": "A String", # The human-readable name of the phrase matcher. |
| 1477 | "phraseMatcher": "A String", # The unique identifier (the resource name) of the phrase matcher. |
| 1478 | }, |
| 1479 | }, |
| 1480 | "sentiments": [ # Overall conversation-level sentiment for each channel of the call. |
| 1481 | { # One channel of conversation-level sentiment data. |
| 1482 | "channelTag": 42, # The channel of the audio that the data applies to. |
| 1483 | "sentimentData": { # The data for a sentiment annotation. # Data specifying sentiment. |
| 1484 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1485 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1486 | }, |
| 1487 | }, |
| 1488 | ], |
| 1489 | }, |
| 1490 | "endTime": "A String", # The time at which the analysis ended. |
| 1491 | }, |
| 1492 | "createTime": "A String", # Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| 1493 | "name": "A String", # Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| 1494 | "requestTime": "A String", # Output only. The time at which the analysis was requested. |
| 1495 | }, |
yoshi-code-bot | 1c9dcfd | 2021-10-12 00:20:31 -0700 | [diff] [blame] | 1496 | "medium": "A String", # Immutable. The conversation medium, if unspecified will default to PHONE_CALL. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1497 | "name": "A String", # Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} |
| 1498 | "runtimeAnnotations": [ # Output only. The annotations that were generated during the customer and agent interaction. |
| 1499 | { # An annotation that was generated during the customer and agent interaction. |
| 1500 | "annotationId": "A String", # The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} |
| 1501 | "answerFeedback": { # The feedback that the customer has about a certain answer in the conversation. # The feedback that the customer has about the answer in `data`. |
| 1502 | "clicked": True or False, # Indicates whether an answer or item was clicked by the human agent. |
| 1503 | "correctnessLevel": "A String", # The correctness level of an answer. |
| 1504 | "displayed": True or False, # Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. |
| 1505 | }, |
| 1506 | "articleSuggestion": { # Agent Assist Article Suggestion data. # Agent Assist Article Suggestion data. |
| 1507 | "confidenceScore": 3.14, # 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). |
| 1508 | "metadata": { # Map that contains metadata about the Article Suggestion and the document that it originates from. |
| 1509 | "a_key": "A String", |
| 1510 | }, |
| 1511 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1512 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} |
| 1513 | "title": "A String", # Article title. |
| 1514 | "uri": "A String", # Article URI. |
| 1515 | }, |
| 1516 | "createTime": "A String", # The time at which this annotation was created. |
| 1517 | "dialogflowInteraction": { # Dialogflow interaction data. # Dialogflow interaction data. |
| 1518 | "confidence": 3.14, # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). |
| 1519 | "dialogflowIntentId": "A String", # The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} |
| 1520 | }, |
| 1521 | "endBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation ends, inclusive. |
| 1522 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1523 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1524 | }, |
| 1525 | "faqAnswer": { # Agent Assist frequently-asked-question answer data. # Agent Assist FAQ answer data. |
| 1526 | "answer": "A String", # The piece of text from the `source` knowledge base document. |
| 1527 | "confidenceScore": 3.14, # 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). |
| 1528 | "metadata": { # Map that contains metadata about the FAQ answer and the document that it originates from. |
| 1529 | "a_key": "A String", |
| 1530 | }, |
| 1531 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}. |
| 1532 | "question": "A String", # The corresponding FAQ question. |
| 1533 | "source": "A String", # The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. |
| 1534 | }, |
| 1535 | "smartComposeSuggestion": { # Agent Assist Smart Compose suggestion data. # Agent Assist Smart Compose suggestion data. |
| 1536 | "confidenceScore": 3.14, # 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). |
| 1537 | "metadata": { # Map that contains metadata about the Smart Compose suggestion and the document from which it originates. |
| 1538 | "a_key": "A String", |
| 1539 | }, |
| 1540 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1541 | "suggestion": "A String", # The content of the suggestion. |
| 1542 | }, |
| 1543 | "smartReply": { # Agent Assist Smart Reply data. # Agent Assist Smart Reply data. |
| 1544 | "confidenceScore": 3.14, # 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). |
| 1545 | "metadata": { # Map that contains metadata about the Smart Reply and the document from which it originates. |
| 1546 | "a_key": "A String", |
| 1547 | }, |
| 1548 | "queryRecord": "A String", # Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record} |
| 1549 | "reply": "A String", # The content of the reply. |
| 1550 | }, |
| 1551 | "startBoundary": { # A point in a conversation that marks the start or the end of an annotation. # The boundary in the conversation where the annotation starts, inclusive. |
| 1552 | "transcriptIndex": 42, # The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. |
| 1553 | "wordIndex": 42, # The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. |
| 1554 | }, |
| 1555 | }, |
| 1556 | ], |
| 1557 | "startTime": "A String", # The time at which the conversation started. |
| 1558 | "transcript": { # A message representing the transcript of a conversation. # Output only. The conversation transcript. |
| 1559 | "transcriptSegments": [ # A list of sequential transcript segments that comprise the conversation. |
| 1560 | { # A segment of a full transcript. |
| 1561 | "channelTag": 42, # 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. |
| 1562 | "confidence": 3.14, # 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. |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1563 | "dialogflowSegmentMetadata": { # Metadata from Dialogflow relating to the current transcript segment. # CCAI metadata relating to the current transcript segment. |
| 1564 | "smartReplyAllowlistCovered": True or False, # Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. |
| 1565 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1566 | "languageCode": "A String", # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1567 | "messageTime": "A String", # The time that the message occurred, if provided. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1568 | "segmentParticipant": { # The call participant speaking for a given utterance. # The participant of this segment. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1569 | "dialogflowParticipant": "A String", # Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
| 1570 | "dialogflowParticipantName": "A String", # The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} |
yoshi-code-bot | 312da31 | 2021-09-21 00:22:28 -0700 | [diff] [blame] | 1571 | "obfuscatedExternalUserId": "A String", # Obfuscated user ID from Dialogflow. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1572 | "role": "A String", # The role of the participant. |
yoshi-code-bot | cdf480e | 2021-08-17 00:20:40 -0700 | [diff] [blame] | 1573 | "userId": "A String", # A user-specified ID representing the participant. |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1574 | }, |
yoshi-code-bot | 9d63883 | 2021-10-05 00:20:14 -0700 | [diff] [blame] | 1575 | "sentiment": { # The data for a sentiment annotation. # The sentiment for this transcript segment. |
| 1576 | "magnitude": 3.14, # A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. |
| 1577 | "score": 3.14, # The sentiment score between -1.0 (negative) and 1.0 (positive). |
| 1578 | }, |
yoshi-code-bot | 3e4b5db | 2021-08-10 00:22:29 -0700 | [diff] [blame] | 1579 | "text": "A String", # The text of this segment. |
| 1580 | "words": [ # A list of the word-specific information for each word in the segment. |
| 1581 | { # Word-level info for words in a transcript. |
| 1582 | "confidence": 3.14, # 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. |
| 1583 | "endOffset": "A String", # Time offset of the end of this word relative to the beginning of the total conversation. |
| 1584 | "startOffset": "A String", # Time offset of the start of this word relative to the beginning of the total conversation. |
| 1585 | "word": "A String", # The word itself. Includes punctuation marks that surround the word. |
| 1586 | }, |
| 1587 | ], |
| 1588 | }, |
| 1589 | ], |
| 1590 | }, |
| 1591 | "ttl": "A String", # Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. |
| 1592 | "turnCount": 42, # Output only. The number of turns in the conversation. |
| 1593 | "updateTime": "A String", # Output only. The most recent time at which the conversation was updated. |
| 1594 | }</pre> |
| 1595 | </div> |
| 1596 | |
| 1597 | </body></html> |