A real-time lead automation system that ingests leads via API, scores them dynamically, and triggers instant notifications using workflow automation.
This project demonstrates a backend-driven automation pipeline similar to lightweight CRM and lead management systems.
It processes incoming leads, evaluates their quality, and routes high-priority leads to external systems for immediate action.
- ✅ Lead ingestion via REST API (Node.js + Express)
- ✅ Dynamic lead scoring (HOT / WARM / COLD)
- ✅ Event-driven workflow using n8n
- ✅ Conditional routing using Switch logic
- ✅ Real-time Slack notifications for HOT leads
- ✅ Modular and extensible architecture
Lead Source (API / Scraper / Form) ↓ Backend API (Node.js) ↓ Scoring Engine (HOT / WARM / COLD) ↓ n8n Workflow (Webhook + Switch) ↓ Slack Notification (HOT Leads)
- Node.js (Express)
- TypeScript
- n8n (Workflow Automation)
- Slack Webhooks
- Axios
- Lead is sent to backend API
- Backend evaluates lead score and assigns a tier
- Data is forwarded to n8n via webhook
- n8n routes lead using Switch node
- HOT leads trigger real-time Slack notifications
git clone https://github.com/your-username/lead-automation-system.git
cd backend npm install
npm run dev
docker run -it --rm -p 5678:5678 n8nio/n8n
- Lead generation systems
- CRM automation
- Sales pipeline prioritization
- Marketing automation workflows
- Email automation for WARM leads
- Lead storage (database integration)
- Multi-client support
- Advanced scoring rules
Muhammad Usman
Backend & Automation Engineer