REST Resource: conversations.events

資源:事件

服務專員與使用者之間的對話中的事件。

JSON 表示法
{
  "name": string,
  "eventType": enum (EventType),
  "representative": {
    object (Representative)
  }
}
欄位
name

string

事件名稱,由 Business Messages 設定。解析為「conversations/{conversationId}/events/{eventId}」,其中 {conversationId} 是對話的專屬 ID,{eventId} 是事件的專屬 ID。

eventType

enum (EventType)

事件的類型。

representative

object (Representative)

傳送事件的代表 (真人或聊天機器人) 的詳細資料。

EventType

服務專員事件類型。

列舉
EVENT_TYPE_UNSPECIFIED 未指定。
TYPING_STARTED 代表正在輸入訊息。
TYPING_STOPPED 代表已停止輸入文字。
REPRESENTATIVE_JOINED 代表加入了對話。
REPRESENTATIVE_LEFT 代表已離開對話。

方法

create

在對話中建立事件。