Skip to content

MeNoodie/customer_sentiment.project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Customer Sentiment Watchdog β€” Hackathon Project 🧠

πŸš€ Problem Statement:

Customer Sentiment Watchdog for Support Teams**

"It’s hard for CX teams to detect rising frustration or satisfaction trends across support channels (emails, chats, tickets)."

πŸ’‘ Our Solution:

We built an AI-powered dashboard that analyzes customer feedback in real-time (from web forms, emails, and tickets), classifies emotional tone (positive, neutral, negative), and alerts the team if negative sentiment spikes.

Our virtual AI assistant, LIZA, provides real-time suggestions based on recent complaints using LLMs (via Sarvam AI/OpenRouter API).


πŸ› οΈ Key Features

βœ… Sentiment analysis from feedback
βœ… Visual analytics (charts for sentiment, activity, top complaints)
βœ… Chat-based assistant β€œLIZA” for suggestions
βœ… Live feedback stream
βœ… Tracks engagement levels: Promoters, Passives, Detractors
βœ… Clean Tailwind + Chart.js frontend
βœ… Full Flask backend with CSV-based feedback storage


πŸ€– Tech Stack

  • Frontend: HTML, TailwindCSS, Chart.js
  • Backend: Python, Flask
  • AI Integration: Sarvam AI via OpenRouter API (used in suggestion_agent.py)
  • Data Handling: pandas, CSV
  • Hosting Ready: Portable for deployment on Render/Heroku/Localhost

πŸ’¬ What We Learned

This was a 3-day intense hackathon where:

  • We used AI responsibly β€” yes, we took help, but we engineered prompts, debugged countless errors, iterated fast, and learned deeply.
  • We explored prompt-tuning, model handling, backend integration, and frontend polish.
  • I made mistakes, learned from them, and gave this project my πŸ’― percent.
  • The biggest takeaway: how to use AI tools efficiently to solve real problems.

We hope you like our project as much as we loved building it. πŸ’œ


πŸ“¦ Folder Structure

πŸ“ project-root β”‚ β”œβ”€β”€ app.py # Main Flask server β”œβ”€β”€ feedback.csv # Stores all feedback data β”œβ”€β”€ suggestion_agent.py # AI generation using Sarvam AI β”œβ”€β”€ sentiment_agent.py # Handles sentiment classification β”œβ”€β”€ feedback_handler.py # Handles data saving β”œβ”€β”€ chart_generator.py # Prepares data for frontend β”‚ β”œβ”€β”€ templates/ β”‚ β”œβ”€β”€ insights.html # Dashboard (main) β”‚ β”œβ”€β”€ index.html # Web feedback form β”‚ β”œβ”€β”€ ticket.html # Ticket feedback form β”‚ └── email.html # Email feedback form

yaml Copy Edit


πŸ‘₯ Team Contribution

This project is my solo submission for a hackathon, built with:

AI support (Sarvam, ChatGPT, etc.)

My own full-stack implementation

3 days of hands-on effort, learning, debugging, and improving every module

🌟 Final Words

This was not just a project, but a learning journey. From prompt engineering to building a full-stack AI tool, this experience helped me grow immensely as a developer and a problem-solver.

Thank you for checking it out. ❀️

πŸ“‹ Requirements

Install these using pip install -r requirements.txt

Flask
pandas
requests

# Step 1: Clone this repo
git clone https://github.com/MeNoodie/customer_sentiment.project.git
cd sentiment-watchdog

# Step 2: Create virtual env (optional)
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows

# Step 3: Install dependencies
pip install -r requirements.txt

# Step 4: Run the app
python app.py


headers = {
    "Authorization": "Bearer YOUR_OPENROUTER_API_KEY",
    "Content-Type": "application/json"
}



Let me know if you want a badge section (`Built With`, `Hackathon Submission`, etc.) or a zipped release for submission.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published