XianyuAutoAgent

XianyuAutoAgent

智能闲鱼客服机器人系统:专为闲鱼平台打造的AI值守解决方案,实现闲鱼平台7×24小时自动化值守,支持多专家协同决策、智能议价和上下文感知对话。

Stars: 973

Visit
 screenshot

Xianyu AutoAgent is an AI customer service robot system specifically designed for the Xianyu platform, providing 24/7 automated customer service, supporting multi-expert collaborative decision-making, intelligent bargaining, and context-aware conversations. The system includes intelligent conversation engine with features like context awareness and expert routing, business function matrix with modules like core engine, bargaining system, technical support, and operation monitoring. It requires Python 3.8+ and NodeJS 18+ for installation and operation. Users can customize prompts for different experts and contribute to the project through issues or pull requests.

README:

🚀 Xianyu AutoAgent - 智能闲鱼客服机器人系统

Python Version Python Version LLM Powered

专为闲鱼平台打造的AI值守解决方案,实现闲鱼平台7×24小时自动化值守,支持多专家协同决策、智能议价和上下文感知对话。

🌟 核心特性

智能对话引擎

功能模块 技术实现 关键特性
上下文感知 会话历史存储 轻量级对话记忆管理,完整对话历史作为LLM上下文输入
专家路由 LLM prompt+规则路由 基于提示工程的意图识别 → 专家Agent动态分发,支持议价/技术/客服多场景切换

业务功能矩阵

模块 已实现 规划中
核心引擎 ✅ LLM自动回复
✅ 上下文管理
🔄 情感分析增强
议价系统 ✅ 阶梯降价策略 🔄 市场比价功能
技术支持 ✅ 网络搜索整合 🔄 RAG知识库增强
运维监控 ✅ 基础日志 🔄 钉钉集成
🔄 Web管理界面

🎨效果图

客服
图1: 客服随叫随到
议价专家
图2: 阶梯式议价
技术专家
图3: 技术专家上场
后台log
图4: 后台log

🚴 快速开始

环境要求

  • Python 3.8+
  • NodeJS 18+

安装步骤

1. 克隆仓库
git clone https://github.com/shaxiu/XianyuAutoAgent.git
cd xianyu-autoagent

2. 安装依赖
pip install -r requirements.txt

3. 配置环境变量
创建一个 `.env` 文件,包含以下内容:
OPENAI_API_KEY=your_api_key_here
COOKIES_STR=your_cookies_here

4. 创建提示词文件prompts/*_prompt.txt
默认提供四个模板,可自行修改

使用方法

运行主程序:

python main.py

自定义提示词

可以通过编辑 prompts 目录下的文件来自定义各个专家的提示词:

  • classify_prompt.txt: 意图分类提示词
  • price_prompt.txt: 价格专家提示词
  • tech_prompt.txt: 技术专家提示词
  • default_prompt.txt: 默认回复提示词

🤝 参与贡献

欢迎通过 Issue 提交建议或 PR 贡献代码,请遵循 贡献指南

🛡 注意事项

⚠️ 注意:本项目仅供学习与交流,如有侵权联系作者删除。

鉴于项目的特殊性,开发团队可能在任何时间停止更新删除项目

如需学习交流,请联系:[email protected]

🧸特别鸣谢

本项目参考了以下开源项目: https://github.com/cv-cat/XianYuApis

感谢@CVcat的技术支持

💼 寻找机会

🔍寻求方向AI产品经理实习
🛠️项目贡献::需求分析、agent方案设计与实现
📫 联系: [email protected]

🔍寻求方向研发工程师实习(python、java、逆向、爬虫)
🛠️项目贡献::闲鱼逆向工程
📫 联系: [email protected]

☕ 请喝咖啡

您的☕和⭐将助力项目持续更新:

微信赞赏码支付宝收款码

📈 Star 趋势

Star History Chart

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for XianyuAutoAgent

Similar Open Source Tools

For similar tasks

For similar jobs