The flow
Starts it 2Model 14Logic 10Service 2
The steps in the order they run, from what starts it.
- 1When chat message receivedChat triggerStarts it
- 2Structured Output ParserOutput Parser StructuredModel
- 3Embeddings OpenAIEmbeddings Open AiModel
- 4Embeddings OpenAI1Embeddings Open AiModel
- 5Default Data LoaderDocument Default Data LoaderModel
- 6OpenAI Chat ModelLm Chat Open AiModel
- 7Schedule TriggerSchedule triggerStarts it
- 8Simple MemoryMemory Buffer WindowModel
- 9Simple Memory1Memory Buffer WindowModel
- 10Simple Memory2Memory Buffer WindowModel
- 11LangCache ConfigSetLogic
- 12decompose_queryAgentModel
- 13Redis Vector Store2Vector Store RedisModel
- 14Redis Vector StoreVector Store RedisModel
- 15synthesize_response_nodeAgentModel
- 16search_node1AgentModel
- 17example DataSetLogic
- 18Split OutSplit OutLogic
- 19evaluate_qualityOpen AiModel
- 20Loop Over ItemsSplit In BatchesLogic
- 21getScoreSetLogic
- 22AggregateAggregateLogic
- 23Search LangCacheHttp RequestService
- 24low quality ?IfLogic
- 25Is Cache Hit?IfLogic
- 26current_iterationSetLogic
- 27increase iterationSetLogic
- 28Save to LangCacheHttp RequestService
How it's built
- Starts on
- Someone opening a chat with it
- Steps
- 28, with 2 branches, 1 loop or waits
- Size
- Large: read it before trusting it with anything live
- Connects to
- Nothing by connector; it calls services over plain HTTP
- 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, 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 28 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 itNothing 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 28 steps before you point it at anything that matters.