Qualify and route sales leads with Mistral-Saba AI and MCDM scoring
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.
What this workflow does
This AI workflow has 20 nodes and runs on a schedule (every hour). Along the way it connects OpenRouter Chat Model.
How it runs
Trigger: On a schedule (every hour).
- Workflow Configuration (Edit Fields (Set)): sets 9 fields: demographicApiUrl, behavioralApiUrl, transactionalApiUrl…
- Fetch Demographic Data (HTTP Request): calls an HTTP API
- Fetch Behavioral Data (HTTP Request): calls an HTTP API
- Fetch Transactional Data (HTTP Request): calls an HTTP API
- Merge Lead Data Sources (Aggregate): combines items into one
- MCDM Scoring Engine (AHP-TOPSIS) (Code): runs custom JavaScript code
- AI Lead Qualification Agent (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 1 tool (Lead Enrichment Tool)
- Prepare Lead Scores (Edit Fields (Set)): sets 4 fields: leadScore, leadTier, aiInsights…
- Route by Lead Quality (Switch): routes items into 4 branches
- Assign to Enterprise Sales Team (HTTP Request): calls an HTTP API (POST)
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Switch
n8n-nodes-base.switch - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
How It Works The workflow starts with a scheduled trigger that activates at set intervals. Behavioral data from multiple sources is parsed and sent to the MCDN routing engine, which intelligently assigns leads to the right teams based on predefined rules.…