Skip to main content

Customer insights with Qdrant, Python and information extractor

Workflow preview

Workflow preview
100%
Customer 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 Customer Insigh...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.html, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.httprequest

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
Customer insights with Qdrant, Python and information extractor
Workflow name
Customer 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 Customer Insights scenario where Trustpilot reviews can be quickly grouped by similarity and an AI agent can generate insights on those groupings.

With this workflow, marketers can save days and even weeks of work breaking down their own or competitor reviews and identify frequently mentioned positives and negatives.

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

How it works

  • Trustpilot reviews are scraped for a particular company using the HTTP request node.
  • Reviews are then inserted into a Qdrant collection carefully tagged with the question and Trustpilot metadata.
  • Reviews are fetched and 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 marketer.

Requirements

  • Qdrant Vectorstore for storing embeddings.
  • OpenAI account for embeddings and LLM.

Customising the Template

  • Adjust clustering parameters which make sense for your data.
  • Consider expanding date range of reviews for insights over common intervals: 3mth, 6mth and YTD.

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 - When clicking ‘Test workflow’

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

Block 2 - Zip Entries

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

Block 3 - Extract Reviews

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 4 - Reviews to List

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

Block 5 - Default Data Loader

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

Block 6 - Recursive Character Text Splitter

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

Block 7 - Embeddings OpenAI

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

Block 8 - Set Variables

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

Block 9 - Get Payload of Points

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

Block 10 - Clusters To List

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

Block 11 - OpenAI Chat Model

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

Block 12 - Only Clusters With 3+ points

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 13 - Set Variables1

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

Block 14 - Find Reviews

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

Block 15 - Prep Output For Export

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

Block 16 - Export To Sheets

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

Block 17 - Clear Existing Reviews

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

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 - Sticky Note

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

Block 22 - Sticky Note1

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

Block 23 - Get TrustPilot Page

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

Block 24 - Sticky Note2

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

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

3. Summary Table

Workflow Customer insights with Qdrant, Python and information extractor
Complexity advanced
Nodes 37
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/2373/2373.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 Customer 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 Customer Insigh...

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.