Automation library · Lead generation

Capture and score multi-channel leads with Gmail

Started by another system calling it, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI. 39 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 6Model 5Logic 17Service 11

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Webhook - Web FormWebhookStarts it
  3. 3Webhook - WhatsApp/TelegramWebhookStarts it
  4. 4Auto Nurturing TriggerSchedule triggerStarts it
  5. 5Weekly Report TriggerSchedule triggerStarts it
  6. 6Error TriggerError triggerStarts it
  7. 7Normalize InputCodeLogic
  8. 8Leads for NurturingGoogle SheetsService
  9. 9Read Report DataGoogle SheetsService
  10. 10Slack - Error AlertSlackService
  11. 11Is Valid Lead?IfLogic
  12. 12Filter for NurturingCodeLogic
  13. 13Calculate MetricsCodeLogic
  14. 14IgnoreNo OpLogic
  15. 15Find Existing LeadGoogle SheetsService
  16. 16AI Nurturing EmailOpen AiModel
  17. 17Slack - Weekly ReportSlackService
  18. 18Check HistoryCodeLogic
  19. 19AI Analysis EngineOpen AiModel
  20. 20Calculate Lead ScoreCodeLogic
  21. 21Action RouterSwitchLogic
  22. 22Generate Response - DemoOpen AiModel
  23. 23Generate Response - InfoOpen AiModel
  24. 24Create Call TaskCodeLogic
  25. 25Generate Response - NurturingOpen AiModel
  26. 26Disqualify LeadCodeLogic
  27. 27Prepare Email - DemoCodeLogic
  28. 28Prepare Email - InfoCodeLogic
  29. 29Slack - Call TaskSlackService
  30. 30Prepare Email - NurturingCodeLogic
  31. 31Save/Update LeadCodeLogic
  32. 32Send EmailGmailService
  33. 33Is New Lead?IfLogic
  34. 34Sheet - New LeadGoogle SheetsService
  35. 35Sheet - Update LeadGoogle SheetsService
  36. 36Log InteractionGoogle SheetsService
  37. 37Notify Sales?IfLogic
  38. 38Slack - Hot Lead AlertSlackService
  39. 39DoneNo OpLogic

How it's built

Starts on
Another system calling it
Steps
39, with 4 branches
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 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 39 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 39 steps before you point it at anything that matters.