Skip to content
yuriya-devPublic

Repository files navigation

Bank Marketing Prediction Portal 🏦

A comprehensive full-stack application designed to optimize banking lead management using Machine Learning. This portal helps Sales Agents focus on high-potential customers and gives Administrators powerful tools to manage teams, distribute leads, and analyze performance.


🚀 Key Features

🧠 Intelligent System

  • Predictive Lead Scoring Automatically calculates conversion probability (0–100%) using a Random Forest model.

  • Smart Priority Categorizes leads into High, Medium, or Low priority based on ML prediction.

  • Automated Distribution Uses a Round Robin system to distribute unassigned leads equally among sales agents.


💼 For Sales Agents

  • Interactive Dashboard View KPIs, recent activities, and announcements.

  • Lead Management Filter leads by priority, status, or search by customer name.

  • One-Click Action Direct WhatsApp integration with pre-filled message templates.

  • Credit Application Submit credit applications directly for interested leads.

  • Performance Tracking Monitor personal conversion rates.


🛡️ For Administrators

  • Team Management Add, edit, or remove sales agents.

  • Lead Import Bulk import leads via CSV with automatic scoring.

  • Broadcast Campaign Send mass WhatsApp messages to targeted audiences.

  • Credit Approval Review, approve, or reject credit applications.

  • Audit Logs Full activity tracking for security and compliance.

  • Analytics Comprehensive charts for monthly deposits, conversion rates, and top professions.


⚙️ System Features

  • Dark Mode Fully responsive UI with toggleable dark/light themes.

  • Redis Caching High-performance data fetching and API response caching.

  • Cron Jobs

    • Automated archiving after 90 days
    • Data hiding after 3 years for database hygiene
  • PDF Reporting Downloadable performance and analytics reports.


🏗 Tech Stack

Component Technology Description
Frontend React, Vite, Tailwind CSS UI/UX, Recharts for analytics, Lucide Icons
Backend Node.js, Express REST API, Business Logic, Cron Jobs
Database Supabase (PostgreSQL) Authentication & relational data storage
Caching Redis (Upstash) API response caching
ML Engine Python, FastAPI Scikit-learn model serving
Deployment Vercel (FE), Render (BE/ML) Cloud hosting

🏗 Project Structure

project-root/
├─ backend/         # Node.js + Express API server
├─ frontend/        # React + Vite + Tailwind CSS app
├─ ml/             # Python ML model & training
├─ docs/           # Project documentation
└─ docker-compose.yml

🛠 Installation & Setup

Prerequisites

  • Node.js v16+
  • Python v3.9+
  • Redis (Local or Upstash)
  • Supabase Account

🔐 Demo Accounts (Untuk Testing)

Gunakan akun berikut untuk mencoba fitur aplikasi sesuai dengan role masing-masing:

👑 Admin

Email: [email protected]

Password: 123456

💼 Sales Agent

Email: [email protected]

Password: 123456


1. Clone Repository

git clone https://github.com/yuriya-dev/A25-CS075_Predictive-Lead-Scoring-Portal-for-Banking
cd A25-CS075_Predictive-Lead-Scoring-Portal-for-Banking

2. Backend Setup

cd backend
npm install
cp .env.example .env
# Configure SUPABASE_URL, SUPABASE_KEY, REDIS_URL, ML_API_URL in .env
npm run dev

3. Frontend Setup

cd frontend
npm install
cp .env.example .env
# Configure VITE_SUPABASE_URL, VITE_SUPABASE_KEY
npm run dev

4. ML Engine Setup

cd ml
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000

5. Visit:

📚 Documentation

🐳 Docker Support

The project includes production-ready Dockerfiles and docker-compose configuration. See Setup Guide for details.

📊 ML Model

The prediction model is trained on the UCI Bank Marketing dataset using scikit-learn. See ML README for training details and model performance metrics.


🤖 Model AI / ML

Akses model, dataset, dan artefak terkait di Google Drive: Model AI / ML - Google Drive


📝 License

MIT License - feel free to use this project for learning or commercial purposes.

Releases

Packages

Contributors

Languages