A full-stack AI-powered CRM with sales tracking, event management, employee performance prediction, rewards, a PyTorch-based conversational assistant, and lead-classification ML - all in one web application. 82% accuracy lead scoring on 10,000+ customer records.
Small and mid-sized sales teams juggle CRMs, spreadsheets, calendar apps, HR tools, and analytics dashboards as separate products. Context gets lost between them, leads go cold, and employee performance is judged by gut feel instead of data.
A single web application that brings everything under one roof:
- Customer & sales management - add, track, and segment customers
- Events calendar - schedule follow-ups, demos, team events
- Employee performance prediction - ML model forecasts rep performance
- Employee rewards - data-driven recognition tied to predicted performance
- Lead classification - KNN + Feedforward Neural Net scoring (82% accuracy)
- Conversational assistant - intent-based PyTorch chatbot for natural-language queries
- 82% accuracy on lead classification (KNN + Feedforward Neural Net)
- 10,000+ customer and sales records modeled in MySQL
- 6 integrated modules replacing what would otherwise be 4+ separate tools
- End-to-end: raw input โ MySQL โ ML features โ web UI โ conversational access
ML-driven forecasts of rep performance surfaced directly in the admin view - so managers review reps based on model output, not anecdote.
Recognition tied back to predicted performance and achieved KPIs.
A PyTorch-trained intent classifier (bag-of-words โ feedforward net, defined in model.py, trained via train.py on intents.json) lets users ask the CRM questions in natural language.
Trend and segmentation analyses rendered on the dashboard.
| Layer | Tools |
|---|---|
| Language | Python 3.10+ |
| Database | MySQL |
| Web framework | Flask, Jinja2 |
| Data | Pandas, NumPy |
| ML - lead classification | scikit-learn (KNN + MLP / Feedforward NN) |
| ML - chatbot | PyTorch (intent classifier over intents.json) |
| Frontend | HTML, CSS, JavaScript |
# Clone
git clone https://github.com/Isha2605/AI-Driven-CRM-Analytics-System.git
cd AI-Driven-CRM-Analytics-System/source_code
# Install Python dependencies
pip install -r requirements.txt
# (Optional) retrain models
python train.py # trains the chatbot intent classifier โ data.pth
python model.py # trains the lead-classification models
# Run the Flask app
python flaskdemo1.pyThen open http://localhost:5000.
โโโ assets/ # Screenshots & architecture diagram (for README)
โโโ source_code/
โ โโโ static/ # CSS, JS, images
โ โโโ templates/ # Jinja2 HTML templates
โ โโโ flaskdemo1.py # Flask entrypoint
โ โโโ form1.py # Form handling
โ โโโ implement1.py # Business logic
โ โโโ chatbot.py # Chatbot runtime
โ โโโ model.py # ML model definitions
โ โโโ train.py # Training script
โ โโโ intents.json # Chatbot intent patterns
โ โโโ data.pth # Trained chatbot weights (PyTorch)
โ โโโ sample.csv # Sample dataset
โ โโโ bot.js # Frontend chat widget
โโโ README.md
- Swap KNN for Gradient-Boosted Trees (XGBoost) for production
- Add SHAP explanations alongside predictions in the UI
- Deploy on AWS (EC2 + RDS) with Nginx + Gunicorn
- Upgrade chatbot from intent-based to LLM + function calling over the CRM schema
- Role-based access control (RBAC) for admin vs rep views
Isha Narkhede ยท Portfolio ยท LinkedIn ยท ishajayant207@gmail.com
MIT - see LICENSE.










