|
|
|
|
# 萝卜丝客服SDK
|
|
|
|
|
|
|
|
|
|
萝卜丝(bytedesk) flutter 客服SDK
|
|
|
|
|
|
|
|
|
|
## 部分功能
|
|
|
|
|
|
|
|
|
|
- 机器人对话
|
|
|
|
|
- 技能组客服
|
|
|
|
|
- 一对一客服
|
|
|
|
|
- 支持发送电商商品信息
|
|
|
|
|
- 支持发送附言消息
|
|
|
|
|
- 对接APP用户信息(昵称/头像)
|
|
|
|
|
- 获取当前客服在线状态
|
|
|
|
|
- 获取历史会话
|
|
|
|
|
- 消息提示音/振动设置
|
|
|
|
|
- 消息送达/已读
|
|
|
|
|
- 消息撤回
|
|
|
|
|
- 输入状态(对方正在输入)
|
|
|
|
|
- 发送/播放视频
|
|
|
|
|
<!-- - 提交工单 -->
|
|
|
|
|
<!-- - 意见反馈 -->
|
|
|
|
|
|
|
|
|
|
## 注意
|
|
|
|
|
|
|
|
|
|
- 修改安卓 android/build.gradle
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Android
|
|
|
|
|
buildscript {
|
|
|
|
|
...
|
|
|
|
|
dependencies {
|
|
|
|
|
classpath 'com.android.tools.build:gradle:3.5.4'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 集成步骤
|
|
|
|
|
|
|
|
|
|
### 第一步
|
|
|
|
|
|
|
|
|
|
- pubspec.yaml添加:bytedesk_kefu: ^最近版本号
|
|
|
|
|
<!-- - 最新版本:[![Pub](https://img.shields.io/pub/v/bytedesk_kefu.svg)](https://pub.dev/packages/bytedesk_kefu) -->
|
|
|
|
|
- [![pub package](https://img.shields.io/pub/v/bytedesk_kefu.svg)](https://pub.dev/packages/bytedesk_kefu) | [![pub points](https://badges.bar/bytedesk_kefu/pub%20points)](https://pub.dev/packages/bytedesk_kefu/score) | [![popularity](https://badges.bar/bytedesk_kefu/popularity)](https://pub.dev/packages/bytedesk_kefu/score) | [![likes](https://badges.bar/bytedesk_kefu/likes)](https://pub.dev/packages/bytedesk_kefu/score)
|
|
|
|
|
- [注册账号](https://www.bytedesk.com/antv/user/login)
|
|
|
|
|
- 获取appkey,登录后台->客服管理->渠道管理->添加应用->appkey
|
|
|
|
|
- 获取subDomain,也即企业号:登录后台->客服管理->客服账号->企业号
|
|
|
|
|
- 获取技能组workGroupWid
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# pubspec.yaml添加
|
|
|
|
|
#注意:pull_to_refresh: 1.6.4不兼容,故强制依赖1.6.3
|
|
|
|
|
dependency_overrides:
|
|
|
|
|
pull_to_refresh: 1.6.3
|
|
|
|
|
```
|
|
|
|
|
### 第二步:初始化
|
|
|
|
|
|
|
|
|
|
- BytedeskKefu.init(_appKey, _subDomain);
|
|
|
|
|
|
|
|
|
|
### 第三步:联系客服
|
|
|
|
|
|
|
|
|
|
- BytedeskKefu.startWorkGroupChat(context, workGroupWid, "技能组客服");
|
|
|
|
|
|
|
|
|
|
### 集成完毕
|
|
|
|
|
|
|
|
|
|
| image1 | image2 | image3 |
|
|
|
|
|
| :----------: | :----------: | :----------: |
|
|
|
|
|
| <img src="./home.jpeg" width="250"> | <img src="./robot.jpeg" width="250"> | <img src="./notice.jpeg" width="250"> |
|
|
|
|
|
| <img src="./chat.png" width="250"> | <img src="./shop.png" width="250"> |<img src="./postscript.png" width="250"> |
|
|
|
|
|
| <img src="./status.jpeg" width="250"> |<img src="./userinfo.jpeg" width="250"> ||
|
|
|
|
|
|
|
|
|
|
## 公众号
|
|
|
|
|
|
|
|
|
|
<img src="./luobosi_mp.png?raw=true" width="250">
|
|
|
|
|
|
|
|
|
|
### 其他
|
|
|
|
|
|
|
|
|
|
- [下载 ApkDemo](https://bytedesk.oss-cn-shenzhen.aliyuncs.com/apk/bytedesk-android-sdk-demo.apk)
|
|
|
|
|
- 技术支持QQ 3群: 825257535
|
|
|
|
|
|
|
|
|
|
- [Flutter SDK](https://github.com/bytedesk/bytedesk-flutter)
|
|
|
|
|
- [UniApp SDK](https://github.com/bytedesk/bytedesk-uniapp)
|
|
|
|
|
- [iOS SDK](https://github.com/bytedesk/bytedesk-ios)
|
|
|
|
|
- [Android SDK](https://github.com/bytedesk/bytedesk-android)
|
|
|
|
|
- [Web端接口](https://github.com/bytedesk/bytedesk-web)
|
|
|
|
|
- [微信公众号/小程序接口](https://github.com/bytedesk/bytedesk-wechat)
|
|
|
|
|
- [服务器端接口](https://github.com/bytedesk/bytedesk-server)
|
|
|
|
|
- [机器人](https://github.com/bytedesk/bytedesk-chatbot)
|