Bbili-open-mcpMCP
★

关闭消息

event#165CLOSE_MSGSHOP_BA_CHAT

Scope: `SHOP_BA_CHAT` 需要申请权限 需要用户授权

Scope: SHOP_BA_CHAT 需要申请权限 需要用户授权

触发场景#

用户超时/客服关闭

公共参数#

参数名称参数类型参数描述
eventstring事件名
timestampstring事件发生时间标签 格式为yyyy-MM-dd HH:mm:ss(UTC+8)
contentstruct具体消息结构体

消息字段#

参数名类型备注
main_open_idstring主账号open_id,即授权账号
user_open_idstring用户open_id
close_timeint关闭时间戳,秒级
close_typeint会话关闭类型,1用户超时关闭,3客服主动关闭
conversation_idint会话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"
}

原始文档:165_关闭消息.md(1489 字节)。用 bili_docs_get { "ref": "165" } 读全文,用 bili_docs_search { "query": "…" } 检索。