This project is a smart tool that evaluates and tracks customer satisfaction during conversations using LLMs from OpenRouter.ai. It provides:
- A web app interface built with Streamlit
- A backend tracking engine using Python + LLM
- Real-time score updates for user messages
- Tracks customer satisfaction (scale: 1 to 5)
- Ignores greetings or empty messages
- Uses LLM to interpret tone/meaning
- Interactive UI for chatting and feedback
- Built-in satisfaction scoring logic
.
├── app.py # Main Streamlit app interface
├── satisfaction_tracker.py # Satisfaction tracker class
├── server.py # (Optional) server logic
├── requirements.txt # Python dependencies
└── README.md # Documentation
git clone https://github.com/Hackathon4-Team20/ai-model.git
cd ai-modelAlternatively: Download the ZIP file and extract it.
python -m venv venv
# Activate virtual environment:
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activatepip install -r requirements.txtYou'll need an API key from OpenRouter:
- When the app starts, it will prompt you for the API key
- Paste your key in the input field (never commit this to the repository)
Launch the server with:
python server.py- You chat via the web app interface
- Your messages are analyzed using OpenRouter's LLM
- A satisfaction score (1–5) is calculated and displayed in real-time
- Never commit your API key to the repository
- For production use, consider:
- Using environment variables (
.envfile) - Implementing proper security measures
- Rate limiting your API calls
- Using environment variables (
I can help you add:
.envsetup examples- Docker support
- Hosting instructions (Streamlit Cloud, etc.)
- Collaboration guidelines
Let me know if you'd like to enhance this setup for deployment or team collaboration!