Automation library · Chat assistants

AI powered RAG chatbot for your docs + Google Drive + Gemini

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

LargeCalls a model: Gemini, OpenAIRetrieval

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

The flow

Starts it 3Model 14Logic 9Service 9

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

  1. 1Token SplitterText Splitter Token SplitterModel
  2. 2When clicking ‘Test workflow’Manual triggerStarts it
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4text-embeddings-3-largeEmbeddings Open AiModel
  5. 5gpt-4o-mini1Lm Chat Open AiModel
  6. 6WebhookWebhookStarts it
  7. 7Window Buffer MemoryMemory Buffer WindowModel
  8. 8When chat message receivedChat triggerStarts it
  9. 9Google Gemini Chat Model1Lm Chat Google GeminiModel
  10. 10text-embeddings-3-large1Embeddings Open AiModel
  11. 11Google DriveGoogle DriveService
  12. 12OpenAI Chat ModelLm Chat Open AiModel
  13. 13Data LoaderDocument Default Data LoaderModel
  14. 14Google Folder IDSetLogic
  15. 15Extract Meta DataInformation ExtractorModel
  16. 16Qdrant Vector StoreVector Store QdrantModel
  17. 17Delete Qdrant Points by File IDCodeModel
  18. 18AI AgentAgentModel
  19. 19Qdrant Vector Store ToolVector Store QdrantModel
  20. 20Find File Ids in Google Drive FolderGoogle DriveService
  21. 21MergeMergeLogic
  22. 22WaitWaitLogic
  23. 23Merge2MergeLogic
  24. 24Update Chat HistoryGoogle DocsService
  25. 25Respond to UserSetLogic
  26. 26File Id ListSummarizeService
  27. 27Qdrant Collection NameSetLogic
  28. 28Loop Over ItemsSplit In BatchesLogic
  29. 29Merge1MergeLogic
  30. 30Send Completed MessageTelegramService
  31. 31Download File From Google DriveGoogle DriveService
  32. 32Confirm Qdrant Delete PointsTelegramService
  33. 33Get File ContentsExtract From FileService
  34. 34IfIfLogic
  35. 35Send Declined MessageTelegramService

How it's built

Starts on
Someone opening a chat with it
Steps
35, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Docs, Google Drive, Qdrant, Telegram
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 Google Docs, Google Drive, Qdrant and Telegram accounts, 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 35 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 35 steps before you point it at anything that matters.