Automation library · AI assistants

Build an All-Source Knowledge Assistant with Claude and RAG

Started by someone opening a chat with it, and works across Google Drive and Supabase vectors. It puts Claude and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude, OpenAIRetrieval

30 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 4Model 15Logic 4Service 7

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Postgres Chat MemoryMemory Postgres ChatModel
  3. 3Embeddings OpenAIEmbeddings Open AiModel
  4. 4Reranker CohereReranker CohereModel
  5. 5Anthropic Chat ModelLm Chat AnthropicModel
  6. 6structured dataPostgres ToolService
  7. 7When clicking ‘Execute workflow’Manual triggerStarts it
  8. 8Recursive Character Text Splitter1Text Splitter Recursive Character Text SplitterModel
  9. 9Embeddings OpenAI1Embeddings Open AiModel
  10. 10ThinkTool ThinkModel
  11. 11When Executed by Another WorkflowExecute Workflow triggerStarts it
  12. 12Read File From GDriveTool WorkflowModel
  13. 13Search Files from GdriveGoogle Drive ToolService
  14. 14search about any doc in google driveMcp Client ToolModel
  15. 15Message a model in PerplexityPerplexity ToolService
  16. 16Knowledge AgentAgentModel
  17. 17General knowledgeVector Store SupabaseModel
  18. 18Download fileGoogle DriveService
  19. 19Default Data Loader1Document Default Data LoaderModel
  20. 20Add to Supabase Vector DBVector Store SupabaseModel
  21. 21OperationSwitchLogic
  22. 22Google Drive MCP ServerMcp triggerStarts it
  23. 23Download File1Google DriveService
  24. 24FileTypeSwitchLogic
  25. 25Extract from PDFExtract From FileService
  26. 26Extract from CSVExtract From FileService
  27. 27Analyse ImageOpen AiModel
  28. 28Transcribe AudioOpen AiModel
  29. 29Get PDF ResponseSetLogic
  30. 30Get CSV ResponseSetLogic

How it's built

Starts on
Someone opening a chat with it
Steps
30, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Supabase vectors
Model
Claude, 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 Drive and Supabase vectors accounts, and a key for Claude 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 Claude 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 30 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 30 steps before you point it at anything that matters.