Automation library · Lead generation

Qualify and route inbound leads with OpenAI and Google Sheets

Started by someone submitting a form, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI. 21 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 9Service 8

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

  1. 1Lead Capture FormForm triggerStarts it
  2. 2OpenAI GPT-5Lm Chat Open AiModel
  3. 3Lead Score ParserOutput Parser StructuredModel
  4. 4Clean & Validate LeadCodeLogic
  5. 5Is Email Valid?IfLogic
  6. 6Check Existing LeadGoogle SheetsService
  7. 7Invalid Email - No ActionNo OpLogic
  8. 8Is New Lead?IfLogic
  9. 9Notify Workflow ErrorGmailService
  10. 10Enrich Company DataHttp RequestService
  11. 11Duplicate Lead - No ActionNo OpLogic
  12. 12Merge EnrichmentCodeLogic
  13. 13AI Lead QualificationAgentModel
  14. 14Log All LeadsGoogle SheetsService
  15. 15Route by CategorySwitchLogic
  16. 16Notify Sales on SlackSlackService
  17. 17Send Hot Lead AlertGmailService
  18. 18Send Auto-Reply to LeadGmailService
  19. 19Wait 1 DayWaitLogic
  20. 20Tag as Cold (No Outreach)SetLogic
  21. 21Send Nurture Follow-upGmailService

How it's built

Starts on
Someone submitting a form
Steps
21, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

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 21 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 21 steps before you point it at anything that matters.