Your Automated Negotiation Agent / 你的自动化谈判专家
"Don't just pay full price. Let AI haggle for you." "拒绝做大冤种,让 AI 帮你争取权益。"
Haggle AI is a Proof-of-Concept (MVP) agent designed to help users negotiate with customer service bots and representatives. It uses "Maximizer Strategy" to draft high-context, policy-aware responses for refunds, cancellations, and discounts.
Currently supports two modes:
- Chrome Extension: For live chat interfaces (e.g., e-commerce support).
- Email Bot (Python): For asynchronous email disputes (e.g., refunds, contract cancellations).
- The "Maximizer" Mode: Automatically cites consumer protection laws and logic to maximize refund chances.
- Context Awareness: Reads the last message from support agents to generate relevant counter-arguments.
- Safety First:
- Extension: Auto-fills the input box but lets you review before sending.
- Email: Creates Drafts only; never sends automatically.
- Clone this repo:
git clone https://github.com/JohnJyong/haggle_ai.git - Open Chrome and go to
chrome://extensions/. - Enable Developer mode (top right).
- Click Load unpacked.
- Select the
haggle_aifolder (wheremanifest.jsonis located).
- Open a customer support chat window (e.g., Taobao, JD, Amazon).
- Click the Haggle Icon in your browser toolbar.
- Click "😤 帮我怼回去" (Fight Back).
- The agent will read the chat (or prompt you for context) and fill the input box with a strong reply.
- Ensure you have Python 3 installed.
- (Optional) This script uses a Mock Gmail API for demonstration. In a real scenario, you would need
google-api-python-client.
python3 email_bot.py- Scans your (mock) inbox for emails labeled
Haggle. - Analyzes the rejection reason (e.g., "Outside return window", "Cancellation fee").
- Generates a counter-argument.
- Creates a Draft reply for you to review.
This is a prototype for educational and demonstration purposes.
- The "AI" logic in this MVP is rule-based (mocked). Real-world deployment would require connecting to an LLM API (e.g., OpenAI, Gemini, DeepSeek).
- Use responsibly. Be polite even when negotiating!
MIT