AutomationMart
Home/Browse/Score and route qualified leads to Notion and Matrix
n8n

Score and route qualified leads to Notion and Matrix

n8nn8n16 modulesv1.0
Notion

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 Prerequisite

At a glance

Score and route qualified leads to Notion and Matrix is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Notion. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Notion
Modules
16
Price
Free
Version
v1.0
Score and route qualified leads to Notion and Matrix workflow diagram

About this workflow

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 | | 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. - Set (Normalize) – Formats API responses for scoring. - Code (Score Calculator) – JavaScript that assigns points based on business rules. - If (Score ≥ Threshold?) – Branches leads into “Qualified” or “Discard” paths. - Notion (Create/Update Page) – Inserts the qualified lead into Notion database. - Matrix (Send Message) – Notifies the sales team with lead context. - Merge (Rejoin Streams) – Consolidates asynchronous branches before completion. - Sticky Note – Documentation & config hints embedded directly in the canvas. Data Flow: 1. Schedule/Webhook → SplitInBatches → HTTP Request (Enrichment) → Set → Code (Score) → If (Qualified?) → a. (Yes) Notion → Matrix b. (No) Wait (Cooldown) → Merge Customization Examples 1. Change Scoring Weights 2. Notify Different Matrix Rooms Based on Territory Data Output Format The workflow outputs structured JSON data: Troubleshooting Common Issues 1. Low or zero scores for valid leads – Review weighting logic and API response mapping in the Code node. 2. Notion “Missing required property” error – Ensure all mandatory database fields are mapped and Notion token has write access. 3. Matrix authentication failure – Double-check username/password or switch to an access token login method. Performance Tips - Reduce SPLITINBATCHES size if you’re hitting API rate limits. - Enable “Execute Once” during testing to prevent excess API usage. Pro Tips: - Store enrichment API keys as n8n credentials, not hard-coded strings. - Add a second If node to flag “Priority” leads (score > 90) for immediate follow-up. - Use n8n’s built-in logging to create an audit trail by writing each execution to a Loggly/Datadog endpoint. --- This is a community template provided “as is.” Always test thoroughly in a non-production environment before activating in production.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Seo blog generator with GPT-4o, Perplexity, and Telegram integration

SEO Blog Generator with GPT-4o, Perplexity, and Telegram Integration This workflow helps you automatically generate SEO-optimized blog posts using Perplexity.ai, OpenAI GPT-4o, and optionally Telegram for interaction. --- 🚀 Features - 🧠 Topic research via Perplexity sub-workflow - ✍️ AI-written blog post generated with GPT-4o - 📊 Structured output with metadata: title, slug, meta description - 📩 Integration with Telegram to trigger workflows or receive outputs (optional) --- ⚙️ Requirements - ✅

Free

Create branded LinkedIn carousels with GPT-4o-mini, Figma templates & templated

AI-Powered LinkedIn Post Automation with Figma Templates 🧩 How It Works This workflow automatically generates professional, branded LinkedIn posts using your custom Figma designs. Perfect for marketers, agencies, content creators, and businesses who want to maintain consistent branding while automating social media content creation. Key Features: - Design-first approach using Figma templates - AI-powered content generation (optional) - High-quality image generation from templates -

Free

Create new tasks in PomoDoneApp from new Notion items

This template periodically checks for new database items in Notion and uses the retrieved information to create new tasks in PomoDoneApp. The template is scheduled to run every 15 minutes. You can change the schedule after you set up the template.

Free

Create a new Notion page for every new email received in Gmail using ChatGPT

Automatically create a new Notion page for every email received in Gmail using ChatGPT, streamlining your email management and organization.

Free

Import CSV contacts to Notion database from Google Drive

How to use 1. Get a .csv file with your contacts (you can download this from any contact manager app) 2. Set API key for Google Drive API, and Notion (you need to create a "connection" in Notion) 3. Create Database for your contacts in Notion 4. Choose which properties to extract from the .csv and pass it in to the Notion database. Right now, it transfer 4 pieces of information: full name, email, phone, and company.

Free

Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4

Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale

Free

🛠️ QuickBooks Online tool MCP Server 💪 all 42 operations

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? Join the community Complete MCP server exposing all QuickBooks Online Tool operations to AI agents. Zero configuration needed - all 42 operations pre-built. ⚡ Quick Setup 1. Import this workflow into your n8n instance 2. Activate the workflow to start your MCP server 3. Copy the webhook URL from the MCP trigger node 4. Connect AI agents using the MCP URL 🔧 How it Works • MCP Tr

Free

Promote YouTube videos on Reddit with AI-generated comments and email digest

Motivation Are you a small YT channel looking to grow to 1000 subs ? This workflow has helped me grow to 80 subs via Reddit Marketing. Check out the YT Tutorial. What it is This n8n workflow automates the process of promoting your YouTube videos on Reddit. It identifies relevant Reddit posts, generates humanized comments tailored to your video content, and delivers a weekly digest of opportunities directly to your inbox. How It Works A user submits their YouTube video URL and email through a fo

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free