Templates / Qualify and route real estate leads with OpenAI, PostgreSQL, Gmail and Slack

Qualify and route real estate leads with OpenAI, PostgreSQL, Gmail and Slack

Ready for 3.0

by WeblineIndia ✓ · 20 views · created 2026-09-08 · Lead Generation, AI Summarization

Ready 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 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Postgres, OpenAI, Twilio and Gmail and 1 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Extract Lead Details (Edit Fields (Set)): sets 7 fields: name, email, phone…
  2. Validate Lead Data (If): checks a condition and branches into true / false
  3. Save Lead in Database (Postgres): uses Postgres
  4. Combine Lead + AI Data (Merge): merges the data from its input branches
  5. Return Invalid Lead Response (Respond to Webhook): sends the response back to the webhook caller
  6. AI Lead Qualification (OpenAI): uses OpenAI
  7. Assign Sales Agent (Code): runs custom JavaScript code
  8. Parse AI Response (Code): runs custom JavaScript code
  9. Update Lead Score (Postgres): update
  10. Check High Priority Lead (If): checks a condition and branches into true / false

…plus 7 more steps. See the full node list below.

Services it uses

PostgresOpenAITwilioGmailSlack

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 (12)

From the author

Quick Overview This workflow receives real estate leads via a webhook, validates the data, stores it in PostgreSQL, scores and classifies the lead with OpenAI, assigns an agent by location, then sends customer confirmations via Twilio and Gmail and alerts the…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.