Automation library · AI assistants

Chatbot Workflow with Vector Store

Started by someone opening a chat with it. It calls services over plain HTTP rather than through connectors. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 21 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

21 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 2Model 12Logic 5Service 2

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Google Gemini Chat Model2Lm Chat Google GeminiModel
  3. 3Google Gemini Chat Model3Lm Chat Google GeminiModel
  4. 4Embeddings Google Gemini3Embeddings Google GeminiModel
  5. 5Embeddings Google Gemini1Embeddings Google GeminiModel
  6. 6Recursive Character Text Splitter1Text Splitter Recursive Character Text SplitterModel
  7. 7Redis Chat MemoryMemory Redis ChatModel
  8. 8Structured Output ParserOutput Parser StructuredModel
  9. 9When chat message receivedChat triggerStarts it
  10. 10HTTP RequestHttp RequestService
  11. 11AI Agent1AgentModel
  12. 12kb_toolTool Vector StoreModel
  13. 13Redis Vector Store1Vector Store RedisModel
  14. 14Redis Vector StoreVector Store RedisModel
  15. 15Default Data Loader1Document Default Data LoaderModel
  16. 16XMLXmlLogic
  17. 17Loop URLsSplit In BatchesLogic
  18. 18Split OutSplit OutLogic
  19. 19Scrape PageHttp RequestService
  20. 20Code in JavaScriptCodeLogic
  21. 21HTMLHtmlLogic

How it's built

Starts on
Someone opening a chat with it
Steps
21, 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
Gemini
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 Gemini. 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. 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 21 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 21 steps before you point it at anything that matters.