Automation library · Customer support

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.

LargeCalls a model: OpenAIRetrieval

33 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 10Logic 13Service 9

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5Chat webChat triggerStarts it
  6. 6Structured Output ParserOutput Parser StructuredModel
  7. 7Append row in sheet in Google SheetsGoogle Sheets ToolService
  8. 8HTTP Request2Http Request ToolService
  9. 9AI AgentAgentModel
  10. 10AI Agent1AgentModel
  11. 11Get data schemaGoogle SheetsService
  12. 12Message a model1Open AiModel
  13. 13Respond to Chat1ChatModel
  14. 14If1IfLogic
  15. 15IfIfLogic
  16. 16Loop Over ItemsSplit In BatchesLogic
  17. 17OPTIONSSetLogic
  18. 18Respond to ChatChatModel
  19. 19CompleteGoogle SheetsService
  20. 20Req URLHttp RequestService
  21. 21UA Rotativo1CodeLogic
  22. 22HTML to MarkdownMarkdownLogic
  23. 23Req robotsHttp RequestService
  24. 24extract sitemap urlCodeLogic
  25. 25Req ErrorStop And ErrorLogic
  26. 26Maping SitemapHttp RequestService
  27. 27XML1XmlLogic
  28. 28Sitemap ErrorStop And ErrorLogic
  29. 29Message a modelOpen AiModel
  30. 30Maping SitemapsHttp RequestService
  31. 31XMLXmlLogic
  32. 32MergeCodeLogic
  33. 33Split URLsSplit OutLogic

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.