Skip to content

Commit 26c3cc7

Browse files
author
lrhh123
committed
Merge branch 'main' of github.com-lrhh123:lrhh123/ChatGPT-On-CS
2 parents bc7e3a2 + 4b7f1a4 commit 26c3cc7

File tree

2 files changed

+133
-24
lines changed

2 files changed

+133
-24
lines changed

README.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
## 懒人客服简介
2-
本项目是基于大模型的智能对话客服工具,支持微信、千牛、哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台接入,可选择 GPT3.5/GPT4.0/ [懒人百宝箱](https://chat.lazaytools.top/) (后续会支持更多平台),能处理文本、语音和图片,通过插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业 AI 应用。
1+
## 懒人客服
2+
[English](README_EN.md) · **中文**
3+
4+
本项目是基于大模型的智能对话客服工具,支持微信、千牛、哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台接入,可选择 GPT3.5/GPT4.0(后续会支持更多平台),能处理文本、语音和图片,通过插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业 AI 应用.
35

46
注:本项目只是一个用于对接外部平台的客服工具,不提供任何平台的账号,需要自行准备。并且知识库功能也需要自行准备,该项目目前只支持的 OpenAI 的 API 接口(或代理)接入
57

68
* [GitHub] https://github.com/lrhh123/ChatGPT-On-CS
7-
* [Gitee] https://gitee.com/alsritter/ChatGPT-On-CS (国内用户推荐)
9+
* [Gitee] https://gitee.com/alsritter/ChatGPT-On-CS · (国内用户推荐)
810

911
## 主要功能
10-
- [x] 多平台支持:当前支持哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台,未来将不断扩展支持更多社交媒体平台
11-
- [x] 预设回复内容:允许用户设置自定义回复,以应对常见问题,提高回复效率
12-
- [x] 接入ChatGPT接口,根据客户的咨询内容智能生成回复,适用于处理复杂或者个性化的客户咨询
13-
- [x] 发送图片和二进制文件:支持发送图片等二进制文件,满足多样化的客户服务需求
14-
- [x] 知识库: 通过上传知识库文件自定义专属机器人,可作为数字分身、智能客服、私域助手使用,基于 [懒人百宝箱](https://chat.lazaytools.top/) 实现
15-
- [x] 各个平台独立的插件系统,支持插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业 AI 应用
12+
- [x] 多平台支持:当前支持微信、千牛、哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台,未来将不断扩展支持更多社交媒体平台.
13+
- [x] 预设回复内容:允许用户设置自定义回复,以应对常见问题,提高回复效率.
14+
- [x] 接入ChatGPT接口,根据客户的咨询内容智能生成回复,适用于处理复杂或者个性化的客户咨询.
15+
- [x] 发送图片和二进制文件:支持发送图片等二进制文件,满足多样化的客户服务需求.
16+
- [x] 知识库: 通过上传知识库文件自定义专属机器人,可作为数字分身、智能客服、私域助手使用.
17+
- [x] 各个平台独立的插件系统,支持插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业 AI 应用.
1618

1719

1820
## 演示视频
@@ -25,7 +27,7 @@
2527

2628
<!--
2729
## 商业支持
28-
我们还提供企业级的 AI应用平台,包含知识库、Agent插件、应用管理等能力,支持多平台聚合的应用接入、客户端管理、对话管理,以及提供 SaaS服务、私有化部署、稳定托管接入 等多种模式
30+
我们还提供企业级的 AI应用平台,包含知识库、Agent插件、应用管理等能力,支持多平台聚合的应用接入、客户端管理、对话管理,以及提供 SaaS服务、私有化部署、稳定托管接入 等多种模式.
2931
3032
目前已在私域运营、智能客服、企业效率助手等场景积累了丰富的 AI 解决方案, 在电商、文教、健康、新消费等各行业沉淀了 AI 落地的最佳实践,致力于打造助力中小企业拥抱 AI 的一站式平台。 企业服务和商用咨询可联系产品顾问:
3133
@@ -44,52 +46,54 @@
4446
```
4547

4648
## 使用说明
47-
第一次启动时可能会有点慢,因为它需要先下载驱动文件和初始化回复数据库,所以请耐心等待
49+
第一次启动时可能会有点慢,因为它需要先下载驱动文件和初始化回复数据库,所以请耐心等待.
4850

4951
### 1、设置 GPT 地址
5052

51-
启动程序后,点击设置按钮,设置好你的 OpenAPI Key 和 代理服务器地址,然后点击保存
53+
启动程序后,点击设置按钮,设置好你的 OpenAPI Key 和 代理服务器地址,然后点击保存.
5254

5355
![alt text](docs/first_settings_1.png)
5456

5557
![alt text](docs/first_settings_2.png)
5658

5759

5860
### 2、首页操作说明
59-
首先可以看到首页这里的 “连接” 项,有两个勾选框,默认是暂停软件的,如果你想让软件开始工作,就把这个勾选框去掉
61+
首先可以看到首页这里的 “连接” 项,有两个勾选框,默认是暂停软件的,如果你想让软件开始工作,就把这个勾选框去掉
6062

6163
![alt text](docs/home_settings_1.png)
6264

63-
当第一次打开时,默认是没有任何的登录态的,所以会需要你手动暂停一下,然后登录后再,再取消勾选暂停,让它开始工作
65+
当第一次打开时,默认是没有任何的登录态的,所以会需要你手动暂停一下,然后登录后再,再取消勾选暂停,让它开始工作
6466

6567
![alt text](docs/home_settings_2.png)
6668

67-
自动回复开启后它就会读取你下面勾选的平台,自动打开该页面开始工作。注意上面部分的勾选框无法点击,是因为作者没有相关平台的账号,所以无法登录调试该平台的信息,如果你有相关平台的账号并且想要支持该平台的自动回复可以联系上面的客服
69+
自动回复开启后它就会读取你下面勾选的平台,自动打开该页面开始工作。注意上面部分的勾选框无法点击,是因为作者没有相关平台的账号,所以无法登录调试该平台的信息,如果你有相关平台的账号并且想要支持该平台的自动回复,可以联系上面的客服.
6870

6971
### 3、关键词的编写
70-
当上面的 “开启关键词匹配” 勾选后,会优先匹配这里设置的关键词,如果匹配到了关键词,就会回复关键词的回复内容,当没有匹配上关键词的问题,则会调用你提供的 ChatGPT API 去询问 GPT 回答用户问题
72+
当上面的 “开启关键词匹配” 勾选后,会优先匹配这里设置的关键词,如果匹配到了关键词,就会回复关键词的回复内容,当没有匹配上关键词的问题,则会调用你提供的 ChatGPT API 去询问 GPT 回答用户问题.
7173

7274
![alt text](docs/reply_settings_1.png)
7375

74-
点击 “新增关键词” 按钮可以自定义关键词和回复内容
76+
点击 “新增关键词” 按钮可以自定义关键词和回复内容.
7577

7678
![alt text](docs/reply_settings_2.png)
7779

7880
可以添加若干个用于匹配的关键词
7981

80-
关键词的编写规则是,如果只写 `你好`,那么只要用户输入的内容为 `你好` 时则会回复你设置的回复内容。如果想要模糊匹配可以使用 `*` 符号,例如 `你好*`,那么只要用户输入的内容以 `你好` 开头就会回复你设置的回复内容。
82+
**关键词的编写规则**
83+
- `你好`:只要用户输入的内容为`你好`时则会回复你设置的回复内容.
8184

82-
同理,如果你设置的关键词为 `*你好*`那么只要用户输入的内容中包含 `你好` 就会回复你设置的回复内容。
85+
- `你好*`:模糊匹配使用 `*` 符号,例如 `你好*`那么只要用户输入的内容以 `你好` 开头就会回复你设置的回复内容.
8386

84-
比较特殊的,如果使用下面的 “开始关键词” 和 “结束关键词” 时,那么只要用户输入的内容以 “开始关键词” 开头,并且以 “结束关键词” 结尾,就能匹配上你设置的关键词。
87+
- `*你好*`:设置的关键词为 `*你好*`,那么只要用户输入的内容中包含 `你好` 就会回复你设置的回复内容.
8588

89+
**比较特殊的**:如果使用下面的 “开始关键词” 和 “结束关键词” 时,那么只要用户输入的内容以 “开始关键词” 开头,并且以 “结束关键词” 结尾,就能匹配上你设置的关键词.
8690

8791
### 4、回复的编写
88-
一条关键词规则可以对应多条回复内容,当匹配到关键词时,会随机选择一条作为回复内容
92+
- `关键词规则:`可以对应多条回复内容,当匹配到关键词时,会随机选择一条作为回复内容.
8993

90-
这里的 “插入随肌符” 是因为在拼多多平台等平台,是不允许每次重复一个回答的,所以可以插入一个随机符,以规避这个问题
94+
- `插入随机符:` 是因为在拼多多平台等平台,是不允许每次重复一个回答的,所以可以插入一个随机符,以规避这个问题.
9195

92-
这里的 “插入文件 则主要是用于插入图片,可以插入图片的链接,这样就可以回复图片了
96+
- `插入文件` 则主要是用于插入图片,可以插入图片的链接,这样就可以回复图片了
9397

9498
### 5、平台独立的 ChatGPT API 设置
9599
有时候,我们可能需要针对不同的平台设置不同的 ChatGPT API 地址,这时候就可以在这里设置。你可以基于 [懒人百宝箱](https://chat.lazaytools.top/) 实现自己的知识库,然后设置到这里。
@@ -112,4 +116,3 @@
112116
## 项目计划
113117
- [ ] 支持拼多多、淘宝、京东等电商平台(如果急需可以私聊小助手)
114118
- [ ] 支持本地模型的加载
115-

README_EN.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Lazy customer service
2+
**English** · [中文](README.md)
3+
4+
This project is an intelligent customer service tool based on large models, supporting access to platforms such as WeChat, Taobao, Bilibili, Douyin Enterprise Account, Douyin, Douyin Store, Weibo Chat, Xiaohongshu Professional Account Operation, Xiaohongshu, Zhihu, etc. It can choose GPT3.5/GPT4.0 (more platforms will be supported in the future), handle text, voice, and images, access external resources such as operating systems and the Internet through plugins, and support customization of enterprise AI applications based on its own knowledge base.
5+
6+
**Note** : This project is just a customer service tool for connecting to external platforms and does not provide any platform accounts, which need to be prepared by yourself. Additionally, the knowledge base function also needs to be prepared by yourself. Currently, this project only supports integration with OpenAI's API interface (or proxy).
7+
8+
* [GitHub] https://github.com/lrhh123/ChatGPT-On-CS
9+
* [Gitee] https://gitee.com/alsritter/ChatGPT-On-CS · (国内用户推荐)
10+
11+
# Main function
12+
- [x] Multi-platform support: Currently supports platforms such as WeChat, Taobao, Bilibili, Douyin Enterprise Account, Douyin, Dou Store, Weibo Chat, Xiaohongshu Professional Account Management, Xiaohongshu, Zhihu, and more. Will continue to expand support for more social media platforms in the future.
13+
- [x] Default reply content: Allows users to set custom replies to solve common issues and improve response efficiency.
14+
- [x] Access to the ChatGPT interface, generates replies intelligently based on customer inquiries, suitable for handling complex or personalized customer inquiries.
15+
- [x] Sending images and binary files: Supports sending images and other binary files to meet the customer service needs of simulators.
16+
- [x] Knowledge base: Customize the robot by uploading knowledge base files, can be used as a digital clone, intelligent customer service, or private domain assistant.
17+
- [x] Each platform has an independent plugin system, supports plugins accessing external resources such as the internet, and supports enterprise AI applications customized based on proprietary knowledge bases.
18+
19+
# Presentation video
20+
[Watch video](https://www.bilibili.com/video/BV1qz421Q73S)
21+
22+
# Open source community
23+
If you have any feedback or features you would like to support for the project, you can add the assistant's WeChat to join the open source project discussion group:
24+
25+
![微信扫码添加客服](docs/contact.png)
26+
27+
<!--
28+
29+
# Business support
30+
We also provide an enterprise-level AI application platform, including capabilities such as knowledge base, Agent plugins, application management, supporting multi-platform aggregated application access, client management, conversation management, and providing various modes such as SaaS services, private deployment, stable hosting access, etc.
31+
32+
Currently, we have accumulated rich AI solutions in scenarios such as private domain operation, intelligent customer service, and enterprise efficiency assistants. We have also developed best practices for AI implementation in various industries such as e-commerce, education, health, and new consumption. We are committed to building a one-stop platform to help small and medium-sized enterprises embrace AI. For enterprise services and commercial consulting, please contact our product consultants.
33+
34+
![微信扫码添加客服](docs/contact.png) -->
35+
36+
# Download link
37+
<a href="https://github.com/lrhh123/ChatGPT-On-CS/releases/download/v1.0.2/1.0.2.exe" style="display: inline-block; background-color: #008CBA; color: white; padding: 10px 20px; text-align: center; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 4px 2px; cursor: pointer;">download</a>
38+
39+
# Instructions
40+
The first startup may be a bit slow as it needs to download driver files and initialize the reply database, so please be patient.
41+
42+
### 1. Set up GPT Address
43+
After launching the program, click on the settings button, set up your OpenAPI Key and proxy server address, then click save.
44+
45+
![alt text](docs/first_settings_1.png)
46+
47+
![alt text](docs/first_settings_2.png)
48+
49+
### 2. Instructions for Homepage Operations
50+
First, you can see the "Connection" section on the homepage, with two checkboxes. By default, the software is paused. If you want the software to start working, uncheck this checkbox.
51+
52+
![alt text](docs/home_settings_1.png)
53+
54+
When first opened, it defaults to not being logged in. So, you need to manually pause it, then log in, and then uncheck the pause to start working.
55+
56+
![alt text](docs/home_settings_2.png)
57+
58+
After enabling automatic replies, it will read the platforms you have selected below and automatically open those pages to start working. Note that the checkboxes above cannot be clicked because the author does not have accounts for those platforms, so they cannot debug the platform's information. If you have accounts for these platforms and need support for automatic replies, please contact the customer service above.
59+
60+
### 3. Writing Keywords
61+
When the "Enable Keyword Matching" above is checked, it will prioritize matching the keywords set here. If a keyword is matched, it will reply with the corresponding reply. If no keyword is matched, it will call on you to provide the ChatGPT API at the bottom to ask GPT to answer the user's question.
62+
63+
![alt text](docs/reply_settings_1.png)
64+
65+
Clicking the "Add Keyword" button allows you to customize keywords and reply content.
66+
67+
![alt text](docs/reply_settings_2.png)
68+
69+
You can add several matching keywords.
70+
71+
**Writing Rule Keywords**
72+
- `Hello`:It will reply with the response you set whenever the user inputs "Hello".
73+
74+
- `Hello*`:For fuzzy matching using the * symbol. For example, "Hello*", whenever the user inputs something like "Hello", it will reply with the response you set.
75+
76+
- `*Hello*`:If the set keyword is "Hello", then whenever the user's input contains
77+
78+
**Special Case**: If you use the "Start Keyword" and "End Keyword" below, then the user's input only needs to start with the "Start Keyword" and end with the "End Keyword" to match the keywords you've set up.
79+
80+
### 4. Writing Replies
81+
- `Keyword rules:`You can correspond to multiple reply contents. When a keyword is matched, it will randomly select one as the reply content.
82+
83+
- `Insert random symbols:` This is because platforms like Pinduoduo do not allow repeating the same answer each time, so you can insert a random symbol to avoid this issue.
84+
85+
- `Insert file:` This is mainly used for inserting images. You can insert the link to an image, allowing you to reply with a picture.
86+
87+
### 5. Platform Independent ChatGPT API Settings
88+
Sometimes, we might need to set different ChatGPT API addresses for different platforms. You can do this here. You can create your own knowledge base based on [Lazy person's treasure trove](https://chat.lazaytools.top/) and then set it here.
89+
90+
![alt text](docs/other_settings_1.png)
91+
92+
When a platform-specific ChatGPT API address is set, it will prioritize using this address to call the ChatGPT API. If not set, it will use the global ChatGPT API address set above.
93+
### 6. Customer Service Related Settings
94+
![alt text](docs/other_settings_2.png)
95+
96+
**Extract Information**: When selected for extracting phone numbers or querying product names, it will extract the phone number or product name from the user's message and store it in the path below.
97+
98+
**Wait for Reply Time**: After a user sends a message, it will wait this long before replying. If you want an immediate reply, you can set this value to zero.
99+
100+
**Context Message Count**: When using the ChatGPT API, it will take a specified number of chat contexts to call the ChatGPT API, helping the ChatGPT API better understand the user's questions. Note that the larger this value, the slower the call to the ChatGPT API.
101+
102+
**Wait for Manual Interval**: When encountering ChatGPT blocking, it will wait this long before terminating the automatic customer service task and transferring it to manual customer service for manual processing.
103+
104+
## Project Plan
105+
- [ ] Support platforms such as Pinduoduo, Taobao, JD.com, and other e-commerce platforms (if urgent, please private message the assistant).
106+
- [ ] Support loading local models.

0 commit comments

Comments
 (0)