使用者傳送給服務專員的訊息。
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 | 
                
                   
 使用者是否要求與真人服務專員交談。  |