Automate Trustpilot Review Insights with n8n & Qdrant

This n8n workflow scrapes customer reviews from Trustpilot, clusters similar feedback using Qdrant vector store and K-means, then generates actionable insights with OpenAI. It solves the problem of manually analyzing large volumes of reviews for precise customer sentiment and suggestions.
manualTrigger
httpRequest
vectorStoreQdrant
+13
Workflow Identifier: 1204
NODES in Use: Manual Trigger, Set, HTML Extract, SplitOut, Document Default Data Loader, Recursive Character Text Splitter, Embeddings OpenAI, Qdrant Vector Store, HTTP Request, Code, Filter, Information Extractor, Google Sheets, Execute Workflow, Execute Workflow Trigger, Sticky Note
Automate Trustpilot reviews with n8n and Qdrant

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

Learn how to Build this Workflow with AI:

What This Automation Does

This n8n workflow fetches recent Trustpilot reviews for a chosen company.
It finds key patterns and groups similar comments automatically.
Then it writes simple summaries and suggests how to improve service.
The result is a fast way to understand many reviews without reading each one by hand.


Tools and Services Used


How This Workflow Works (Input → Process → Output)

Inputs

Processing Steps

  • Clear old data in Qdrant to avoid duplicates.
  • Fetch up to 3 pages of recent reviews from Trustpilot.
  • Extract review author, rating, text, date, and links from HTML.
  • Merge all extracted fields into single review records.
  • Split array to handle each review individually.
  • Generate vector embeddings for each review text using OpenAI.
  • Store these embeddings plus metadata into Qdrant.
  • Call a subworkflow to cluster review vectors using K-means.
  • Filter clusters with fewer than three reviews.
  • Fetch full review data for each cluster.
  • Use GPT-4 to write summaries, sentiment, and suggestions for each cluster.
  • Format this info and add it to Google Sheets.

Output

  • Clear JSON review records saved in Qdrant.
  • Clustered groups of similar reviews.
  • Easy-to-read summaries with sentiment and improvement ideas.
  • Google Sheets file with insights for team sharing.

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 your n8n editor.
  3. Click on menu and choose “Import from File”.
  4. Select the downloaded file and import.

Step 2: Configure Credentials and Settings

  1. Add your OpenAI API Key in n8n Credentials.
  2. Enter Qdrant API access keys where required.
  3. Connect Google Sheets account using OAuth2.
  4. Update the company ID in the Set Variables node with the target Trustpilot company slug.
  5. If needed, update Google Sheets file ID, sheet name, or folder paths.

Step 3: Test and Run

  1. Manually trigger the workflow using the play button.
  2. Watch node outputs to ensure reviews are fetched and processed.
  3. Check Google Sheets for the insights summary.

Step 4: Activate for Production

  1. Turn on the workflow to run on schedule or via webhook.
  2. Regularly monitor n8n execution logs.
  3. Consider self-host n8n for better control and privacy.

Common Edge Cases and Troubleshooting

  • If no reviews show after extraction, check and update CSS selectors.
  • If Qdrant calls fail, verify stored credentials for API access.
  • If clustering breaks with an error on first run, wait for Python dependencies to install.
  • If Google Sheets export does not work, confirm OAuth connection and sheet permissions.

Customization Ideas

  • Change the page count for review fetch to get more or less data.
  • Adjust number of clusters in the K-means code node for finer or broader grouping.
  • Modify date range to analyze specific periods.
  • Add new data fields from Trustpilot by updating CSS selectors.
  • Send insights to Slack or email instead of Google Sheets.

Summary

→ This workflow takes many Trustpilot reviews and groups similar feedback.
→ It writes easy summaries with sentiment and suggestions.
→ It saves lots of time and avoids missing important points.
→ Users get clear reports in Google Sheets ready to share.


Code Snippet: K-means Clustering Algorithm

This Python code groups review embedding vectors into clusters automatically.
The clusters help find common topics in the data.

import numpy as np
from sklearn.cluster import KMeans

point_ids = [item.id for item in _input.first().json.result.points]
vectors = [item.vector.to_py() for item in _input.first().json.result.points]
vectors_array = np.array(vectors)

kmeans = KMeans(n_clusters=min(len(vectors), 5), random_state=42).fit(vectors_array)
labels = kmeans.labels_

clusters = {}
for label in set(labels):
    clusters[label] = vectors_array[labels == label]

output = []
for cluster_id, cluster_points in clusters.items():
    points = [point_ids[i] for i in range(len(labels)) if labels[i] == cluster_id]
    output.append({
        "id": f"Cluster {cluster_id}",
        "total": len(cluster_points),
        "points": points
    })

return {"json": {"output": output }}

Automate Trustpilot reviews with n8n and Qdrant

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file. In n8n, use “Import from File” to load it. Add your OpenAI API Key, Qdrant credentials, and connect Google Sheets. Update the Trustpilot company ID in the Set Variables node. Then test and activate the workflow.
No reviews extract often means Trustpilot changed page layout. Update the CSS selectors in Extract Reviews node to match new HTML structure.
Yes, modify the n_clusters value in the Python code node called Apply K-means Clustering Algorithm to increase or decrease cluster groups.
Yes, but API requests in HTTP nodes need updating to match the new database’s API. The workflow works best with Qdrant by default.

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.