{"id":26655515,"url":"https://github.com/shaxiu/XianyuAutoAgent","last_synced_at":"2025-03-25T06:02:25.826Z","repository":{"id":282464871,"uuid":"948663423","full_name":"shaxiu/XianyuAutoAgent","owner":"shaxiu","description":"智能闲鱼客服机器人系统：专为闲鱼平台打造的AI值守解决方案，实现闲鱼平台7×24小时自动化值守，支持多专家协同决策、智能议价和上下文感知对话。","archived":false,"fork":false,"pushed_at":"2025-03-22T08:17:18.000Z","size":1588,"stargazers_count":963,"open_issues_count":3,"forks_count":145,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-22T09:23:01.022Z","etag":null,"topics":["agent","chatbot","llm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaxiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-14T18:22:25.000Z","updated_at":"2025-03-22T08:47:41.000Z","dependencies_parsed_at":"2025-03-15T05:01:42.483Z","dependency_job_id":null,"html_url":"https://github.com/shaxiu/XianyuAutoAgent","commit_stats":null,"previous_names":["shaxiu/xianyuautoagent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxiu%2FXianyuAutoAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxiu%2FXianyuAutoAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxiu%2FXianyuAutoAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxiu%2FXianyuAutoAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaxiu","download_url":"https://codeload.github.com/shaxiu/XianyuAutoAgent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407810,"owners_count":20610237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","chatbot","llm"],"created_at":"2025-03-25T06:02:14.380Z","updated_at":"2025-03-25T06:02:25.793Z","avatar_url":"https://github.com/shaxiu.png","language":"JavaScript","funding_links":[],"categories":["Python","A01_文本生成_文本对话","JavaScript"],"sub_categories":["大语言对话模型及数据"],"readme":"# 🚀 Xianyu AutoAgent - 智能闲鱼客服机器人系统\n\n[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)](https://www.python.org/) [![Python Version](https://img.shields.io/badge/nodejs-18%2B-blue)](https://nodejs.org/zh-cn/) [![LLM Powered](https://img.shields.io/badge/LLM-powered-FF6F61)](https://platform.openai.com/)\n\n专为闲鱼平台打造的AI值守解决方案，实现闲鱼平台7×24小时自动化值守，支持多专家协同决策、智能议价和上下文感知对话。 \n\n\n## 🌟 核心特性\n\n### 智能对话引擎\n| 功能模块   | 技术实现            | 关键特性                                                     |\n| ---------- | ------------------- | ------------------------------------------------------------ |\n| 上下文感知 | 会话历史存储        | 轻量级对话记忆管理，完整对话历史作为LLM上下文输入            |\n| 专家路由   | LLM prompt+规则路由 | 基于提示工程的意图识别 → 专家Agent动态分发，支持议价/技术/客服多场景切换 |\n\n### 业务功能矩阵\n| 模块     | 已实现                        | 规划中                       |\n| -------- | ----------------------------- | ---------------------------- |\n| 核心引擎 | ✅ LLM自动回复\u003cbr\u003e✅ 上下文管理 | 🔄 情感分析增强               |\n| 议价系统 | ✅ 阶梯降价策略                | 🔄 市场比价功能               |\n| 技术支持 | ✅ 网络搜索整合                | 🔄 RAG知识库增强              |\n| 运维监控 | ✅ 基础日志                    | 🔄 钉钉集成\u003cbr\u003e🔄  Web管理界面 |\n\n## 🎨效果图\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./images/demo1.png\" width=\"600\" alt=\"客服\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003e图1: 客服随叫随到\u003c/em\u003e\n\u003c/div\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./images/demo2.png\" width=\"600\" alt=\"议价专家\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003e图2: 阶梯式议价\u003c/em\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./images/demo3.png\" width=\"600\" alt=\"技术专家\"\u003e \n  \u003cbr\u003e\n  \u003cem\u003e图3: 技术专家上场\u003c/em\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./images/log.png\" width=\"600\" alt=\"后台log\"\u003e \n  \u003cbr\u003e\n  \u003cem\u003e图4: 后台log\u003c/em\u003e\n\u003c/div\u003e\n\n\n## 🚴 快速开始\n\n### 环境要求\n- Python 3.8+\n- NodeJS 18+\n\n### 安装步骤\n```bash\n1. 克隆仓库\ngit clone https://github.com/shaxiu/XianyuAutoAgent.git\ncd xianyu-autoagent\n\n2. 安装依赖\npip install -r requirements.txt\n\n3. 配置环境变量\n创建一个 `.env` 文件，包含以下内容：\nOPENAI_API_KEY=your_api_key_here\nCOOKIES_STR=your_cookies_here\n\n4. 创建提示词文件prompts/*_prompt.txt\n默认提供四个模板，可自行修改\n```\n\n### 使用方法\n\n运行主程序：\n```bash\npython main.py\n```\n\n### 自定义提示词\n\n可以通过编辑 `prompts` 目录下的文件来自定义各个专家的提示词：\n\n- `classify_prompt.txt`: 意图分类提示词\n- `price_prompt.txt`: 价格专家提示词\n- `tech_prompt.txt`: 技术专家提示词\n- `default_prompt.txt`: 默认回复提示词\n\n## 🤝 参与贡献\n\n欢迎通过 Issue 提交建议或 PR 贡献代码，请遵循 [贡献指南](https://contributing.md/)\n\n\n\n## 🛡 注意事项\n\n⚠️ 注意：**本项目仅供学习与交流，如有侵权联系作者删除。**\n\n鉴于项目的特殊性，开发团队可能在任何时间**停止更新**或**删除项目**。\n\n如需学习交流，请联系：[coderxiu@qq.com](https://mailto:coderxiu@qq.com/)\n\n## 🧸特别鸣谢\n本项目参考了以下开源项目：\nhttps://github.com/cv-cat/XianYuApis\n\n感谢\u003ca href=\"https://github.com/cv-cat\"\u003e@CVcat\u003c/a\u003e的技术支持\n\n## 💼 寻找机会\n\n### \u003ca href=\"https://github.com/shaxiu\"\u003e@Shaxiu\u003c/a\u003e\n**🔍寻求方向**：**AI产品经理实习**  \n**🛠️项目贡献：**：需求分析、agent方案设计与实现  \n**📫 联系：** **email**:coderxiu@qq.com；**wx:** coderxiu\n\n### \u003ca href=\"https://github.com/cv-cat\"\u003e@CVcat\u003c/a\u003e\n**🔍寻求方向**：**研发工程师实习**（python、java、逆向、爬虫）  \n**🛠️项目贡献：**：闲鱼逆向工程  \n**📫 联系：** **email:** 992822653@qq.com；**wx:** CVZC15751076989\n## ☕ 请喝咖啡\n您的☕和⭐将助力项目持续更新：\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./images/wechat_pay.jpg\" width=\"400px\" alt=\"微信赞赏码\"\u003e \n  \u003cimg src=\"./images/alipay.jpg\" width=\"400px\" alt=\"支付宝收款码\"\u003e\n\u003c/div\u003e\n\n\n## 📈 Star 趋势\n\u003ca href=\"https://www.star-history.com/#shaxiu/XianyuAutoAgent\u0026Date\"\u003e\n \u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=shaxiu/XianyuAutoAgent\u0026type=Date\u0026theme=dark\" /\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=shaxiu/XianyuAutoAgent\u0026type=Date\" /\u003e\n   \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=shaxiu/XianyuAutoAgent\u0026type=Date\" /\u003e\n \u003c/picture\u003e\n\u003c/a\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxiu%2FXianyuAutoAgent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaxiu%2FXianyuAutoAgent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxiu%2FXianyuAutoAgent/lists"}