企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**转接事件** #### 客服发送转接请求 (转给新客服) ``` { "event": "transfer", "data": { "user_id": 1, // 用户id "kefu_id": 1 // 新客服id } } ``` #### 原客服收到转接事件回调信息 ``` { "event": "transfer", "data": { "status": "send_success" } } ``` #### 新客服收到有用户转接 ``` { "event": "transfer", "data": { "status": "get_success", "user": { "avatar": "/static/common/image/default/user.png", "client": 6, "create_time": "2021-12-16 18:07:09", "id": 8, "kefu_id": 1, "msg": "", "msg_type": 1, "nickname": "用户06939625", "online": 1, "shop_id": 0, "update_time": "2021-12-17 15:47:38", "user_id": 82 } } } ``` #### 用户收到转接通知 ``` { "event": "transfer", "data": { "avater": "/static/common/image/default/user.png", // 客服头像 "nickname": "小明", // 客服昵称 "id": 1 // 客服id } } ``` #### 用户收到(客服xxx为你服务)通知 ``` { "event": "chat", "data": { "shop_id": 6, "from_id": 4, "from_type": "user", "to_id": 2, "to_type": "kefu", "msg": "你好啊", "msg_type": 1, "is_read": 1, "create_time": "2021-12-15 14:23:54", "update_time": 1639549434, "id": "198", "from_avatar": "http://likeshopb2b2cchat.yixiangonline.com/uploads/user/avatar/e36c36040fc0a985bdaf31672a6afc93.jpeg", "from_nickname": "Jason", "create_time_stamp": 1639549434, "goods": [] } } ```