Automation library · Customer support

Build a website RAG support chatbot with Firecrawl

Started by someone opening a chat with it, and works across Pinecone. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Model 8Logic 8Service 4

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

  1. 1Document LoaderDocument Default Data LoaderModel
  2. 2When chat message receivedChat triggerStarts it
  3. 3Chat MemoryMemory Buffer WindowModel
  4. 4OpenAI EmbeddingsEmbeddings Open AiModel
  5. 5Google Gemini Chat ModelLm Chat Google GeminiModel
  6. 6Embeddings Google GeminiEmbeddings Google GeminiModel
  7. 7Website URL FormForm triggerStarts it
  8. 8Store in Vector DatabaseVector Store PineconeModel
  9. 9Customer Support AgentAgentModel
  10. 10Pinecone Vector StorageVector Store PineconeModel
  11. 11Normalize Website URLSetLogic
  12. 12Process URLs One by OneSplit In BatchesLogic
  13. 13Get Pinecone Index HostHttp RequestService
  14. 14Rate Limit DelayWaitLogic
  15. 15Clear Pinecone Namespace (Prevent Duplicates)Http RequestService
  16. 16Fetch Page ContentHttp RequestService
  17. 17Map Website URLsFirecrawlService
  18. 18Extract HTML and URLSetLogic
  19. 19Filter and Normalize URLsCodeLogic
  20. 20Clean HTML to TextCodeLogic
  21. 21Check Text LengthIfLogic
  22. 22Split Text into ChunksCodeLogic

How it's built

Starts on
Someone opening a chat with it
Steps
22, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Pinecone
Model
Gemini, 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 Pinecone account, and a key for Gemini and 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 Gemini and 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.