# Cluster webpage topics from Google Sheets: n8n workflow

> Started by a clock, and works across Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from...

Source: https://millionrounds.com/workflow/cluster-webpage-topics-from-google-sheets (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)

# Cluster webpage topics from Google Sheets

Started by a clock, and works across Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 21 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcluster-webpage-topics-from-google-sheets)

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

**0** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 12 Logic 5 Service 3

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Memory Buffer** Memory Buffer Window *Model*
- 3 **Structured JSON Parser** Output Parser Structured *Model*
- 4 **OpenAI Chat Model for Clustering** Lm Chat Open Ai *Model*
- 5 **Memory Buffer for Clustering** Memory Buffer Window *Model*
- 6 **Cluster JSON Parser** Output Parser Structured *Model*
- 7 **OpenAI Chat Model for Links** Lm Chat Open Ai *Model*
- 8 **Memory Buffer for Links** Memory Buffer Window *Model*
- 9 **Link Suggestions JSON Parser** Output Parser Structured *Model*
- 10 **Weekly Schedule Trigger** Schedule trigger *Starts it*
- 11 **AI Agent - Extract Entities & Keywords** Agent *Model*
- 12 **AI Agent - Assign Topic Clusters** Agent *Model*
- 13 **AI Agent - Generate Internal Links** Agent *Model*
- 14 **Fetch URL List from Google Sheets** Google Sheets *Service*
- 15 **Format Extracted Data** Set *Logic*
- 16 **Format Cluster Data** Set *Logic*
- 17 **Prepare Sheet Update** Set *Logic*
- 18 **Split URLs In Batches** Split In Batches *Logic*
- 19 **Update Sheet Row** Google Sheets *Service*
- 20 **Fetch HTML from URL** Http Request *Service*
- 21 **Extract Headings (H1-H6)** Html *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 21, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets
- **Model:** OpenAI
- **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 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. 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 21 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 21 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%2Fcluster-webpage-topics-from-google-sheets)
- **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 Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

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

- [**ACOP - bank account opening AI agent with Gemini** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/acop-bank-account-opening-ai-agent-with-gemini)
- [**Automate HR celebrations with Gemini and Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-hr-celebrations-with-gemini-and-sheets)
- [**Automating SAP B1 journal entries with JSON and Google Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automating-sap-b1-journal-entries-with-json-and-google-sheet)
- [**Build an EU AI Act risk inventory with OpenAI** 21 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/build-an-eu-ai-act-risk-inventory-with-openai)
- [**Customer personality (BaZi, DISC, Numerology) with Gemini** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/customer-personality-bazi-disc-numerology-with-gemini)
- [**Detect client portfolio news impact with Gemini and Gmail** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/detect-client-portfolio-news-impact-with-gemini-and-gmail)
