🚀 Xianyu AutoAgent - Intelligent Xianyu Customer Service Bot System
An AI duty solution designed specifically for the Xianyu platform, enabling 24/7 automated operation, supporting multi-expert collaborative decision-making, intelligent price negotiation, and context-aware conversations.
🎮 Playground - Quick Experience (No Configuration Needed)
No need for a local environment or setting Secrets! Directly use GitHub Actions web interface to input parameters and start the Xianyu bot with one click.
How to Use
- Fork this repository → Click the
Forkbutton in the upper right corner - Trigger Action:
- Go to your repository's
Actionstab - Select the
🚀 Run Serviceworkflow - Click the
Run workflowbutton and fill in the parameters: API Key: Paste your LLM API Key (e.g., Aliyun DashScope)Cookies: Paste the full Xianyu web cookie string- View Running Logs:
- After the bot starts, it will automatically listen for Xianyu messages
- Search for
🤖 Reply:in the Action logs to view conversation records
Notes
⚠️ Please note temporary run limitations:- Default runtime is 30 minutes (GitHub free account limitation)
- Sensitive information (such as Cookies) will not be stored, only effective for that run
🌟 Core Features
Intelligent Conversation Engine
| Module | Technical Implementation | Key Features | | ----------- | ------------------------- | ---------------------------------------------------------- | | Contextual | Conversation history store | Lightweight conversation memory management, full chat history as LLM context input | | Expert Routing | LLM prompt+rule routing | Intent recognition via prompt engineering → dynamic dispatch to expert Agent, supports scenario switching for price negotiation/tech/customer service |Business Function Matrix
| Module | Implemented | Planned | | ---------- | ------------------------------- | ------------------------------- | | Core Engine| ✅ LLM auto-reply✅ Context management | 🔄 Enhanced sentiment analysis | | Pricing | ✅ Stepwise price reduction strategy | 🔄 Market price comparison | | Tech Support| ✅ Integrated web search | 🔄 Enhanced RAG knowledge base |
🚴 Quick Start
Environment Requirements
- JDK 21+
- Maven 3.9.10+
Installation Steps
1. 克隆仓库
git clone https://github.com/qOeOp/XianyuAutoAgent.git
cd XianyuAutoAgent- 配置环境变量
- AI_DASHSCOPE_API_KEY : 阿里云大模型API-KEY
- COOKIES_STR : 闲鱼网页端Cookie
- 执行命令
mvn spring-boot:run
注意:默认使用的模型是通义千问,如需使用其他API,请自行修改application.yml文件中的模型地址和模型名称;
COOKIES_STR自行在闲鱼网页端获取cookies(网页端F12打开控制台,选择Network,点击Fetch/XHR,点击一个请求,查看cookies)- (可选)创建提示词文件src/main/resources/*-prompt.txt
🤝 Participation and Contribution
You are welcome to submit suggestions via Issues or contribute code via PRs, please follow the Contribution Guide
🛡 Important Notes
⚠️ Note: This project is for learning and communication purposes only. Contact the author for removal if there is any infringement.
Due to the special nature of the project, the development team may stop updating or delete the project at any time.
🧸 Special Thanks
This project is refactored based on the following open-source projects:
- XianyuAutoAgent - Intelligent Xianyu Customer Service Robot System, developed by @shaxiu and @cv-cat