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

資源:Conversation

對話資源。

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

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

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

string

不可變動。對話的資源名稱。格式:projects/{project}/locations/{location}/conversations/{conversation}

dataSource

object (ConversationDataSource)

對話的音訊和轉錄稿來源。

createTime

string (Timestamp format)

僅供輸出。建立對話的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

updateTime

string (Timestamp format)

僅供輸出。對話的最近更新時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

startTime

string (Timestamp format)

對話開始時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

languageCode

string

使用者指定的對話語言代碼。

agentId

string

使用者指定的不透明字串,代表處理對話的服務專員。

labels

map (key: string, value: string)

使用者指定任何自訂欄位的對應。每段對話最多可有 100 個標籤,每個項目最多 256 個半形字元。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

qualityMetadata

object (QualityMetadata)

與品質管理相關的對話中繼資料。

metadataJson

string

選用。編碼為字串的 JSON 中繼資料。這個欄位主要用於 Insights 與各種電話系統的整合,且必須採用 Insights 支援的格式。

transcript

object (Transcript)

僅供輸出。對話轉錄稿。

medium

enum (Medium)

不可變動。對話媒介。

duration

string (Duration format)

僅供輸出。對話時間長度。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

turnCount

integer

僅供輸出。對話中的互動次數。

latestAnalysis

object (Analysis)

僅供輸出。對話的最新分析 (如有)。

latestSummary

object (ConversationSummarizationSuggestionData)

僅供輸出。對話的最新摘要。

runtimeAnnotations[]

object (RuntimeAnnotation)

僅供輸出。在客戶與服務專員互動期間產生的註解。

dialogflowIntents

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

僅供輸出。通話中所有相符的 Dialogflow 意圖。鍵對應至 Dialogflow 意圖,格式為:projects/{project}/agent/{agent}/intents/{intent}

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

obfuscatedUserId

string

客戶傳送給我們的模糊處理使用者 ID。

correlationInfo

object (CorrelationInfo)

僅供輸出。用於關聯對話的資訊。

satisfiesPzi

boolean

僅供輸出。這項資源是否為可用區隔離。

satisfiesPzs

boolean

僅供輸出。這項資源是否依可用區分隔。

適用於對話的中繼資料。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
callMetadata

object (CallMetadata)

通話專屬中繼資料。

互斥欄位結束。
存留時間到期設定,可以是指定的時間戳記,也可以是從收到對話建立要求起算的時間長度。如果對話設有到期時間,系統會在指定時間後 24 小時內移除對話。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
expireTime

string (Timestamp format)

這個對話的到期時間。之後,對話資料和任何相關分析都會刪除。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

ttl

string (Duration format)

僅限輸入。這項資源的存留時間。如果指定,則會使用這個存留時間計算到期時間。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

互斥欄位結束。

CallMetadata

通話專屬中繼資料。

JSON 表示法
{
  "customerChannel": integer,
  "agentChannel": integer
}
欄位
customerChannel

integer

包含顧客的音訊頻道。

agentChannel

integer

包含代理的音訊頻道。

ConversationDataSource

對話來源,由轉錄稿和音訊組成。

JSON 表示法
{
  "metadataUri": string,
  "turnLevelAudios": [
    {
      object (TurnLevelAudio)
    }
  ],

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

string

Cloud Storage URI,指向含有對話中繼資料的檔案。

turnLevelAudios[]

object (TurnLevelAudio)

Cloud Storage URI,指向包含各輪對話音訊的檔案。假設 URI 的順序與轉錄稿語音片段的順序相同。

對話來源。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
gcsSource

object (GcsSource)

音訊和轉錄稿的 Cloud Storage 位置規格。

dialogflowSource

object (DialogflowSource)

對話來自 Dialogflow 時的來源。

互斥欄位結束。

GcsSource

對話資料的 Cloud Storage 來源。

JSON 表示法
{
  "audioUri": string,
  "transcriptUri": string,
  "audioUris": [
    string
  ]
}
欄位
audioUri
(deprecated)

string

不可變動。已淘汰:請改用 audioUris。

Cloud Storage URI,指向內含對話音訊的檔案。

transcriptUri

string

不可變動。Cloud Storage URI,指向含有對話轉錄稿的檔案。

audioUris[]

string

不可變動。Cloud Storage URI,指向含有對話音訊的檔案。支援單一音訊檔案和多段工作階段錄音 (例如轉接來電、滾動式錄音緩衝區)。

DialogflowSource

對話資料的 Dialogflow 來源。

JSON 表示法
{
  "dialogflowConversation": string,
  "audioUri": string
}
欄位
dialogflowConversation

string

僅供輸出。這個對話資源衍生自的 Dialogflow 對話名稱。格式:projects/{project}/locations/{location}/conversations/{conversation}

audioUri

string

Cloud Storage URI,指向內含對話音訊的檔案。

TurnLevelAudio

用於保存任何指定回合音訊的包裝函式。

JSON 表示法
{
  "audioGcsUri": string,
  "audioDuration": string
}
欄位
audioGcsUri

string

任何指定對話輪次的音訊 Cloud Storage URI。

audioDuration

string (Duration format)

音訊長度。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

QualityMetadata

與品質管理相關的對話中繼資料。

JSON 表示法
{
  "customerSatisfactionRating": integer,
  "waitDuration": string,
  "menuPath": string,
  "agentInfo": [
    {
      object (AgentInfo)
    }
  ],
  "feedbackLabels": [
    {
      object (FeedbackLabel)
    }
  ]
}
欄位
customerSatisfactionRating

integer

任意整數值,表示顧客的滿意度評分。

waitDuration

string (Duration format)

顧客等待與服務專員連線的時間。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

menuPath

string

任意字串值,用於指定顧客採取的選單路徑。

agentInfo[]

object (AgentInfo)

通話參與代理的相關資訊。

feedbackLabels[]

object (FeedbackLabel)

僅限輸入。與對話相關聯的意見回饋標籤。

轉錄稿

代表對話轉錄稿的訊息。

JSON 表示法
{
  "transcriptSegments": [
    {
      object (TranscriptSegment)
    }
  ]
}
欄位
transcriptSegments[]

object (TranscriptSegment)

構成對話的依序轉錄稿片段清單。

TranscriptSegment

完整轉錄稿的一部分。

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

string (Timestamp format)

訊息發生的時間 (如有提供)。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

text

string

這個區隔的文字。

confidence

number

這段語音準確度的可信度預估值,介於 0.0 至 1.0 之間。預設值 0.0 表示未設定值。

words[]

object (WordInfo)

語音片段中每個字詞的特定資訊清單。

languageCode

string

這個片段的語言代碼,格式為 BCP-47 語言標記。例如:「en-US」。

channelTag

integer

如果是從多聲道音訊衍生的對話,這個聲道編號會對應到該聲道的音訊。如果 audioChannelCount = N,輸出值範圍為「1」到「N」。如果聲道標記為 0,表示音訊為單聲道。

segmentParticipant

object (ConversationParticipant)

這段內容的參與者。

dialogflowSegmentMetadata

object (DialogflowSegmentMetadata)

與目前轉錄稿片段相關的 CCAI 中繼資料。

sentiment

object (SentimentData)

這段轉錄稿的情緒。

turnLevelAudio

object (TurnLevelAudio)

這個轉錄稿片段的回合層級音訊。

parts[]

object (TranscriptPart)

選用。組成這個轉錄稿片段的結構化部分。

WordInfo

轉錄稿中字詞的字詞層級資訊。

JSON 表示法
{
  "startOffset": string,
  "endOffset": string,
  "word": string,
  "confidence": number
}
欄位
startOffset

string (Duration format)

這個字詞相對於整個對話開頭的時間偏移。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

endOffset

string (Duration format)

這個字詞結束時間相對於整個對話開始時間的時間偏移。

以秒為單位的時間長度,最多 9 個小數位數,結尾為「s」。例如:"3.5s"。

word

string

字詞本身。包含字詞前後的標點符號。

confidence

number

介於 0.0 和 1.0 之間的可信度預估值,代表這個字詞的準確度。預設值 0.0 表示未設定值。

ConversationParticipant

說出特定語句的通話參與者。

JSON 表示法
{
  "dialogflowParticipant": string,
  "obfuscatedExternalUserId": string,
  "role": enum (Role),

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

string

已淘汰,請改用 dialogflowParticipantName。Dialogflow 參與者的名稱。格式:projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

obfuscatedExternalUserId

string

Dialogflow 提供的經過模糊處理使用者 ID。

role

enum (Role)

參與者的角色。

以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
dialogflowParticipantName

string

Dialogflow 提供的參與者名稱。格式:projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

userId

string

使用者指定的參與者 ID。

互斥欄位結束。

DialogflowSegmentMetadata

Dialogflow 中與目前轉錄稿片段相關的中繼資料。

JSON 表示法
{
  "smartReplyAllowlistCovered": boolean
}
欄位
smartReplyAllowlistCovered

boolean

轉錄稿片段是否涵蓋在 Agent Assist 設定的智慧回覆許可清單中。

TranscriptPart

轉錄稿區段的結構化元件/部分。

JSON 表示法
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "text": {
    object (TextPart)
  },
  "thought": {
    object (ThoughtPart)
  },
  "productCollection": {
    object (ProductCollectionPart)
  },
  "suggestionChips": {
    object (SuggestionChipsPart)
  },
  "table": {
    object (TablePart)
  },
  "list": {
    object (ListPart)
  },
  "image": {
    object (MediaPart)
  },
  "video": {
    object (MediaPart)
  },
  "link": {
    object (LinkPart)
  },
  "citation": {
    object (CitationPart)
  },
  "customPayload": {
    object (CustomPayloadPart)
  }
  // End of mutually exclusive fields.
}
欄位
特定部分類型和酬載。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
text

object (TextPart)

選用。純文字內容。

thought

object (ThoughtPart)

選用。模型想法或內部推論。

productCollection

object (ProductCollectionPart)

選用。產品精選集或輪轉介面。

suggestionChips

object (SuggestionChipsPart)

選用。建議方塊或互動式按鈕。

table

object (TablePart)

選用。表格型資料。

list

object (ListPart)

選用。排序或未排序清單。

image

object (MediaPart)

選用。圖片媒體。

video

object (MediaPart)

選用。影片媒體。

citation

object (CitationPart)

選用。引用或參考基準資料。

customPayload

object (CustomPayloadPart)

選用。一般自訂結構化酬載。

互斥欄位結束。

TextPart

文字部分。

JSON 表示法
{
  "text": string
}
欄位
text

string

選用。文字內容。

ThoughtPart

想法部分。

JSON 表示法
{
  "text": string
}
欄位
text

string

選用。思考或推論文字。

ProductCollectionPart

產品精選集的一部分。

JSON 表示法
{
  "products": [
    {
      object (Product)
    }
  ]
}
欄位
products[]

object (Product)

選用。產品清單。

產品

產品集合中的產品。

JSON 表示法
{
  "id": string,
  "displayName": string,
  "description": string,
  "price": {
    object (Money)
  },
  "uri": string,
  "imageUris": [
    string
  ]
}
欄位
id

string

選用。產品 ID。

displayName

string

選用。產品顯示名稱。

description

string

選用。產品說明。

price

object (Money)

選用。產品價格。

uri

string

選用。產品網址或深層連結。

imageUris[]

string

選用。產品圖片網址。

SuggestionChipsPart

建議方塊部分。

JSON 表示法
{
  "chips": [
    {
      object (Chip)
    }
  ]
}
欄位
chips[]

object (Chip)

選用。建議方塊清單。

晶片

建議方塊。

JSON 表示法
{
  "text": string,
  "actionUri": string
}
欄位
text

string

選用。方塊標籤或文字。

actionUri

string

選用。由方塊觸發的選用動作或目的地 URI。

TablePart

表格的一部分。

JSON 表示法
{
  "title": string,
  "headers": [
    string
  ],
  "rows": [
    {
      object (TableRow)
    }
  ]
}
欄位
title

string

選用。資料表的選用標題。

headers[]

string

選用。表格欄標題。

rows[]

object (TableRow)

選用。表格列。

TableRow

表格中的資料列。

JSON 表示法
{
  "cells": [
    string
  ]
}
欄位
cells[]

string

選用。資料列中的儲存格值。

ListPart

清單部分。

JSON 表示法
{
  "listType": enum (ListType),
  "items": [
    {
      object (ListItem)
    }
  ]
}
欄位
listType

enum (ListType)

選用。清單類型。

items[]

object (ListItem)

選用。清單項目。

ListType

清單類型。

列舉
LIST_TYPE_UNSPECIFIED 未指定清單類型。
UNORDERED 未排序的清單。
ORDERED_NUMBER 已排序的編號清單。
ORDERED_ALPHA 依字母排序的清單。

ListItem

清單中的項目。

JSON 表示法
{
  "text": string,
  "subItems": [
    {
      object (ListItem)
    }
  ]
}
欄位
text

string

選用。清單項目的文字。

subItems[]

object (ListItem)

選用。巢狀子項目。

MediaPart

媒體元件。

JSON 表示法
{
  "uri": string,
  "alternativeText": string
}
欄位
uri

string

選用。媒體的 URI 或網址。

alternativeText

string

選用。替代文字說明。

LinkPart

連結部分。

JSON 表示法
{
  "text": string,
  "uri": string
}
欄位
text

string

選用。錨定文字或顯示文字。

uri

string

選用。目標 URI。

CitationPart

引用內容的一部分。

JSON 表示法
{
  "sourceUri": string,
  "sourceTitle": string,
  "snippet": string
}
欄位
sourceUri

string

選用。引用來源 URI。

sourceTitle

string

選用。引用來源的標題。

snippet

string

選用。引用文字片段。

CustomPayloadPart

自訂酬載部分。

JSON 表示法
{
  "payloadType": string,
  "payload": {
    object
  }
}
欄位
payloadType

string

選用。酬載的類型 ID。

payload

object (Struct format)

選用。任意結構化酬載。

ConversationSummarizationSuggestionData

對話摘要建議資料。

JSON 表示法
{
  "text": string,
  "textSections": {
    string: string,
    ...
  },
  "confidence": number,
  "metadata": {
    string: string,
    ...
  },
  "answerRecord": string,
  "conversationModel": string,
  "generatorId": string
}
欄位
text

string

串連成單一字串的摘要內容。

textSections

map (key: string, value: string)

摘要內容會分成多個部分。鍵是區段名稱,值是區段內容。鍵或值沒有特定格式。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

confidence

number

摘要的可信度分數。

metadata

map (key: string, value: string)

包含摘要和來源文件相關中繼資料的地圖。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

answerRecord

string

答案記錄的名稱。格式:projects/{project}/locations/{location}/answerRecords/{answerRecord}

conversationModel

string

生成這份摘要的模型名稱。格式:projects/{project}/locations/{location}/conversationModels/{conversationModel}

generatorId

string

Agent Assist 生成器 ID。

RuntimeAnnotation

在客戶與服務專員互動期間產生的註解。

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

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

string

註解的專屬 ID。格式:projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation}

createTime

string (Timestamp format)

建立這項註解的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

startBoundary

object (AnnotationBoundary)

對話中註解開始的邊界 (含)。

endBoundary

object (AnnotationBoundary)

對話中註解結束的邊界 (含)。

answerFeedback

object (AnswerFeedback)

客戶對 data 中答案的意見回饋。

userInput

object (UserInput)

用於生成答案的明確輸入內容

註解中的資料。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
articleSuggestion

object (ArticleSuggestionData)

Agent Assist 文章建議資料。

faqAnswer

object (FaqAnswerData)

Agent Assist 常見問題解答資料。

smartReply

object (SmartReplyData)

Agent Assist 智慧回覆資料。

smartComposeSuggestion

object (SmartComposeSuggestionData)

Agent Assist 智慧撰寫建議資料。

dialogflowInteraction

object (DialogflowInteractionData)

Dialogflow 互動資料。

conversationSummarizationSuggestion

object (ConversationSummarizationSuggestionData)

對話摘要建議資料。

cesTurnAnnotation

object (CesTurnAnnotation)

CES 回合註解。

cesEndSessionAnnotation

object (CesEndSessionAnnotation)

CES 結束工作階段註解。

互斥欄位結束。

ArticleSuggestionData

Agent Assist 文章建議資料。

JSON 表示法
{
  "title": string,
  "uri": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string,
  "source": string
}
欄位
title

string

文章標題。

uri

string

文章 URI。

confidenceScore

number

系統對這篇文章是否適合這段對話的信心分數,範圍從 0.0 (完全不確定) 到 1.0 (完全確定)。

metadata

map (key: string, value: string)

包含文章建議和來源文件相關中繼資料的地圖。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

queryRecord

string

答案記錄的名稱。格式:projects/{project}/locations/{location}/answerRecords/{answerRecord}

source

string

擷取這項答案的知識文件。格式:projects/{project}/knowledgeBases/{knowledgeBase}/documents/{document}

FaqAnswerData

Agent Assist 常見問題解答資料。

JSON 表示法
{
  "answer": string,
  "confidenceScore": number,
  "question": string,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string,
  "source": string
}
欄位
answer

string

source 知識庫文件中的文字片段。

confidenceScore

number

系統對這個答案是否符合這段對話的信心分數,範圍從 0.0 (完全不確定) 到 1.0 (完全確定)。

question

string

對應的常見問題。

metadata

map (key: string, value: string)

包含常見問題解答和來源文件相關中繼資料的地圖。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

queryRecord

string

答案記錄的名稱。格式:projects/{project}/locations/{location}/answerRecords/{answerRecord}

source

string

擷取這項答案的知識文件。格式:projects/{project}/knowledgeBases/{knowledgeBase}/documents/{document}。

SmartReplyData

Agent Assist 智慧回覆資料。

JSON 表示法
{
  "reply": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string
}
欄位
reply

string

回覆內容。

confidenceScore

number

系統對這則回覆與這段對話相符程度的信心分數,範圍介於 0.0 (完全不確定) 到 1.0 (完全確定) 之間。

metadata

map (key: string, value: string)

包含智慧回覆和來源文件相關中繼資料的地圖。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

queryRecord

string

答案記錄的名稱。格式:projects/{project}/locations/{location}/answerRecords/{answerRecord}

SmartComposeSuggestionData

Agent Assist 智慧撰寫建議資料。

JSON 表示法
{
  "suggestion": string,
  "confidenceScore": number,
  "metadata": {
    string: string,
    ...
  },
  "queryRecord": string
}
欄位
suggestion

string

建議內容。

confidenceScore

number

系統對這項建議與這段對話相符程度的信心分數,範圍從 0.0 (完全不確定) 到 1.0 (完全確定)。

metadata

map (key: string, value: string)

包含智慧撰寫建議和來源文件相關中繼資料的地圖。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

queryRecord

string

答案記錄的名稱。格式:projects/{project}/locations/{location}/answerRecords/{answerRecord}

DialogflowInteractionData

Dialogflow 互動資料。

JSON 表示法
{
  "dialogflowIntentId": string,
  "confidence": number
}
欄位
dialogflowIntentId

string

Dialogflow 意圖資源路徑。格式:projects/{project}/agent/{agent}/intents/{intent}

confidence

number

比對結果的信賴度,範圍從 0.0 (完全不確定) 到 1.0 (完全確定)。

CesTurnAnnotation

CES 診斷資訊。

JSON 表示法
{
  "messages": [
    {
      object (Message)
    }
  ],
  "rootSpan": {
    object (Span)
  }
}
欄位
messages[]

object (Message)

對話中的訊息。

rootSpan

object (Span)

動作處理的根 span。

CesEndSessionAnnotation

CES 結束工作階段註解。

JSON 表示法
{
  "endSession": {
    object (EndSession)
  }
}
欄位
endSession

object (EndSession)

CES 傳送的結束工作階段信號。

AnswerFeedback

顧客對對話中特定回覆的意見。

JSON 表示法
{
  "correctnessLevel": enum (CorrectnessLevel),
  "clicked": boolean,
  "displayed": boolean
}
欄位
correctnessLevel

enum (CorrectnessLevel)

答案的正確程度。

clicked

boolean

指出真人服務專員是否點選了答案或項目。

displayed

boolean

指出是否在服務專員桌面 UI 中,向真人服務專員顯示答案或項目。

CorrectnessLevel

答案的正確程度。

列舉
CORRECTNESS_LEVEL_UNSPECIFIED 未指定正確性等級。
NOT_CORRECT 答案完全錯誤。
PARTIALLY_CORRECT 部分正確。
FULLY_CORRECT 答案完全正確。

UserInput

用於生成答案的明確輸入內容

JSON 表示法
{
  "query": string,
  "generatorName": string,
  "querySource": enum (QuerySource)
}
欄位
query

string

查詢文字。文章搜尋會使用這個變數,儲存用來產生搜尋結果的輸入查詢。

generatorName

string

相關聯生成器的資源名稱。格式:projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

querySource

enum (QuerySource)

答案的查詢來源。

QuerySource

查詢來源。

列舉
QUERY_SOURCE_UNSPECIFIED 不明查詢來源。
AGENT_QUERY 查詢來自代理。
SUGGESTED_QUERY 查詢是來自先前建議的查詢,例如來自先前的 suggestions.suggestKnowledgeAssist 回應。

DialogflowIntent

Dialogflow 意圖的資料。代表在對話中偵測到的意圖,例如 MAKES_PROMISE。

JSON 表示法
{
  "displayName": string
}
欄位
displayName

string

人類可讀的意圖名稱。

CorrelationInfo

用於關聯對話的資訊。

JSON 表示法
{
  "fullConversationCorrelationId": string,
  "mergedFullConversationCorrelationId": string,
  "correlationTypes": [
    enum (CorrelationType)
  ]
}
欄位
fullConversationCorrelationId

string

僅供輸出。這段對話所屬完整對話的關聯性 ID。

mergedFullConversationCorrelationId

string

僅供輸出。這個對話合併自其他對話,此為完整對話關聯性 ID。

correlationTypes[]

enum (CorrelationType)

僅供輸出。這段對話的關聯類型。單一對話可以有多個關聯類型。舉例來說,如果對話只有一個片段,則同時是 SEGMENT 和 FULL_CONVERSATION。

CorrelationType

對話的關聯類型。

列舉
CORRELATION_TYPE_UNSPECIFIED 未指定時的預設值。
SEGMENT 這段對話是完整對話的一部分。精細程度最低。
PARTIAL 這段對話代表可能有多個片段的部分對話,但並非完整對話。
FULL 這段對話代表完整對話,可能包含多個片段。
SYNTHETIC 這段對話為合成對話。

方法

calculateStats

取得對話統計資料。

delete

刪除對話。

generateSignedAudio

取得指定對話的音訊簽署 URI。

get

取得對話。

list

列出對話。