Automation library · AI assistants

Bitrix24 AI-Powered RAG Chatbot for Open Line Channels

Started by another system calling it, and works across Qdrant. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

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

The flow

Starts it 4Model 9Logic 12Service 8

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

  1. 1Bitrix24 HandlerWebhookStarts it
  2. 2Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  3. 3Execute Workflow TriggerExecute Workflow triggerStarts it
  4. 4Embeddings OllamaEmbeddings OllamaModel
  5. 5Embeddings Ollama1Embeddings OllamaModel
  6. 6Google Gemini Chat ModelLm Chat Google GeminiModel
  7. 7CredentialsSetLogic
  8. 8Default Data LoaderDocument Default Data LoaderModel
  9. 9Get a list of available storagesHttp RequestService
  10. 10Qdrant Vector StoreVector Store QdrantModel
  11. 11Qdrant Vector Store1Vector Store QdrantModel
  12. 12Question and Answer ChainChain Retrieval QaModel
  13. 13Validate TokenIfLogic
  14. 14Merge parameters for SubworkflowMergeLogic
  15. 15Get a list of List of Files and FoldersHttp RequestService
  16. 16Vector Store RetrieverRetriever Vector StoreModel
  17. 17Prepare output parametersSetLogic
  18. 18Route EventSwitchLogic
  19. 19Error ResponseRespond To WebhookStarts it
  20. 20Execute subworkflowExecute WorkflowLogic
  21. 21Get a list of Folders filesHttp RequestService
  22. 22Send MessageHttp RequestService
  23. 23Process MessageFunctionLogic
  24. 24Process JoinFunctionLogic
  25. 25Process InstallFunctionLogic
  26. 26Process DeleteNo OpLogic
  27. 27Success ResponseRespond To WebhookStarts it
  28. 28Split Out folder files and foldersSplit OutLogic
  29. 29Send Join MessageHttp RequestService
  30. 30Register BotHttp RequestService
  31. 31Filter for filesFilterLogic
  32. 32Download fileHttp RequestService
  33. 33Move files to Vector stored folderHttp RequestService

How it's built

Starts on
Another system calling it
Steps
33, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Qdrant
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, plus your own Qdrant account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling 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 33 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 33 steps before you point it at anything that matters.