Automation library · Lead generation

Enrich lead emails from websites with Google Sheets and OpenAI

Started by a clock, and works across Google Sheets. It hands the judgement calls to OpenAI. 19 steps, 4 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

19 stepsMedium: a working afternoon
4Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 9Service 7

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

  1. 1Trigger Every 30 MinutesSchedule triggerStarts it
  2. 2Read Leads from SheetsGoogle SheetsService
  3. 3Filter Leads Without EmailFilterLogic
  4. 4Limit to 20 LeadsLimitLogic
  5. 5Set Lead FieldsSetLogic
  6. 6Fetch Company WebsiteHttp RequestService
  7. 7Extract mailto from HTMLSetLogic
  8. 8Check for mailto in HTMLIfLogic
  9. 9Update Sheets with mailto EmailGoogle SheetsService
  10. 10Extract Contact Email with AIOpen AiModel
  11. 11Check AI Email ExtractionIfLogic
  12. 12Update Sheets with AI EmailGoogle SheetsService
  13. 13Set Contact Link FieldSetLogic
  14. 14Check for Contact PageIfLogic
  15. 15Fetch Contact PageHttp RequestService
  16. 16Mark LinkedIn Only LeadsGoogle SheetsService
  17. 17AI Extract Email from Contact PageOpen AiModel
  18. 18Check Contact Page EmailIfLogic
  19. 19Update Sheets with Contact EmailGoogle SheetsService

How it's built

Starts on
A clock
Steps
19, with 4 branches
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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