# Crawl websites & answer questions with OpenAI: n8n workflow

> Started by someone opening a chat with it, and works across Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you...

Source: https://millionrounds.com/workflow/crawl-websites-and-answer-questions-with-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Crawl websites & answer questions with OpenAI

Started by someone opening a chat with it, 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. 33 steps, 2 branches, 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%2Fcrawl-websites-and-answer-questions-with-openai)

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

**2** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 10 Logic 13 Service 9

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **Get row(s) in sheet in Google Sheets** Google Sheets Tool *Service*
- 4 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 5 **Chat web** Chat trigger *Starts it*
- 6 **Structured Output Parser** Output Parser Structured *Model*
- 7 **Append row in sheet in Google Sheets** Google Sheets Tool *Service*
- 8 **HTTP Request2** Http Request Tool *Service*
- 9 **AI Agent** Agent *Model*
- 10 **AI Agent1** Agent *Model*
- 11 **Get data schema** Google Sheets *Service*
- 12 **Message a model1** Open Ai *Model*
- 13 **Respond to Chat1** Chat *Model*
- 14 **If1** If *Logic*
- 15 **If** If *Logic*
- 16 **Loop Over Items** Split In Batches *Logic*
- 17 **OPTIONS** Set *Logic*
- 18 **Respond to Chat** Chat *Model*
- 19 **Complete** Google Sheets *Service*
- 20 **Req URL** Http Request *Service*
- 21 **UA Rotativo1** Code *Logic*
- 22 **HTML to Markdown** Markdown *Logic*
- 23 **Req robots** Http Request *Service*
- 24 **extract sitemap url** Code *Logic*
- 25 **Req Error** Stop And Error *Logic*
- 26 **Maping Sitemap** Http Request *Service*
- 27 **XML1** Xml *Logic*
- 28 **Sitemap Error** Stop And Error *Logic*
- 29 **Message a model** Open Ai *Model*
- 30 **Maping Sitemaps** Http Request *Service*
- 31 **XML** Xml *Logic*
- 32 **Merge** Code *Logic*
- 33 **Split URLs** Split Out *Logic*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 33, with 2 branches, 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 someone opening a chat with it.

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 33 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 33 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%2Fcrawl-websites-and-answer-questions-with-openai)
- **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 customer support, with the same services where possible, closest in size first.

- [**Answer onboarding questions in Slack with Anthropic** 33 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/answer-onboarding-questions-in-slack-with-anthropic)
- [**AI-powered WhatsApp support bot with OpenAI and Gmail** 32 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-whatsapp-support-bot-with-openai-and-gmail)
- [**Automated customer support system with Gmail** 31 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-customer-support-system-with-gmail)
- [**Triage and draft support replies with Anthropic** 31 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/triage-and-draft-support-replies-with-anthropic)
- [**AI-powered WhatsApp customer service with OpenAI and Gmail** 37 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-whatsapp-customer-service-with-openai-and-gmail)
- [**Voiceflow demo support chatbot with Airtable** 29 steps · Airtable, Google Calendar](https://millionrounds.com/workflow/voiceflow-demo-support-chatbot-with-airtable)
