# Speed to Lead: SMS Qualification (Real Estate) with OpenAI: n8n workflow

> Started by another system calling it, and works across Supabase and Twilio. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/speed-to-lead-sms-qualification-real-estate-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Speed to Lead: SMS Qualification (Real Estate) with OpenAI

Started by another system calling it, and works across Supabase and Twilio. It hands the judgement calls to OpenAI. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fspeed-to-lead-sms-qualification-real-estate-with-openai)

**24 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Model 2 Logic 6 Service 13

The steps in the order they run, from what starts it.

- 1 **New Lead, Website Form** Webhook *Starts it*
- 2 **Incoming SMS Reply** Webhook *Starts it*
- 3 **OpenAI, Generate Reply** Open Ai *Model*
- 4 **Parse Lead Data** Set *Logic*
- 5 **Parse SMS Reply** Set *Logic*
- 6 **Save Lead to Supabase** Supabase *Service*
- 7 **Fetch Conversation History** Supabase *Service*
- 8 **Initialise Conversation Memory** Supabase *Service*
- 9 **Save User Message** Supabase *Service*
- 10 **Send Greeting SMS** Twilio *Service*
- 11 **Respond to Webhook** Respond To Webhook *Starts it*
- 12 **Build AI Prompt** Code *Logic*
- 13 **Send Q1, Timeline** Twilio *Service*
- 14 **Message a model** Open Ai *Model*
- 15 **Check if Qualified** Code *Logic*
- 16 **Qualified?** If *Logic*
- 17 **Hot Lead?** If *Logic*
- 18 **Save Assistant Reply** Supabase *Service*
- 19 **Hot, Book a Call SMS** Twilio *Service*
- 20 **Warm/Cold, Soft Booking SMS** Twilio *Service*
- 21 **Send Next Question** Twilio *Service*
- 22 **Update Lead Score in Supabase** Supabase *Service*
- 23 **Send to CRM** Http Request *Service*
- 24 **Alert Agent via SMS** Twilio *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 24, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Supabase, Twilio
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Supabase and Twilio accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fspeed-to-lead-sms-qualification-real-estate-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Supabase](https://millionrounds.com/workflows?service=Supabase#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Qualify mortgage leads and collect documents with Gemini** 24 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/qualify-mortgage-leads-and-collect-documents-with-gemini)
- [**Smarter RAG agents with Gemini and Supabase** 24 steps · calls a model · Supabase, Supabase vectors](https://millionrounds.com/workflow/smarter-rag-agents-with-gemini-and-supabase)
- [**Qualify Facebook leads with ElevenLabs and Supabase** 24 steps · Gmail, Slack](https://millionrounds.com/workflow/qualify-facebook-leads-with-elevenlabs-and-supabase)
- [**Reddit lead finder: prospecting with OpenAI and Supabase** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/reddit-lead-finder-prospecting-with-openai-and-supabase)
- [**Speed to Lead: SMS Qualification (Solar Installers)** 25 steps · calls a model · Supabase, Twilio](https://millionrounds.com/workflow/speed-to-lead-sms-qualification-solar-installers)
- [**Capture, score and route Gmail leads with Groq Llama 3.3** 22 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/capture-score-and-route-gmail-leads-with-groq-llama-3-3)
