使用者傳送給服務專員的訊息。
UserMessage
會顯示在代理程式接收到 message
物件的 data
欄位中。data
欄位是採用 Base64 編碼的字串,代理程式必須轉換為位元組,並使用 UserMessage
通訊協定緩衝區剖析。
JSON 表示法 |
---|
{ "requestId": string, "conversationId": string, "customAgentId": string, "agent": string, "context": { object ( |
欄位 | |
---|---|
requestId |
使用者訊息的專屬 ID。這個欄位可用於刪除重複收到的郵件, |
conversationId |
對話的專屬 ID。 |
customAgentId |
代理程式的自訂 ID。合作夥伴在註冊服務專員時定義。 |
agent |
代理程式的 ID。在建立代理程式時設定。 |
context |
與訊息相關的內容比對資料。 |
sendTime |
傳送訊息的時間。 RFC3339 世界標準時間「Zulu」格式的時間戳記,採用奈秒解析度,且最多 9 個小數位數。範例: |
dialogflowResponse |
Dialogflow 回應。 |
聯集欄位 payload 。使用者訊息的酬載。payload 只能是下列其中一項: |
|
message |
訊息的內容。 |
receipts |
收據的內容。 |
userStatus |
使用者狀態的內容。 |
surveyResponse |
問卷調查回覆。 |
suggestionResponse |
建議回應。 |
authenticationResponse |
驗證回應。 |
UserStatus
使用者狀態。
JSON 表示法 |
---|
{ "createTime": string, // Union field |
欄位 | |
---|---|
createTime |
使用者狀態變更的時間。 RFC3339 世界標準時間「Zulu」格式的時間戳記,採用奈秒解析度,且最多 9 個小數位數。範例: |
聯集欄位
|
|
isTyping |
使用者是否在輸入訊息。 |
requestedLiveAgent |
使用者是否要求真人服務專員。 |