Automation library · AI assistants

Website chatbot with Google Drive and OpenAI

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

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 3Model 9Logic 6Service 5

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Character Text SplitterText Splitter Character Text SplitterModel
  5. 5Embeddings Mistral CloudEmbeddings Mistral CloudModel
  6. 6Embeddings Mistral Cloud1Embeddings Mistral CloudModel
  7. 7When clicking ‘Execute workflow’Manual triggerStarts it
  8. 8WebhookWebhookStarts it
  9. 9website chat agentAgentModel
  10. 10Default Data LoaderDocument Default Data LoaderModel
  11. 11Qdrant Vector Store1Vector Store QdrantModel
  12. 12Qdrant Vector StoreVector Store QdrantModel
  13. 13Google Drive(brand related data for chatbot)Google DriveService
  14. 14Loop Over Items1Split In BatchesLogic
  15. 15Set metadataSetLogic
  16. 16Google Drive(load file)Google DriveService
  17. 17Mistral UploadHttp RequestService
  18. 18Mistral Signed URLHttp RequestService
  19. 19Mistral DOC OCRHttp RequestService
  20. 20If2IfLogic
  21. 21WaitWaitLogic
  22. 22prepare for chunkingSetLogic
  23. 23Code(convert to chunks for loading into vector db)CodeLogic

How it's built

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