XianyuAutoAgent: A Free and Open-Source Smart Customer Service Bot for Xianyu 143

小编 ·

XianyuAutoAgent: A Free and Open-Source Smart Customer Service Bot for Xianyu

XianyuAutoAgent is an intelligent customer service bot system designed for the Xianyu platform. Powered by AI, it provides 24/7 automated support, automatically replying to user messages, handling negotiation requests, offering technical support, and supporting multi-expert collaborative decision-making and context-aware conversations — making shop management easier.

XianyuAutoAgent: A Free and Open-Source Smart Customer Service Bot for Xianyu

What is XianyuAutoAgent?

XianyuAutoAgent is an intelligent customer service bot system designed specifically for the Xianyu platform. It leverages AI to provide 7×24 automated attendance on the Xianyu platform, capable of automatically replying to user messages, handling negotiation requests, providing technical support, and supporting multi-expert collaborative decision-making as well as context-aware conversations. It makes shop management easier for us.

XianyuAutoAgent Features

Intelligent Conversation Engine

  • Context Awareness: Through session history storage, lightweight conversation memory management is achieved. The system uses the complete conversation history as context input for the Large Language Model (LLM) to ensure conversational coherence.

  • Expert Routing: Based on intent recognition through LLM prompt engineering, conversations are dynamically distributed to different expert Agents (such as negotiation experts, technical experts, and customer service experts), supporting multi-scenario switching.

XianyuAutoAgent:免费开源的智能闲鱼客服机器人系统.webp

Business Functionality Matrix

Core Engine:

  • LLM Auto Reply: Uses large language models to automatically generate reply content.

  • Context Management: Maintains contextual information of conversations to ensure coherence in replies.

  • Sentiment Analysis Enhancement (Planned): Future versions plan to enhance sentiment analysis capabilities to better understand user emotions.

Negotiation System:

  • Tiered Price Reduction Strategy: Automatically adjusts product prices based on preset rules to facilitate transactions.

  • Market Price Comparison Feature (Planned): Future versions will support price comparison with similar products on the market, providing more reasonable negotiation suggestions.

Technical Support:

  • Web Search Integration: Combines web search results to provide users with more accurate technical support and answers.

  • RAG Knowledge Base Enhancement (Planned): Future versions plan to enhance the knowledge base functionality to improve answer quality.

Operations Monitoring:

  • Basic Logging: Records basic log information of system operations.

  • DingTalk Integration (Planned): Future versions plan to integrate DingTalk for real-time monitoring and management by sellers.

  • Web Management Interface (Planned): A Web management interface will be developed to facilitate sellers in configuring and monitoring system operations.

XianyuAutoAgent:免费开源的智能闲鱼客服机器人系统.webp

XianyuAutoAgent Applications

  • Automated Customer Service: Automatically reply to user messages, answer common questions, and improve customer service efficiency.

  • Intelligent Negotiation: Automatically negotiate prices with buyers through tiered price reduction strategies to facilitate transactions.

  • Technical Support: Integrate web search results to provide users with technical-related answers.

  • Multi-Scenario Switching: Dynamically switch expert Agents based on different scenarios (such as negotiation, technical consultation, customer service, etc.) to provide more professional services.

Usage

Environment Requirements

Python 3.8+

NodeJS 18+

Installation Steps

1. Clone the Repository

git clone https://github.com/shaxiu/XianyuAutoAgent.git
cd xianyu-autoagent

2. Install Dependencies

pip install -r requirements.txt

3. Configure Environment Variables

Create a .env file containing the following content:

OPENAI_API_KEY=your_api_key_here
COOKIES_STR=your_cookies_here

4. Create Prompt Files

Edit the prompt files in the prompts directory, including:

classify_prompt.txt: Intent classification prompt.

price_prompt.txt: Price expert prompt.

tech_prompt.txt: Technical expert prompt.

default_prompt.txt: Default reply prompt.

5. Run the Main Program

The specific command to run the main program is not explicitly stated in the documentation, but it can typically be started in the following way:

python main.py
python main.py

XianyuAutoAgent:免费开源的智能闲鱼客服机器人系统.webp

Related Links

  • GitHub Project Homepage:https://github.com/shaxiu/XianyuAutoAgent