# bytedesk-flutter
**Repository Path**: stevent095/bytedesk-flutter
## Basic Information
- **Project Name**: bytedesk-flutter
- **Description**: 微语 flutter sdk
- **Primary Language**: Dart
- **License**: AGPL-3.0
- **Default Branch**: master
- **Homepage**: https://ai.bytedesk.com/
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 12
- **Created**: 2024-11-29
- **Last Updated**: 2024-11-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 微语 Flutter SDK
- [pub.dev](https://pub.dev/packages/bytedesk_kefu)
- [萝卜丝->请切换此分支](https://gitee.com/270580156/bytedesk-flutter/tree/luobosi/)
## 语言
- [English](./README.md)
- [中文](./README.zh.md)
## 部分功能
- SDK源码100%开源
- 支持安卓、iOS、Web、Mac、Windows
- 机器人对话
- 技能组客服
- 一对一客服
- 支持发送电商商品信息(支持点击商品回调)
- 支持发送附言消息
- 对接APP用户信息(昵称/头像)
- 获取当前客服在线状态
- 获取历史会话
- 消息提示音/振动设置
- 消息送达/已读
- 消息撤回
- 输入状态(对方正在输入)
- 发送/播放视频
- 查询未读消息数
- 支持绑定第三方账号及多账号切换
## Demo 下载
- [Gitee Demo](https://gitee.com/270580156/bytedesk-flutter)
- [Github Demo](https://github.com/Bytedesk/bytedesk-flutter)
## 集成步骤
### 第一步
- 微语 pubspec.yaml添加:bytedesk_kefu: ^2.0.0
- [注册账号](https://www.weiyuai.cn/admin/)
- 复制SDK中assets文件夹到自己项目中,并配置pubspec.yaml文件
```dart
# 添加下面3条
assets:
- assets/audio/
- assets/images/chat/
- assets/images/feedback/
```
### 第二步:初始化
```dart
// 获取企业uid,登录后台->客服->渠道->flutter
// http://www.weiyuai.cn/admin/cs/channel
String orgUid = "df_org_uid";
// 第一步:初始化
BytedeskKefu.init(orgUid);
```
### 第三步:联系客服
- 获取技能组workGroupWid:登录后台->客服管理->技能组->唯一wid
- BytedeskKefu.startWorkGroupChat(context, workGroupWid, "技能组客服wid");
### 集成完毕
| image1 | image2 | image3 |
| :----------: | :----------: | :----------: |
|
|
|
|
|
|
|
|
|
|
|
|
## 以下步骤为非必须步骤,开发者可根据需要调用
### 自定义界面
- 项目中创建文件夹: vendors
- 将 bytedesk_kefu 文件夹放在 vendors 文件夹中
- pubspect.yaml中填写引用本地源码
```dart
bytedesk_kefu:
path: ./vendors/bytedesk_kefu
```
## 对话SDK
| Project | Description | Forks | Stars |
|-------------|-----------------------|----------------|-------------------|
| [iOS-swift](https://github.com/bytedesk/bytedesk-swift) | iOS swift |  |  |
| [Android](https://github.com/bytedesk/bytedesk-android) | Android |  |  |
| [Flutter](https://github.com/bytedesk/bytedesk-flutter) | Flutter | |  |
| [React](https://github.com/bytedesk/bytedesk-react) | React |  |  |
| [UniApp](https://github.com/bytedesk/bytedesk-uniapp) | Uniapp |  |  |
| [Web/Vue](https://github.com/bytedesk/bytedesk-web) | Web/Vue |  |  |
## 客户端
- [Windows](https://www.weiyuai.cn/download.html)
- [Mac](https://www.weiyuai.cn/download.html)
- [Linux](https://www.weiyuai.cn/download.html)
- [Android](https://www.weiyuai.cn/download.html)
- [IOS](https://www.weiyuai.cn/download.html)
## 技术栈
- [springboot-3.x for 后端](https://github.com/Bytedesk/bytedesk)
- [python for ai](https://github.com/Bytedesk/bytedesk-ai)
- [react for web前端](https://github.com/Bytedesk/bytedesk-react)
- [flutter for 移动客户端(ios&android)](https://github.com/Bytedesk/bytedesk-mobile)
- [electron for 桌面客户端(windows&mac&linux)](https://github.com/Bytedesk/bytedesk-desktop)
## 联系
- [Email](mailto:270580156@qq.com)
- [微信](./images/wechat.png)