How lokeshdeore412-ctrl/lead-engine works
Lead Engine captures website signals in a client-side SDK, sends them to an n8n webhook, processes leads through documented classification and qualification stages, then persists results and notifies Slack. The README also documents configurable enrichment, AI sales context, idempotency, and error handling. The workflow JSON and SQL schema are present in the tree but were not excerpted, so internal workflow relationships rely on README documentation; no error-workflow file appears in the supplied tree.
Main entry points: lead-engine-workflow-v1.json n8n Webhook · lead-engine-sdk.js Tracking SDK · client-config.json Client Configuration · schema.sql PostgreSQL
Components 16
Signal Capture
- Tracking SDK
lead-engine-sdk.js - n8n Webhook
lead-engine-workflow-v1.json
Lead Processing
- Lead Identity
lead-engine-workflow-v1.json - Lead Classification
lead-engine-workflow-v1.json - Deterministic Scoring
lead-engine-workflow-v1.json - Keyword Qualification
lead-engine-workflow-v1.json - Lead Enrichment
lead-engine-workflow-v1.json - AI Sales Context
lead-engine-workflow-v1.json - Client Configuration
client-config.json
Storage and Context
- PostgreSQL
schema.sql - Event Idempotency
schema.sql
Notifications
- Slack Notifications
lead-engine-workflow-v1.json
Other components
- Website
- Enrichment Provider
- AI Provider
- Slack
Connections 15
- Website → Tracking SDK: provides signals
readme.md - Tracking SDK → n8n Webhook: POSTs events
lead-engine-sdk.js - Client Configuration → Tracking SDK: configures capture
readme.md - n8n Webhook → Lead Identity: identifies leads
readme.md - n8n Webhook → Lead Classification: classifies leads
readme.md - n8n Webhook → Deterministic Scoring: scores leads
readme.md - n8n Webhook → Keyword Qualification: qualifies leads
readme.md - n8n Webhook → Lead Enrichment: enriches leads
readme.md - Lead Enrichment → Enrichment Provider: HTTP enrichment
readme.md - n8n Webhook → AI Sales Context: generates context
readme.md - AI Sales Context → AI Provider: requests AI context
readme.md - n8n Webhook → PostgreSQL: stores lead data
readme.md - n8n Webhook → Event Idempotency: prevents duplicates
readme.md - n8n Webhook → Slack Notifications: triggers notifications
readme.md - Slack Notifications → Slack: sends notifications
readme.md