Skip to main content

Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI

Workflow preview

Workflow preview
100%
Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI 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 workflow automates the process of scraping Trustpilot reviews , extracting key details, analyzing sentiment, and saving the results to Google Sheets . It uses OpenAI for sentiment analysis and...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.informationextractor, n8n-nodes-base.if, n8n-nodes-base.manualtrigger, n8n-nodes-base.limit, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI
Workflow name
Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI

Workflow Overview

This workflow automates the process of scraping Trustpilot reviews, extracting key details, analyzing sentiment, and saving the results to Google Sheets. It uses OpenAI for sentiment analysis and HTML parsing for review extraction.


How It Works

1. Scrape Trustpilot Reviews
  • HTTP Request:
    • Fetches review pages from Trustpilot (https://it.trustpilot.com/review/{{company_id}}).
    • Paginates through pages (up to max_page limit).
  • HTML Parsing:
    • Extracts review URLs using CSS selectors
    • Splits the URLs into individual review links.
2. Extract Review Details
  • Information Extractor:
    • Uses DeepSeek to extract structured data from the review:
      • Author: Name of the reviewer.
      • Rating: Numeric rating (1-5).
      • Date: Review date in YYYY-MM-DD format.
      • Title: Review title.
      • Text: Full review text.
      • Total Reviews: Number of reviews by the user.
      • Country: Reviewer’s country (2-letter code).
3. Sentiment Analysis
  • Sentiment Analysis Node:
    • Uses OpenAI to classify the review text as Positive, Neutral, or Negative.
    • Example output:
      {  
        "category": "Positive",  
        "confidence": 0.95  
      }  
      
4. Save to Google Sheets
  • Google Sheets Node:
    • Appends or updates the extracted data to a Google Sheet

Set Up Steps

1. Configure Trustpilot Scraping
  • Edit Fields1 Node:
    • Set company_id to the Trustpilot company name
    • Set max_page to limit the number of pages scraped.
2. Configure Google Sheets
  • Google Sheets Node:
    • Update the documentId with your Google Sheet ID
    • Ensure the sheet has the required columns (Id, Data, Nome, etc.).
3. Configure OpenAI
  • OpenAI Chat Model Node:
    • Add your OpenAI API key.
  • Sentiment Analysis Node:
    • Ensure the categories match your desired sentiment labels (Positive, Neutral, Negative).

Key Components

  • Nodes:
    • HTTP Request/HTML: Scrape and parse Trustpilot reviews.
    • Information Extractor: Extract structured review data using DeepSeek.
    • Sentiment Analysis: Classify review sentiment.
    • Google Sheets: Save and update review data.
  • Credentials:
    • OpenAI API key.
    • DeepSeek API key.
    • Google Sheets OAuth2.

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 - Split Out

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

Block 2 - Information Extractor

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

Block 3 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 4 - When clicking ‘Test workflow’

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

Block 5 - Limit1

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Set Parameters

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

Block 11 - Get reviews

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

Block 12 - Extract

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 13 - Get rows

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

Block 14 - Get Google Sheets

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

Block 15 - Get Single review

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

Block 16 - Extract review

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 17 - Update sheet

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

Block 18 - Sentiment Analysis

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

Block 19 - DeepSeek Chat Model

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

Block 20 - OpenAI Chat Model

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

3. Summary Table

Workflow Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI
Complexity advanced
Nodes 20
Categories Market Research, AI Summarization
Author Davide
Published 24 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2792/2792.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 Scrape Trustpilot reviews with DeepSeek, analyze sentiment with OpenAI do?

This workflow automates the process of scraping Trustpilot reviews , extracting key details, analyzing sentiment, and saving the results to Google Sheets . It uses OpenAI for sentiment analysis and...

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.