This project implements a Negotiation Chatbot using FastAPI and an LLM-based model. The chatbot mimics a shopkeeper who negotiates with customers.
process_data.py→ Preprocesses and structures bargaining conversations into JSON.negotiation_bot.py→ Handles negotiation logic and calls the LLM for responses.api.py→ FastAPI backend for handling chatbot API requests.
Ensure you have Python 3.8+ installed.
Run the following command:
pip install -r requirements.txtStart the FastAPI server using:
python api.pyUse Postman, Curl, or any API tool to interact with the chatbot.
POST http://localhost:8000/chat/
{
"message": "Can I get a discount on this?"
}{
"shopkeeper": "This is a premium item. I can offer a 10% discount."
}Bargain.AI.Video.Demo.mp4
Feel free to open issues or submit pull requests for improvements!