Automation library · Lead generation

AI-powered outreach & follow-up automation with OpenAI

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Azure OpenAI. 22 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Azure OpenAI

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

The flow

Starts it 1Model 2Logic 10Service 9

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

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Configure GPT-4o ModelLm Chat Azure Open AiModel
  3. 3Retrieve Lead Records from Google SheetsGoogle SheetsService
  4. 4Generate Personalized Outreach Email (AI)AgentModel
  5. 5Validate Lead Data PayloadIfLogic
  6. 6Parse AI Email Output (JavaScript)CodeLogic
  7. 7Filter for Booked LeadsIfLogic
  8. 8Log Invalid Leads to Google SheetsGoogle SheetsService
  9. 9Send Initial Outreach Email via GmailGmailService
  10. 10Wait Before Thread Check (24 hr)WaitLogic
  11. 11Fetch Sent Email Thread from GmailGmailService
  12. 12Check for Client Reply (If Condition)IfLogic
  13. 13Extract Reply Details (JavaScript)CodeLogic
  14. 14Send Second Follow-Up Email via GmailGmailService
  15. 15Update Lead Record – Booked (Google Sheets)Google SheetsService
  16. 16Wait Before Second Thread Check (24 hr)WaitLogic
  17. 17Fetch Follow-Up Thread from GmailGmailService
  18. 18Check for Second Reply (If Condition)IfLogic
  19. 19Extract Second Reply Details (JavaScript)CodeLogic
  20. 20Update Lead Status to Declined (Set Node)SetLogic
  21. 21Update Lead Record – Replied (Google Sheets)Google SheetsService
  22. 22Update Lead Record – Declined (Google Sheets)Google SheetsService

How it's built

Starts on
An event in a connected app
Steps
22, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
Azure OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

Does it use AI?

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

How long does it take to set up?

Take your time. At 22 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 22 steps before you point it at anything that matters.