Automation library · Research and reporting

Survey insights with Qdrant and Python

Started by an event in a connected app, and works across Google Sheets and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 2Model 6Logic 14Service 8

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

  1. 1Embeddings OpenAIEmbeddings Open AiModel
  2. 2Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Execute Workflow TriggerExecute Workflow triggerStarts it
  5. 5When clicking ‘Test workflow’Manual triggerStarts it
  6. 6Qdrant Vector StoreVector Store QdrantModel
  7. 7Default Data LoaderDocument Default Data LoaderModel
  8. 8Survey Insights AgentInformation ExtractorModel
  9. 9Get Sheet DetailsHttp RequestService
  10. 10Get Survey ResultsGoogle SheetsService
  11. 11Prep Values For TriggerSetLogic
  12. 12Prep Output For ExportSetLogic
  13. 13Set VariablesSetLogic
  14. 14Convert to Question Answer PairsSetLogic
  15. 15Trigger InsightsExecute WorkflowLogic
  16. 16Export To SheetsGoogle SheetsService
  17. 17Create Insights SheetGoogle SheetsService
  18. 18QA Pairs to ListSplit OutLogic
  19. 19For Each Question...Split In BatchesLogic
  20. 20Get Survey HeadersGoogle SheetsService
  21. 21Find All AnswersHttp RequestService
  22. 22Extract QuestionsSetLogic
  23. 23Apply K-means Clustering AlgorithmCodeLogic
  24. 24Questions to ListSplit OutLogic
  25. 25Has Clusters?IfLogic
  26. 26Clusters To ListSplit OutLogic
  27. 27Prep Values For ExportSetLogic
  28. 28Only Clusters With 3+ pointsFilterLogic
  29. 29Export To Sheets1Google SheetsService
  30. 30Get Payload of PointsHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
30, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, 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 Sheets 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 an event in a connected app.

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 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.