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

在对话中创建活动。