Automate Trustpilot Review Analysis with n8n & Qdrant

Struggling to analyze Trustpilot reviews efficiently? This n8n workflow scrapes, clusters, and generates insights from customer reviews using Qdrant vector store and OpenAI, saving hours of manual work and delivering actionable feedback.
manualTrigger
vectorStoreQdrant
lmChatOpenAi
+14
Workflow Identifier: 1084
NODES in Use: manualTrigger, set, httpRequest, html, splitOut, documentDefaultDataLoader, textSplitterRecursiveCharacterTextSplitter, embeddingsOpenAi, vectorStoreQdrant, lmChatOpenAi, informationExtractor, filter, code, googleSheets, executeWorkflow, executeWorkflowTrigger, set
Automate review analysis with n8n and Qdrant

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow helps you automatically collect and analyze customer reviews from Trustpilot for a specific company domain.
It solves the problem of manually reading many reviews, which takes hours and can miss important feedback.
The workflow groups similar reviews, finds main topics, rates sentiment, and creates summaries.
At the end, it saves these insights in Google Sheets for easy sharing.
This lets you quickly understand customer opinions and improve your business.


Who Should Use This Workflow

If you manage online customer reviews and find manual reading slow or tiring, this workflow fits well.
Marketing analysts, customer service managers, or small business owners tracking Trustpilot will get faster insights.
It is good for those who want clear, organized feedback without spending many hours reading each review by hand.


Tools and Services Used

  • n8n: The automation platform where the workflow runs.
  • Trustpilot: Source of customer reviews by company domain.
  • OpenAI API: Used to convert reviews to vector embeddings and to generate review summaries and sentiment.
  • Qdrant Vector Database: Stores review embeddings for similarity search and clustering.
  • Python Environment inside n8n: Runs K-means clustering on review vectors.
  • Google Sheets: Saves and shares the review insights and raw data.

Note: For more control or privacy, consider self-host n8n.


Inputs, Processing Steps, and Outputs

Inputs

  • The company’s Trustpilot domain URL set as a variable.
  • Access credentials for OpenAI API, Qdrant, and Google Sheets.

Processing Steps

  • Clear old reviews from the Qdrant vector database for the chosen company.
  • Scrape the first three pages of latest Trustpilot reviews using HTTP requests.
  • Extract detailed review data like author, rating, title, body, dates, and country from the HTML using CSS selectors.
  • Convert review title and text into semantic vectors using OpenAI embeddings.
  • Store the review vectors and metadata in Qdrant for similarity and clustering.
  • Fetch reviews from Qdrant matching a selected date range.
  • Apply Python K-means clustering on the stored vectors to group similar reviews.
  • Filter clusters to keep only those with three or more reviews.
  • Retrieve full review data for each cluster from Qdrant.
  • Send each cluster’s reviews to OpenAI GPT-4o-mini to generate sentiment ratings, summarized insights, and suggested improvements.
  • Format this information and export it to a Google Sheets document.

Outputs

  • A Google Sheet with organized customer insights per cluster.
  • Sentiment scores and suggested improvements for each review group.
  • Raw review data clustered by similarity for additional reference.

Beginner Step-by-Step: How to Build the Workflow in n8n

Import the Workflow

  1. Use the Download button on this page to get the workflow file.
  2. Inside n8n editor, go to the main menu and choose “Import from File.”
    Upload the downloaded JSON file.

Configure Credentials and Variables

  1. Provide OpenAI API credentials in the Embeddings OpenAI and Customer Insights Agent nodes.
  2. Add Qdrant API credentials in the respective Qdrant nodes.
    Check the URL and authentication token are correct.
  3. Connect Google Sheets with proper OAuth credentials in the Export To Sheets node.
    Provide the Google Sheets document ID and sheet name if needed.
  4. Set your company’s Trustpilot domain in the Set Variables node. For example, “www.freddiesflowers.com.”

Test and Activate

  1. Run the workflow once manually to see if it scrapes, embeds, clusters, and exports data correctly.
  2. If there are errors, check credentials and node configurations.
    Adjust CSS selectors in Extract Reviews if Trustpilot updated their site.
  3. When tests succeed, activate the workflow to run on schedule or trigger as you want.

Remember, for more control or privacy in production, consider self-host n8n.


Customization Ideas

  • You can increase the pages fetched in Get TrustPilot Page node beyond the default 3 to get more reviews.
  • Change the maximum number of clusters by editing the n_clusters parameter in the Python Apply K-means Clustering Algorithm node.
  • Edit date range filters in Set Variables1 node to analyze reviews for past months or custom periods.
  • Swap out Qdrant for another vector database if preferred and compatible with n8n.
  • Adjust the sentiment categories or messages in the system prompt inside Customer Insights Agent for your business style.


Common Issues and Troubleshooting

  • Qdrant HTTP 401 Unauthorized: This means Qdrant API keys are wrong or expired.
    Check and update credentials in n8n settings.
  • OpenAI API Request Failed: Possibly from bad API keys or rate limit exceeded.
    Verify keys and monitor usage.
  • Python Node Errors or Delays: Missing sklearn package causes failure.
    Install sklearn on the n8n server or allow runtime installation.
  • Empty or Wrong Review Extraction: Trustpilot HTML changed, breaking CSS selectors.
    Update selectors in Extract Reviews node to fix.


Summary of Results

✓ The workflow automates Trustpilot review collection and analysis.
✓ It clusters reviews by similarity, rates sentiment, and provides key insights.
✓ Final reports are saved in Google Sheets for easy review sharing.
✓ Saves many hours of manual work and helps focus on real customer feedback.
✓ Works with configurable page limits, cluster counts, and date ranges.


Automate review analysis with n8n and Qdrant

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes. To use a different platform, update the URLs and CSS selectors in the nodes that scrape and extract reviews.
Usage depends on how many reviews and clusters are processed. Both embeddings and GPT-4o-mini calls use credits, so monitor your OpenAI account.
Yes. Data is transmitted over encrypted HTTPS connections. Anonymize sensitive data before sending if needed.
Yes, but increase pagination limits and adjust cluster counts accordingly. Performance depends on Qdrant and OpenAI limits.

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.