Skip to main content

Survey insights with Qdrant, Python and Information Extractor

Workflow preview

Workflow preview
100%
Survey insights with Qdrant, Python and Information Extractor preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template is one of a 3 part series exploring use cases for clustering vector embeddings: Survey Insights Customer Insights Community Insights This template demonstrates the Survey Insights...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.googlesheets, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jimleuk.

Original n8n.io source

1.1 Workflow description

Title
Survey insights with Qdrant, Python and Information Extractor
Workflow name
Survey insights with Qdrant, Python and Information Extractor

This n8n template is one of a 3-part series exploring use-cases for clustering vector embeddings:

  • Survey Insights
  • Customer Insights
  • Community Insights

This template demonstrates the Survey Insights scenario where survey participant responses can be quickly grouped by similarity and an AI agent can generate insights on those groupings.

With this workflow, researchers can save days and even weeks of work breaking down cohorts of participants and identify frequently mentioned positives and negatives.

Sample Output: https://docs.google.com/spreadsheets/d/e/2PACX-1vT6m8XH8JWJTUAfwojc68NAUGC7q0lO7iV738J7aO5fuVjiVzdTRRPkMmT1C4N8TwejaiT0XrmF1Q48/pubhtml#

How it works

  • All survey questions and responses are imported from a Google Sheet.
  • Responses are then inserted into a Qdrant collection carefully tagged with the question and survey metadata.
  • For each question, all relevant response are put through a clustering algorithm using the Python Code node. The Qdrant points are returned in clustered groups.
  • Each group is looped to fetch the payloads of the points and feed them to the AI agent to summarise and generate insights for.
  • The resulting insights and raw responses are then saved to the Google Spreadsheet for further analysis by the researcher.

Requirements

  • Survey data and format as shown in the attached google sheet.
  • Qdrant Vectorstore for storing embeddings.
  • OpenAI account for embeddings and LLM.

Customising the Template

  • Adjust clustering parameters which make sense for your data. Add more clusters for open-ended questions and less clusters when responses are multiple choice.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1

Block 2 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 3 - Convert to Question Answer Pairs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 5 - Get Survey Results

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 6 - Get Survey Headers

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 7 - Extract Questions

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Questions to List

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 9 - Find All Answers

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Get Payload of Points

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Clusters To List

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 12 - Set Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 14 - Prep Output For Export

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Export To Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 16 - Export To Sheets1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 17 - For Each Question...

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 18 - Trigger Insights

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1

Block 19 - Prep Values For Trigger

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Execute Workflow Trigger

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1

Block 21 - Create Insights Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 22 - Prep Values For Export

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - QA Pairs to List

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Showing the first 24 of 42 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Survey insights with Qdrant, Python and Information Extractor
Complexity advanced
Nodes 42
Categories Market Research, AI Summarization
Author Jimleuk
Published 05 Aug 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2372/2372.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Survey insights with Qdrant, Python and Information Extractor do?

This n8n template is one of a 3 part series exploring use cases for clustering vector embeddings: Survey Insights Customer Insights Community Insights This template demonstrates the Survey Insights...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.