Introduction
SmartBank is an Enterprise Predictive Lead Scoring platform designed to revolutionize how banks identify potential customers using Artificial Intelligence. We bridge the gap between raw data and actionable sales insights.
Traditional Banking Inefficiencies
Banks currently rely on cold-calling lists with no intelligence, leading to wasted resources.
AI-Driven Intelligence
An advanced machine learning pipeline that processes customer data to predict intent.
Measurable Business Growth
Transforming cost centers into profit centers by focusing on high-probability targets.
Why SmartBank?
Unlike traditional CRM tools that only store data, SmartBank understands it. By combining customer demographics with dynamic macroeconomic indicators (such as Euribor rates and Consumer Price Index), our models adapt to changing market conditions, ensuring your sales team is always one step ahead.
High-Level Architecture
Visualization of SmartBank's cloud-native infrastructure. The system is designed with a clear separation of concerns between the User Interface, API Gateway, and Intelligence Engine.
Main App Flow
Handles user interactions via Next.js and orchestrates business logic through the NestJS API Gateway.
Data Persistence
Secure storage layer using MongoDB Replica Sets for high-availability customer data and audit logs.
AI Inference Engine
Isolated Python environment that normalizes data and runs Scikit-learn models for real-time scoring.
Security & Edge Layer
Protection via Cloudflare WAF and Identity Management (OAuth/JWT) ensuring zero-trust access control.
Backend Services
A robust, modular, and type-safe backend architecture built with NestJS to ensure scalability and maintainability.
Frontend Application
A modern, high-performance web client built with Next.js 16 App Router. Designed for rich interactivity, accessibility, and seamless data synchronization.
ML Integration Logic
The intelligence layer. How SmartBank bridges the gap between raw customer data and actionable AI predictions.
Raw data from MongoDB is sanitized. Categorical strings (e.g., "blue-collar") are validated against known schemas before normalization.
NestJS MapperData is sent to the Python microservice hosted on HuggingFace. The model (Random Forest/XGBoost) calculates probabilities.
Scikit-LearnThe result (YES/NO) and confidence score are stored in the `Prediction` table, linked to the Customer ID for history tracking.
Prisma WriteAPI Contract
{
"personal_info": {
"age": 45,
"job": "admin",
"marital": "married",
"education": "university.degree"
},
"financial_info": {
"default": false,
"housing": true,
"loan": false
},
"macro_info": {
"euribor3m": 1.2,
"cpi": 93.2,
"emp_var_rate": -1.8
}
}Live Specs
Syncing...Context Aware
The model doesn't just look at the user. It pulls real-time Euribor 3M and CPI rates to adjust predictions based on current economic conditions.
Deployment & DevOps
Production readiness guide. From environment configuration to CI/CD pipelines for both Frontend and Backend services.
Standard Deployment Pipeline
Backend Service
Vercelnpx prisma generatenpm run buildnode dist/main.jsFrontend Application
Vercel / EdgeThe Next.js app is optimized for Vercel. Ensure the following Environment Variables are configured in your Project Settings before deployment.
npm run build