A full-stack, Next.js Lead Management OS designed for 5-minute SLAs, cross-channel lead capture, and performance analytics.
Production URL: https://lead-management-one-lac.vercel.app/
- Centralized Lead Pipeline: Captures leads dynamically from any source (WhatsApp, Forms, Direct).
- 5-Minute SLA Tracking: Automatically calculates response time and flags SLA breaches in real-time.
- Agent Ownership & Assignment: Intelligent round-robin capabilities with manual override for clear accountability.
- Interaction Logging: Comprehensive timeline per lead (notes, follow-ups, system updates).
- Automated Dashboard: Real-time KPI metrics on total leads, breaches, avg response times, and visit conversions.
- Visit Scheduling System: Fully integrated property visit booking with status flows.
- Lovable Light Aesthetic: A modern, incredibly fast, strictly responsive UI built for data density.
- Frontend: Next.js 16 (App Router), React 19, Vanilla CSS (Lovable Light Theme)
- Backend: Next.js API Routes (Serverless)
- Database: PostgreSQL (Hosted on Supabase via Connection Pooling)
- ORM: Prisma Client
- Clone the repository
git clone https://github.com/Bala12333/lead_management.git
cd lead_management- Install dependencies
npm install- Set up environment variables
Create a
.envfile referencing your local SQLite (or Supabase Postgres):
DATABASE_URL="file:./dev.db"- Initialize Database
npx prisma db push- Run the server
npm run dev- Lead: Tracks global lead info, SLA timestamps, assignments.
- User (Agents): System operators handling assigned follow-ups.
- Interaction: The polymorphic timeline events under each Lead.
- Visit: Property scheduling mapping directly to leads.
Designed and implemented for exact operational tracking to prevent dropped leads across shared team channels.