Automation library · Lead generation

Automated B2B lead generation & cold emails with OpenAI

Started by someone submitting a form, and works across Gmail, Google Sheets and Telegram. It hands the judgement calls to OpenAI. 15 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

15 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 5Service 5

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

  1. 1OpenAI Chat Model1Lm Chat Open AiModel
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3On form submissionForm triggerStarts it
  4. 4Information Extractor1Information ExtractorModel
  5. 5Information ExtractorInformation ExtractorModel
  6. 6HTTP RequestHttp RequestService
  7. 7Edit FieldsSetLogic
  8. 8IfIfLogic
  9. 9FilterFilterLogic
  10. 10Send a messageGmailService
  11. 11Append row in sheetGoogle SheetsService
  12. 12Append or update row in sheetGoogle SheetsService
  13. 13Send a text messageTelegramService
  14. 14Loop Over ItemsSplit In BatchesLogic
  15. 15WaitWaitLogic

How it's built

Starts on
Someone submitting a form
Steps
15, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Telegram 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?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

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