Automate Trustpilot Review Scraping & Sentiment Analysis with n8n

Save hours by automating the scraping of Trustpilot reviews using DeepSeek API and analyzing their sentiment with OpenAI. This n8n workflow extracts detailed review data and updates Google Sheets for ongoing business insights.
httpRequest
lmChatOpenAi
informationExtractor
+8
Workflow Identifier: 2272
NODES in Use: manualTrigger, set, httpRequest, html, splitOut, limit, googleSheets, if, informationExtractor, sentimentAnalysis, lmChatOpenAi
Automate review scraping with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow automatically gets reviews from Trustpilot for a company.

It cleans and reads each review to find who wrote it, the rating, the date, and the text.

Then it uses AI to decide if the review is positive, neutral, or negative.

Finally, it saves all this info in a Google Sheet without repeating reviews already stored.

This helps the user skip many hours of manual copying and analysis.


Inputs, Processing, and Output Explained

Inputs

  • Trustpilot company profile URL: The starting point for scraping reviews.
  • Max page number: Limits how many pages of reviews the workflow reads.
  • Google Sheets document ID and sheet name: Where data is saved.
  • API keys for DeepSeek and OpenAI: Needed for data extraction and sentiment analysis.

Processing Steps

  • Get multiple pages of reviews HTML from Trustpilot using an HTTP Request for each page.
  • Extract links to individual reviews from the HTML using a CSS selector.
  • Split the list of review URLs to process each review separately.
  • Limit the number of reviews for quick testing.
  • Check Google Sheets to see if a review ID already exists to avoid duplicates.
  • If the review is new, get the full HTML content for that review.
  • Extract the review’s detailed content from the HTML with an HTML node.
  • Use DeepSeek API to parse the review and pull out structured data fields like author, rating, date, title, text, user country, and number of past user reviews.
  • Run OpenAI’s sentiment analysis on the extracted review text to classify its tone as Positive, Neutral, or Negative.
  • Insert or update the review record in Google Sheets with all enriched fields and sentiment categorization.

Output

A Google Sheet that holds up-to-date, clean, and analyzed Trustpilot review data with no duplicates.

The sheet can be used for tracking customer opinions over time or further reporting.


Tools and Services Used

  • n8n: Automation platform to run the workflow.
  • Trustpilot: Source website for reviews.
  • DeepSeek Information Extractor API: Extracts structured data from raw review HTML.
  • OpenAI API: Performs sentiment analysis on review text.
  • Google Sheets API: Stores processed review data.

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 n8n editor where you want to use this automation.
  3. Click “Import from File” and select the downloaded workflow file.

Step 2: Configure Critical Settings

  1. In the Set Parameters node, update the company_id with your target company’s Trustpilot ID.
  2. Set max_page to how many pages of reviews to fetch.
  3. Add or update credentials for DeepSeek API and OpenAI API in n8n if needed.
  4. Check the Get Google Sheets and Update Sheet nodes to confirm the Google Sheets document ID and sheet name match your Google account.

Step 3: Test the Workflow

  1. Run the workflow manually by clicking the trigger node (usually a manual trigger).
  2. Watch the log and output to confirm reviews are fetched, parsed, analyzed, and saved properly.

Step 4: Activate for Regular Use

  1. Once testing is successful, activate the workflow by toggling the active switch in the editor.
  2. Optionally, add a Cron node to schedule periodic review scraping.
  3. If running on own server, consider self-host n8n for full control.

Troubleshooting Common Issues

  • No reviews appear after scraping: Update the CSS selector in the Extract node if the Trustpilot page layout changed.
  • Sentiment analysis returns errors or no data: Check that OpenAI API Key is valid and that internet connection is stable.
  • Google Sheets updates fail: Make sure the review ID used for matching is consistent and the correct column is referenced in nodes.
  • Workflow runs too long or uses too many API credits: Reduce max_page or limit the number of reviews processed per run.

Customization Ideas

  • Change the company_id in the Set Parameters node to scrape reviews for a different company.
  • Adjust max_page to fetch more or fewer review pages depending on data needs.
  • Modify the prompt in the Information Extractor node to extract extra details like product names or responses from companies.
  • Add more detailed sentiment categories in the Sentiment Analysis node by changing the OpenAI prompt.
  • Switch Google Sheets nodes with a CRM or database integration to save review data in other business tools.

Summary

✓ Saves hours spent manually copying reviews from Trustpilot.

✓ Extracts clean and detailed review data using AI.

✓ Analyzes sentiment for better understanding of customer opinions.

✓ Avoids duplicate records by checking Google Sheets before saving.

→ Provides a ready-to-use database of customer feedback for monitoring and reporting.

Automate review scraping with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow checks existing review IDs in Google Sheets using the Get Google Sheets node before saving new reviews.
DeepSeek parses the raw review HTML to extract structured data like author name, rating, date, title, full review text, user country, and number of user reviews.
Yes, the max_page parameter in the Set Parameters node controls how many pages of reviews get scraped.
Check that the OpenAI API Key is correct in n8n credentials and confirm the network connection is working.

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.
manualTrigger
twist
twist
Free

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.
googleSheets
httpRequest
chainLlm
+8
Free

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.
RespondToWebhook
If
Slack
+5
Free

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.
agent
lmChatOpenAi
toolWorkflow
+3
Free

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.
gumroadTrigger
googleSheets
httpRequest
+3
Free

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.
httpRequest
informationExtractor
wordpress
+9
Free
1:1 Free Strategy Session
Do you want to adopt AI Automation?

Your competitors are already automating. Are you still paying for it manually?

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.