Scope: SHOP_BA_CHAT 需要申请权限 需要用户授权
触发场景#
用户超时/客服关闭
公共参数#
| 参数名称 | 参数类型 | 参数描述 |
|---|---|---|
| event | string | 事件名 |
| timestamp | string | 事件发生时间标签 格式为yyyy-MM-dd HH:mm:ss(UTC+8) |
| content | struct | 具体消息结构体 |
消息字段#
| 参数名 | 类型 | 备注 |
|---|---|---|
| main_open_id | string | 主账号open_id,即授权账号 |
| user_open_id | string | 用户open_id |
| close_time | int | 关闭时间戳,秒级 |
| close_type | int | 会话关闭类型,1用户超时关闭,3客服主动关闭 |
| conversation_id | int | 会话id |
示例#
text
{
"content": {
"conversation_id": 115987617718784,
"close_type": 3,
"close_time": 1733405507,
"main_open_id": "d4a2b0d73cba4ceab6b835c5fc00a46a",
"user_open_id": "86345135749f4f36b3210bb0e517e431"
},
"event": "CLOSE_MSG",
"timestamp": "2024-12-01 00:00:00"
}