Automation library · Data collection

Scrape website with Gemini and Pinecone Database

Started by an event in a connected app, and works across Google Docs, Google Drive and Pinecone. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

30 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 9Logic 13Service 7

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

  1. 1When clicking "Execute Workflow"Manual triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Google Gemini Chat Model1Lm Chat Google GeminiModel
  4. 4SerpAPITool Serp ApiModel
  5. 5Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  6. 6Embeddings Google GeminiEmbeddings Google GeminiModel
  7. 7Create DocGoogle DocsService
  8. 8Organizes inofrmationAgentModel
  9. 9Email's useAgentModel
  10. 10Default Data LoaderDocument Default Data LoaderModel
  11. 11Insert into Pinecone vector storeVector Store PineconeModel
  12. 12Download website linkGoogle DriveService
  13. 13Loop Over ItemsSplit In BatchesLogic
  14. 14Merge 1MergeLogic
  15. 15Extract from FileExtract From FileService
  16. 16Updates doc fileGoogle DocsService
  17. 17Filter image urlsIfLogic
  18. 18Download docGoogle DriveService
  19. 19Filter 200 status codesFilterLogic
  20. 20Name of the companyCodeLogic
  21. 21MergeMergeLogic
  22. 22Get website dataHttp RequestService
  23. 23Extract the emails foundSetLogic
  24. 24HTML ExtractHtml ExtractService
  25. 25Split OutSplit OutLogic
  26. 26Clean ContentCodeLogic
  27. 27If contains emailIfLogic
  28. 28Remove DuplicatesRemove DuplicatesLogic
  29. 29Finds emailsCodeLogic
  30. 30only sends emails furtherIfLogic

How it's built

Starts on
An event in a connected app
Steps
30, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Docs, Google Drive, Pinecone
Model
Gemini
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Google Docs, Google Drive and Pinecone accounts, and a key for Gemini. 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 Gemini. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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