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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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 }}

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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free