Skip to main content

Community insights using Qdrant, Python and Information Extractor

Workflow preview

Workflow preview
100%
Community insights using 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 Community Insig...

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.hackernews, n8n-nodes-base.splitout, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter

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
Community insights using Qdrant, Python and Information Extractor
Workflow name
Community insights using 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 Community Insights scenario where HN commments can be quickly grouped by similarity and an AI agent can generate insights on those groupings.

With this workflow, Researchers or HN users can quickly breakdown community consensus on a particular topic and identify frequently mentioned positives and negatives.

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

How it works

  • HN comments are imported via the Hacknews API node.
  • Comments are then inserted into a Qdrant collection carefully tagged with the Hackernews API metadata.
  • Comments are then fetched and 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 or the HN user.

Requirements

  • Works best with lots of comments!
  • Qdrant Vectorstore for storing embeddings.
  • OpenAI account for embeddings and LLM.

Customising the Template

  • Adjust clustering parameters which make sense for your data.
  • Adjust sentimentality setting if comments are overwhelmingly negative at times.

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 - Hacker News

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

Block 3 - Split Out

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

Block 4 - Get Comments

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

Block 5 - Qdrant Vector Store

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

Block 6 - Embeddings OpenAI

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

Block 7 - Default Data Loader

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

Block 8 - Recursive Character Text Splitter

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

Block 9 - Set Variables

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

Block 10 - Clear Existing Comments

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

Block 11 - Get Payload of Points

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

Block 12 - Clusters To List

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

Block 13 - OpenAI Chat Model

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

Block 14 - Only Clusters With 3+ points

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

Block 15 - Set Variables1

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

Block 16 - Prep Output For Export

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

Block 17 - Export To Sheets

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

Block 18 - Execute Workflow Trigger

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

Block 19 - Trigger Insights

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

Block 20 - Prep Values For Trigger

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

Block 21 - Find Comments

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

Block 22 - Sticky Note6

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

Block 23 - Sticky Note2

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

Block 24 - Sticky Note1

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

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

3. Summary Table

Workflow Community insights using Qdrant, Python and Information Extractor
Complexity advanced
Nodes 36
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/2374/2374.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 Community insights using 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 Community Insig...

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.