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

在對話中建立活動。