# shaxiu/xianyuautoagent

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/shaxiu-xianyuautoagent).**

8,051 stars · 1,456 forks · Python · GPL-3.0

## Links

- GitHub: https://github.com/shaxiu/XianyuAutoAgent
- awesome-repositories: https://awesome-repositories.com/repository/shaxiu-xianyuautoagent.md

## Topics

`agent` `chatbot` `llm`

## Description

XianyuAutoAgent is a multi-agent orchestration framework and large language model chatbot designed to automate customer service and sales interactions on a marketplace platform. It functions as a system of specialized AI entities, including context-aware conversational agents and automated price negotiation bots, to manage peer-to-peer conversational commerce.

The framework distinguishes itself through an intent-based routing mechanism that dispatches queries to specialized agents and utilizes a multi-expert collaborative decision process to determine response strategies. It features dedicated price negotiation logic that executes stepped price reduction strategies based on predefined business rules to automate bargaining.

The system covers a broad range of capabilities including dialogue context persistence for session management, custom AI persona management via prompt-driven behavior configuration, and the integration of external knowledge through web search. These components enable a persistent automated customer service presence to handle inquiries and drive engagement.

## Tags

### Business & Productivity Software

- [Automated Marketplace Customer Service](https://awesome-repositories.com/f/business-productivity-software/automated-marketplace-customer-service.md) — Automatically handles buyer inquiries on the Xianyu marketplace to maintain a constant presence and drive engagement.
- [Conversational Commerce Automation](https://awesome-repositories.com/f/business-productivity-software/conversational-commerce-automation.md) — Manages the end-to-end sales dialogue on a peer-to-peer platform using context-aware AI responses.
- [Pricing Rule Engines](https://awesome-repositories.com/f/business-productivity-software/pricing-rule-engines.md) — Implements a rule engine to automatically execute stepped price reductions based on business constraints. ([source](https://github.com/shaxiu/xianyuautoagent#readme))
- [Price Negotiations](https://awesome-repositories.com/f/business-productivity-software/pricing-structures/customer-defined-pricing/price-negotiations.md) — Automates the interactive negotiation process between buyers and sellers to reach an optimal price.
- [Stepped Price Reduction Rules](https://awesome-repositories.com/f/business-productivity-software/pricing-structures/customer-defined-pricing/price-negotiations/stepped-price-reduction-rules.md) — Executes a series of predefined price reduction rules to automate the bargaining process with buyers.
- [Negotiation Workflows](https://awesome-repositories.com/f/business-productivity-software/pricing-structures/negotiation-workflows.md) — Provides automated workflows for managing the exchange of quotes and counter-offers to reach sale agreements. ([source](https://github.com/shaxiu/xianyuautoagent#readme))
- [Automated Negotiation Bots](https://awesome-repositories.com/f/business-productivity-software/pricing-structures/negotiation-workflows/automated-negotiation-bots.md) — Provides an autonomous system that uses stepped reduction strategies to handle bargaining and finalize prices.
- [Automated Marketplace Presence](https://awesome-repositories.com/f/business-productivity-software/automated-marketplace-presence.md) — Maintains a persistent automated presence on marketplaces to handle inquiries and drive engagement without manual intervention. ([source](https://github.com/shaxiu/xianyuautoagent#readme))

### Artificial Intelligence & ML

- [Multi-Agent Orchestration Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/integration-deployment/agent-frameworks/agent-orchestrators/multi-agent-orchestration-frameworks.md) — Coordinates multiple specialized autonomous agents to execute complex collaborative tasks via intent-based routing.
- [Context-Aware Conversation Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/context-aware-retrieval/context-aware-conversation-managers.md) — Implements a conversational manager that combines LLMs with session history and external knowledge for coherent dialogue.
- [Dialogue Context Management](https://awesome-repositories.com/f/artificial-intelligence-ml/dialogue-context-management.md) — Provides utilities to maintain and format conversation history, ensuring coherence across multi-turn dialogues.
- [Marketplace Conversational Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/marketplace-conversational-agents.md) — Provides an AI agent that automates customer service and sales interactions on a marketplace platform using LLMs.
- [Multi-Agent Collaboration Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-orchestration-multi-agent/autonomous-agents/multi-agent-collaboration-systems.md) — Employs a collaborative decision process where multiple specialized AI agents determine the optimal response strategy.
- [Custom-Prompted Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-workflow-automation/custom-prompted-agents.md) — Uses custom-prompted agent definitions to tailor bot behavior and domain expertise for specific products. ([source](https://github.com/shaxiu/xianyuautoagent#readme))

### Data & Databases

- [Agent-Specific Query Routing](https://awesome-repositories.com/f/data-databases/semantic-query-routing/agent-specific-query-routing.md) — Implements a system to dispatch user queries to specialized AI agents based on semantic intent analysis. ([source](https://github.com/shaxiu/xianyuautoagent#readme))

### Web Development

- [Intent-Based Routing](https://awesome-repositories.com/f/web-development/request-routing/intent-based-routing.md) — Uses AI-driven classification to route user requests to the most appropriate specialized agent handlers.

### Security & Cryptography

- [AI Personas](https://awesome-repositories.com/f/security-cryptography/identity-access-management/access-control/identity-role-management/ai-personas.md) — Utilizes reusable sets of system prompts to define the behavioral identity and expertise of marketplace bots.

### Software Engineering & Architecture

- [Prompt-Driven Persona Configurations](https://awesome-repositories.com/f/software-engineering-architecture/configuration-driven-schemas/behavioral-customization-schemas/prompt-driven-persona-configurations.md) — Allows customizing agent personalities and expertise through external prompt-driven configuration files.
