# Scrape website with Gemini and Pinecone Database: n8n workflow

> Started by an event in a connected app, and works across Google Docs, Google Drive and Pinecone.

Source: https://millionrounds.com/workflow/scrape-website-with-gemini-and-pinecone-database (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# 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.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscrape-website-with-gemini-and-pinecone-database)

**30 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 9 Logic 13 Service 7

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

- 1 **When clicking "Execute Workflow"** Manual trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **SerpAPI** Tool Serp Api *Model*
- 5 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 6 **Embeddings Google Gemini** Embeddings Google Gemini *Model*
- 7 **Create Doc** Google Docs *Service*
- 8 **Organizes inofrmation** Agent *Model*
- 9 **Email's use** Agent *Model*
- 10 **Default Data Loader** Document Default Data Loader *Model*
- 11 **Insert into Pinecone vector store** Vector Store Pinecone *Model*
- 12 **Download website link** Google Drive *Service*
- 13 **Loop Over Items** Split In Batches *Logic*
- 14 **Merge 1** Merge *Logic*
- 15 **Extract from File** Extract From File *Service*
- 16 **Updates doc file** Google Docs *Service*
- 17 **Filter image urls** If *Logic*
- 18 **Download doc** Google Drive *Service*
- 19 **Filter 200 status codes** Filter *Logic*
- 20 **Name of the company** Code *Logic*
- 21 **Merge** Merge *Logic*
- 22 **Get website data** Http Request *Service*
- 23 **Extract the emails found** Set *Logic*
- 24 **HTML Extract** Html Extract *Service*
- 25 **Split Out** Split Out *Logic*
- 26 **Clean Content** Code *Logic*
- 27 **If contains email** If *Logic*
- 28 **Remove Duplicates** Remove Duplicates *Logic*
- 29 **Finds emails** Code *Logic*
- 30 **only sends emails further** If *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscrape-website-with-gemini-and-pinecone-database)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Create sprint goals from Google Sheets with Pega Agile Studio** 30 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-sprint-goals-from-google-sheets-with-pega-agile-studi)
- [**Generate UGC ads from Google Sheets with Fal.AI and WAN2.2** 30 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-ugc-ads-from-google-sheets-with-fal-ai-and-wan2-2)
- [**Create emotional stories with Gemini and Veo3 JSON** 29 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-emotional-stories-with-gemini-and-veo3-json)
- [**Create structured Notion workspaces from notes & voice** 29 steps · calls a model · Google Drive, Notion](https://millionrounds.com/workflow/create-structured-notion-workspaces-from-notes-and-voice)
- [**AI-powered auto-generate exam questions** 32 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-powered-auto-generate-exam-questions)
- [**Create consistent AI characters with Google Nano Banana** 28 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-consistent-ai-characters-with-google-nano-banana)
