Score and route qualified leads to Notion and Matrix
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Notion
n8n-nodes-base.notion - Matrix
n8n-nodes-base.matrix
What it does
Lead Scoring Pipeline – Matrix + Notion This workflow automatically enriches incoming form leads, applies a customizable scoring model, then routes high-value prospects to a Notion CRM database and a Matrix channel for instant sales notification. It streamlines lead qualification by combining third-party enrichment APIs, conditional logic, and asynchronous batching—eliminating manual research and ensuring your sales team focuses on the best opportunities. Pre-conditions/Requirements Prerequisites - n8n instance (self-hosted or n8n cloud) - ScrapeGraphAI community node installed - Matrix community node installed - Notion Integration (internal integration or Notion OAuth) - Active third-party enrichment/validation APIs (e.g., Clearbit, Hunter, Kickbox) for scoring data - A Notion database set up as your “Leads” table with fields: Name, Email, Company, Score, Status, Enrichment Required Credentials - ScrapeGraphAI API Key – For optional web-scraping based enrichment - Notion OAuth2 / Integration Token – To create & update pages in your CRM database - Matrix Username & Password – For sending room messages - (Optional) Third-party API Keys – Clearbit, Hunter, etc. Additional Setup Requirements | Setting | Example / Notes | |---------------------------------|----------------------------------------------------------| | Notion Database ID | 8f3d49e8c8f74e6f9d32e8e2bf7c1c46 | | Matrix Room ID | !aBcDeFgHiJ:matrix.org | | Scoring Threshold (env var) | LEADSCOREMIN=70 | | Batch Size | SPLITINBATCHES=10 (controls parallel requests) | | Webhook URL for form submission | https://your-n8n-instance/webhook/leads | How it works This workflow automatically enriches incoming form leads, applies a customizable scoring model, then routes high-value prospects to a Notion CRM database and a Matrix channel for instant sales notification. It streamlines lead qualification by combining third-party enrichment APIs, conditional logic, and asynchronous batching—eliminating manual research and ensuring your sales team focuses on the best opportunities. Key Steps: - Schedule / Webhook Trigger: Starts on a schedule (daily) or via a form-submission webhook. - Split in Batches: Processes leads in manageable chunks to avoid rate limits. - HTTP Requests: Calls enrichment APIs (Clearbit, Hunter, etc.) to retrieve firmographic & technographic data. - Code (Scoring Logic): Calculates a numeric lead score using weighted criteria (industry, employee count, email validity, etc.). - If Node (Qualification): Checks if the computed score meets or exceeds the defined threshold. - Notion Node: Inserts or updates the qualified lead record in your Notion CRM database. - Matrix Node: Sends a rich-text message to the sales room with lead details and score. - Wait + Merge: Handles asynchronous API limits and merges enrichment data back into the main flow. Set up steps Setup Time: 15-25 minutes 1. Clone the template in your n8n instance or import the JSON. 2. Set environment variables (LEADSCOREMIN, SPLITINBATCHES, API keys) in n8n Settings → Variables. 3. Configure the Webhook/Schedule Trigger - Webhook: copy the URL to your form provider - Schedule: set cron (e.g., every hour). 4. Update HTTP Request nodes with your enrichment API endpoints & headers. 5. Map Notion fields: open the Notion node → choose your connection → select your Leads database → map data pins (Name, Email, etc.). 6. Enter Matrix credentials & Room ID in the Matrix node. 7. Adjust scoring weights in the Code node (weights object) to match your ICP (Ideal Customer Profile). 8. Execute the workflow once with test data, verify Notion rows and Matrix messages. 9. Activate the workflow and monitor via n8n’s execution list. Node Descriptions Core Workflow Nodes: - Schedule Trigger / Webhook – Initiates the workflow on time-based interval or form submission. - SplitInBatches – Limits API calls to avoid hitting rate caps. - HTTP Request (Enrichment) – Queries external services for company, domain, and email data. -