An intelligent web-based grievance management platform that leverages Machine Learning to automatically classify complaints, route them to the appropriate department, and streamline grievance handling through automated email notifications.
The AI-Powered Grievance Management System is a full-stack web application designed to simplify and automate the grievance redress process. The system enables users to register, submit complaints, and track their status while automatically classifying grievances into the appropriate department using a trained Machine Learning model.
By integrating AI-based text classification, MongoDB for data management, and SMTP email automation, the platform minimizes manual intervention and improves the efficiency of complaint handling.
- User Registration and Secure Authentication
- AI-Based Complaint Classification
- Automatic Department Routing
- SMTP Email Notifications
- Complaint Status Tracking
- User Dashboard
- Admin Dashboard
- Complaint Management
- Responsive User Interface
- MongoDB Integration
User Registration/Login
│
▼
Submit Complaint
│
▼
TF-IDF Vectorization
│
▼
Machine Learning Classifier
│
▼
Predict Department
│
▼
Store Complaint in MongoDB
│
▼
Send Email Notification
│
▼
Complaint Tracking Dashboard
User
│
▼
Flask Web Application
│
├── Authentication
├── Complaint Module
├── Dashboard
│
▼
Machine Learning Pipeline
│
├── TF-IDF Vectorizer
├── Complaint Classifier
└── Label Encoder
│
▼
MongoDB Database
│
▼
SMTP Email Service
│
▼
Concerned Department
The complaint classification pipeline consists of:
- Text Preprocessing
- TF-IDF Vectorization
- Complaint Classification
- Label Encoding
- Department Prediction
The trained model classifies complaints into departments such as:
- Roads
- Water Supply
- Electricity
- Health
- Sanitation
- Transport
- Public Services
- Python
- Flask
- Flask-PyMongo
- MongoDB
- Scikit-learn
- TF-IDF Vectorizer
- Joblib
- HTML5
- CSS3
- Bootstrap
- Jinja2 Templates
- SMTP (Gmail)
Grievance_app/
│
├── app.py
├── model/
│ ├── complaint_classifier.pkl
│ ├── tfidf_vectorizer.pkl
│ └── label_encoder.pkl
│
├── static/
│ └── style.css
│
├── templates/
│ ├── layout.html
│ ├── index.html
│ ├── login.html
│ ├── register.html
│ ├── complaint.html
│ ├── dashboard.html
│ └── admin.html
│
├── requirements.txt
└── README.md
git clone https://github.com/GowthamRavuri01/ai-grievance-management-system.gitcd ai-grievance-management-systempip install -r requirements.txtUpdate the following inside app.py:
- MongoDB Connection URI
- Gmail SMTP Credentials
python app.pyThe application will be available at:
http://127.0.0.1:5000
- JWT Authentication
- Role-Based Access Control
- Complaint Priority Prediction
- Multi-language Complaint Support
- AI Chatbot Integration
- REST API Support
- Docker Deployment
- Cloud Deployment
- Analytics Dashboard
Gowtham Ravuri
AI Engineer | Computer Vision Engineer | Software Engineer
- GitHub: https://github.com/GowthamRavuri01
- LinkedIn: https://www.linkedin.com/in/gowthamravuri
This project is licensed under the MIT License.