Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env.example

This file was deleted.

9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,11 @@ htmlcov/
.tox/
.nox/
.hypothesis/
.coverage.*
.coverage.*

# Node.js 相关
node_modules/
.next/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| 核心引擎 | ✅ LLM自动回复<br>✅ 上下文管理 | 🔄 情感分析增强 |
| 议价系统 | ✅ 阶梯降价策略 | 🔄 市场比价功能 |
| 技术支持 | ✅ 网络搜索整合 | 🔄 RAG知识库增强 |
| 运维监控 | ✅ 基础日志 | 🔄 钉钉集成<br>🔄 Web管理界面 |
| 运维监控 | ✅ 基础日志<br>✅ Web管理界面 | 🔄 钉钉集成 |

## 🎨效果图
<div align="center">
Expand Down Expand Up @@ -86,6 +86,25 @@ COOKIES_STR自行在闲鱼网页端获取cookies(网页端F12打开控制台,
python main.py
```

### 使用管理后台

本项目提供了一个Web管理后台,可以方便地查看和管理所有对话及系统设置:

```bash
# 启动管理后台
./start_admin.sh
```

启动成功后,访问 http://localhost:3000 即可打开管理后台。

管理后台功能:
- 查看所有对话会话及统计数据
- 管理系统设置(模型配置、议价策略等)
- 手动发送消息到特定会话
- 查看完整对话记录

详细使用说明请参阅 [管理后台文档](./admin/README.md)。

### 自定义提示词

可以通过编辑 `prompts` 目录下的文件来自定义各个专家的提示词:
Expand Down
62 changes: 62 additions & 0 deletions admin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 闲鱼AutoAgent管理后台

这是闲鱼AutoAgent项目的管理后台系统,提供了图形化界面来管理和监控闲鱼客服机器人。

## 功能特点

- 🔍 实时监控所有会话状态和统计数据
- ⚙️ 系统设置管理(模型配置、自动回复、议价策略等)
- 💬 查看完整对话记录
- 📝 手动向特定会话发送消息
- 📊 数据可视化

## 技术架构

- 前端:NextJS + Ant Design
- 后端:FastAPI

## 安装与使用

### 方法一:快速启动(推荐)

使用项目根目录下的启动脚本一键启动管理后台:

```bash
# 在项目根目录下执行
./start_admin.sh
```

启动成功后,访问 http://localhost:3000 即可打开管理后台。

### 方法二:分开启动

1. 启动后端API:

```bash
cd admin
python3 start_admin.py
```

2. 启动前端服务:

```bash
cd admin_frontend
npm install
npm run dev
```

## 系统要求

- Python 3.8+
- Node.js 18+
- npm 9+

## 配置说明

管理后台会自动读取项目根目录的配置文件和数据目录,无需额外配置。

## 常见问题

1. **启动失败**:检查端口8090和3000是否被占用
2. **无法加载数据**:确保项目根目录存在data目录且有会话数据
3. **API连接失败**:检查API服务是否正常运行
Loading