Automation library · Lead generation

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.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 2Logic 6Service 13

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

  1. 1New Lead, Website FormWebhookStarts it
  2. 2Incoming SMS ReplyWebhookStarts it
  3. 3OpenAI, Generate ReplyOpen AiModel
  4. 4Parse Lead DataSetLogic
  5. 5Parse SMS ReplySetLogic
  6. 6Save Lead to SupabaseSupabaseService
  7. 7Fetch Conversation HistorySupabaseService
  8. 8Initialise Conversation MemorySupabaseService
  9. 9Save User MessageSupabaseService
  10. 10Send Greeting SMSTwilioService
  11. 11Respond to WebhookRespond To WebhookStarts it
  12. 12Build AI PromptCodeLogic
  13. 13Send Q1, TimelineTwilioService
  14. 14Message a modelOpen AiModel
  15. 15Check if QualifiedCodeLogic
  16. 16Qualified?IfLogic
  17. 17Hot Lead?IfLogic
  18. 18Save Assistant ReplySupabaseService
  19. 19Hot, Book a Call SMSTwilioService
  20. 20Warm/Cold, Soft Booking SMSTwilioService
  21. 21Send Next QuestionTwilioService
  22. 22Update Lead Score in SupabaseSupabaseService
  23. 23Send to CRMHttp RequestService
  24. 24Alert Agent via SMSTwilioService

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.