Automate Survey Analysis with n8n, Qdrant & OpenAI

Struggling to extract meaningful insights from large survey data? This n8n workflow automates analyzing survey responses by clustering similar answers and summarizing them using OpenAI. Save hours on manual review and get detailed sentiment insights effortlessly.
googleSheets
embeddingsOpenAi
vectorStoreQdrant
+10
Workflow Identifier: 1203
NODES in Use: googleSheets, set, splitOut, embeddingsOpenAi, defaultDataLoader, vectorStoreQdrant, executeWorkflow, httpRequest, splitInBatches, code, filter, informationExtractor, lmChatOpenAi
Automate survey analysis with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow takes many survey answers from Google Sheets and finds groups of similar replies.
It then writes short, clear summaries with feelings about each group back to Google Sheets.
This helps people understand big survey results fast, without reading every answer one by one.

You save time and get good insights from lots of open-text responses.


Who should use this workflow

This is for someone who has many text answers from surveys.
If you want to find patterns in answers and get readable summaries without manual work, this fits you.

It’s helpful when you have over hundreds of responses and want clear, question-by-question insights.


Tools and services used


How this workflow works – Input → Process → Output

Inputs

The workflow reads raw survey answers from Google Sheets.
It expects each participant’s answers in one row with questions as columns.

Processing Steps

  1. Google Sheets node pulls all answer data.
  2. Set node changes each row into many question-answer pairs with participant info.
  3. Split Out node separates these pairs to handle each answer alone.
  4. Embeddings OpenAI node turns answers into vector numbers for comparison.
  5. Default Data Loader node adds needed metadata tags to each vector.
  6. Qdrant Vector Store node inserts all vectors into a Qdrant collection for search and clustering.
  7. Main workflow triggers a sub-workflow to work on insights per question.
  8. Sub-workflow creates a new Google Sheet tab named with the date for the new insights.
  9. It reads question headers from Google Sheets and filters only questions by checking for question mark marks.
  10. Each question is processed in batches:
    • Fetches all vectors related to that question from Qdrant.
    • Runs a Code node that applies K-means clustering on answers to find groups.
    • Filters clusters with less than 3 answers.
    • Fetches full answer details for each cluster.
    • Langchain Information Extractor node asks GPT-4o-mini to write cluster summaries and find sentiment.
  11. Summaries and sentiments get prepared in a Set node and sent back to Google Sheets in the insights tab.

Outputs

At the end, the Google Sheet has a new tab with clusters of answers summarized with sentiment scores.
You see the main opinions grouped by question with clear texts.


Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor where you want to use it.
  3. Use “Import from File” option in n8n to bring in the workflow.

Step 2: Configure credentials and IDs

  1. Add your Google Sheets credentials for reading and writing survey data.
  2. Add your OpenAI API Key for embeddings and GPT model calls.
  3. Configure access to your Qdrant instance by providing connection details.
  4. If any node has IDs like Spreadsheet ID or Sheet Name, update them to match your data.

Step 3: Review code and prompts

Check nodes that have custom code or prompts, especially the clustering and GPT summary steps.
Copy and paste code if needed.

Step 4: Test the workflow

  1. Run the workflow manually with a small survey dataset.
  2. Make sure it pulls data, creates embeddings, clusters, summarizes, and writes insights back to Google Sheets.

Step 5: Activate for production

  1. Turn the workflow’s trigger on or schedule regular runs in n8n.
  2. Watch the logs to check the progress.

If self-hosting n8n is needed for better control, see self-host n8n options.


Customization ideas

  • Change embedding models in the Embeddings OpenAI node to improve understanding of answers.
  • Adjust number of clusters or clustering algorithms in the Code node to better fit your data.
  • Modify GPT system prompt to change sentiment categories or summary style.
  • Export summaries to other places like Airtable or databases by changing export nodes.
  • Change metadata tags in the Default Data Loader node to refine filtering and clustering.

Troubleshooting common problems

  • Problem: Cannot fetch Google Sheets data or OAuth errors.
    Cause: Google credentials expired or wrong.
    Fix: Reauthorize Google Sheets credentials and check sheet permissions.
  • Problem: Clustering returns empty or no clusters found.
    Cause: Data is too diverse or small.
    Fix: Check data quality and lower cluster size or change K-means settings.
  • Problem: OpenAI API limit errors.
    Cause: Too many requests or bad API key.
    Fix: Monitor usage dashboard and add rate limiting in n8n.

Pre-production checklist

  • Check Google Sheets format has participants as rows and questions as columns.
  • Confirm Qdrant collection ux_survey_insights exists and accessible.
  • Validate OpenAI API keys have embedding and GPT-4o-mini permissions.
  • Test workflow on small data first.
  • Backup original survey sheet before running the workflow.
  • Verify credentials in n8n are fully authorized.

Deployment guide

Enable the trigger node to start the workflow or schedule periodic runs.
Check logs in n8n to follow progress and fix errors fast.

Scale by running n8n on stronger server or increase Qdrant resources if processing very large surveys.
For self-host n8n options, see related links.


Summary

→ Converts thousands of written survey answers into clear groupings and summaries.
→ Uses Google Sheets for input and output to keep data in place.
→ Applies OpenAI embeddings and GPT-4o-mini for grouping and summarizing answers.
→ Uses Qdrant vector database to store and process answer vectors efficiently.
→ Automatically creates an insights report with sentiment and participant counts shown.

✓ Saves days of manual reading and writing.
✓ Detects themes and opinions clearly per question.
✓ Handles large survey datasets with recovery and batch processing.


Automate survey analysis with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow is made to work with Qdrant but can be adjusted to use Pinecone, Weaviate, or Vespa with code and configuration changes.
Yes, it uses credits for embedding and GPT calls. Usage can be reduced by controlling batch size and input length.
Reauthorize the Google Sheets credentials in n8n settings and confirm access permissions for the spreadsheet.
It creates a new Google Sheet tab with grouped answer clusters summarized and labeled with sentiments and participant info.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.