# Auto-index your website and build a RAG chatbot with Firecrawl: n8n workflow

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

Source: https://millionrounds.com/workflow/auto-index-your-website-and-build-a-rag-chatbot-with-firecra (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)

# Auto-index your website and build a RAG chatbot with Firecrawl

Started by someone opening a chat with it, and works across Gmail and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 3 loops 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%2Fauto-index-your-website-and-build-a-rag-chatbot-with-firecra)

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

**0** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 9 Logic 8 Service 3

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

- 1 **When chat message received** Chat trigger *Starts it*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **Send a message in Gmail** Gmail Tool *Service*
- 4 **Run Indexing** Manual trigger *Starts it*
- 5 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 6 **Embeddings Mistral Cloud** Embeddings Mistral Cloud *Model*
- 7 **Embeddings Mistral Cloud1** Embeddings Mistral Cloud *Model*
- 8 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 9 **AI Agent** Agent *Model*
- 10 **set urls to scrape** Code *Logic*
- 11 **Default Data Loader** Document Default Data Loader *Model*
- 12 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 13 **Qdrant Vector Store1** Vector Store Qdrant *Model*
- 14 **Loop Over urls** Split In Batches *Logic*
- 15 **Wait** Wait *Logic*
- 16 **Remove Duplicates** Remove Duplicates *Logic*
- 17 **Map Site** Firecrawl *Service*
- 18 **Loop Over Items1** Split In Batches *Logic*
- 19 **Split Out links** Split Out *Logic*
- 20 **Single Scrape** Firecrawl *Service*
- 21 **extract only urls** Set *Logic*
- 22 **remove irrelevant params** Set *Logic*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 22, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Qdrant
- **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 Gmail and Qdrant accounts, 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 22 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 22 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%2Fauto-index-your-website-and-build-a-rag-chatbot-with-firecra)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

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

- [**Automate customer retention with Stripe** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-customer-retention-with-stripe)
- [**Classify client intake forms with Gemini and Gmail** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/classify-client-intake-forms-with-gemini-and-gmail)
- [**Gate film and TV music cue rights clearance with Gmail** 22 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/gate-film-and-tv-music-cue-rights-clearance-with-gmail)
- [**Smart chat assistant with OpenAI and Google Sheets** 22 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/smart-chat-assistant-with-openai-and-google-sheets)
- [**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)
- [**Extract spending history from Gmail to google sheet** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/extract-spending-history-from-gmail-to-google-sheet)
