Score and route real estate leads with GPT‑4.1, MLS/CRM data, and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 35 nodes and runs on a schedule (every day at 09:00). Along the way it connects OpenAI Chat Model, Embeddings OpenAI, HTTP Request and Postgres and 1 more.
How it runs
Trigger: On a schedule (every day at 09:00).
- Workflow Configuration (Edit Fields (Set)): sets 9 fields: mlsApiUrl, crmApiUrl, highPriorityThreshold…
- Fetch Leads from MLS/Portals (HTTP Request): calls an HTTP API
- Fetch Leads from CRM/Email/Social (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Lead Enrichment Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Enrichment; output parser: Structured Output - Enriched Lead Data
- Loop Over Leads (Loop Over Items (Split in Batches)): loops over the items in batches
- Lead Scoring Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Scoring; output parser: Structured Output - Lead Score
- Lead Sentiment Analysis (Sentiment Analysis): scores sentiment with AI, with model: OpenAI Model - Sentiment
- Aggregate: combines items into one
- Agent Routing Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Routing; 2 tools (Lead Knowledge Base - Retrieve, Http Request Tool); output parser: Structured Output - Routing Decision
…plus 11 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + PostgreSQL templates (191) · Other PostgreSQL + Slack templates (109)
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 (19)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Http Request Tool
n8n-nodes-base.httpRequestTool - Postgres
n8n-nodes-base.postgres - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Aggregate
n8n-nodes-base.aggregate
From the author
How It Works This workflow automates end-to-end e-commerce order processing from intake through fulfillment by orchestrating multiple AI-powered validation stages and external system integrations. Designed for e-commerce operations managers, customer service…