Skip to main content

Scrape Trustpilot reviews πŸ“Š with ScrapegraphAI and OpenAI Reputation analysis

Workflow preview

Workflow preview
100%
Scrape Trustpilot reviews πŸ“Š with ScrapegraphAI and OpenAI Reputation analysis 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 collection, analysis, and reporting of Trustpilot reviews for a specific company, transforming unstructured customer feedback into structured insights and actionable int...

Best for

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

Tools used

n8n-nodes-base.splitout, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.html, n8n-nodes-scrapegraphai.scrapegraphai, @n8n/n8n-nodes-langchain.informationextractor

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 ScrapegraphAI and OpenAI Reputation analysis
Workflow name
Scrape Trustpilot reviews πŸ“Š with ScrapegraphAI and OpenAI Reputation analysis

This workflow automates the collection, analysis, and reporting of Trustpilot reviews for a specific company, transforming unstructured customer feedback into structured insights and actionable intelligence.


Key Advantages

1. βœ… End-to-End Automation

The entire processβ€”from scraping reviews to delivering a polished management reportβ€”is fully automated, eliminating manual data collection and analysis .

2. βœ… Structured Insights from Unstructured Data

The workflow transforms raw, unstructured review text into structured fields and standardized sentiment categories, making analysis reliable and repeatable.

3. βœ… Company-Level Reputation Intelligence

Instead of focusing on individual products, the analysis evaluates the overall brand, service quality, customer experience, and operational performance, which is critical for leadership and strategic teams.

4. βœ… Action-Oriented Outputs

The AI-generated report goes beyond summaries by:

  • Identifying reputational risks
  • Highlighting improvement opportunities
  • Proposing concrete actions with priorities, effort estimates, and KPIs
5. βœ… Visual & Executive-Friendly Reporting

Automatic sentiment charts and structured executive summaries make insights immediately understandable for non-technical stakeholders.

6. βœ… Scalable and Configurable
  • Easily adaptable to different companies or review volumes
  • Page limits and batching protect against rate limits and excessive API usage
7. βœ… Cross-Team Value

The output is tailored for multiple internal teams:

  • Management
  • Marketing
  • Customer Support
  • Operations
  • Product & UX

Ideal Use Cases

  • Brand reputation monitoring
  • Voice-of-the-customer programs
  • Executive reporting
  • Customer experience optimization
  • Competitive benchmarking (by reusing the workflow across brands)

How It Works

This workflow automates the complete process of scraping Trustpilot reviews, extracting structured data, analyzing sentiment, and generating comprehensive reports. The workflow follows this sequence:

  1. Trigger & Configuration: The workflow starts with a manual trigger, allowing users to set the target company URL and the number of review pages to scrape.

  2. Review Scraping: An HTTP request node fetches review pages from Trustpilot with pagination support, extracting review links from the HTML content.

  3. Review Processing: The workflow processes individual review pages in batches (limited to 5 reviews per execution for efficiency). Each review page is converted to clean markdown using ScrapegraphAI.

  4. Data Extraction: An information extractor using OpenAI's GPT-4.1-mini model parses the markdown to extract structured review data including author, rating, date, title, text, review count, and country.

  5. Sentiment Analysis: Another OpenAI model performs sentiment classification on each review text, categorizing it as Positive, Neutral, or Negative.

  6. Data Aggregation: Processed reviews are collected and compiled into a structured dataset.

  7. Analytics & Visualization:

    • A pie chart is generated showing sentiment distribution
    • A comprehensive reputation analysis report is created using an AI agent that evaluates company-level insights, recurring themes, and provides actionable recommendations
  8. Reporting & Delivery: The analysis is converted to HTML format and sent via email, providing stakeholders with immediate insights into customer feedback and company reputation.

Set Up Steps

To configure and run this workflow:

  1. Credential Setup:

    • Configure OpenAI API credentials for the chat models and information extraction
    • Set up ScrapegraphAI credentials for webpage-to-markdown conversion
    • Configure Gmail OAuth2 credentials for email notifications
  2. Company Configuration:

    • In the "Set Parameters" node, update company_id to the target Trustpilot company URL
    • Adjust max_page to control how many review pages to scrape
  3. Review Processing Limits:

    • The "Limit" node restricts processing to 5 reviews per execution to manage API costs and processing time
    • Adjust this value based on your needs and OpenAI usage limits
  4. Email Configuration:

    • Update the "Send a message" node with the recipient email address
    • Customize the email subject and content as needed
  5. Analysis Customization:

    • Modify the prompt in the "Company Reputation Analyst" node to tailor the report format
    • Adjust sentiment analysis categories if different classification is needed
  6. Execution:

    • Click "Test workflow" to execute the manual trigger
    • Monitor execution in the n8n editor to ensure all API calls succeed
    • Check the configured email inbox for the generated report

Note: Be mindful of API rate limits and costs associated with OpenAI and ScrapegraphAI services when processing large numbers of reviews. The workflow includes a 5-second delay between paginated requests to comply with Trustpilot's terms of service.


πŸ‘‰ Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

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 - When clicking β€˜Test workflow’

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

Block 3 - Sticky Note

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

Block 4 - Set Parameters

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

Block 5 - Get reviews

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

Block 6 - Extract

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

Block 7 - Convert a webpage or article to clean markdown useful for blogs dev docs and more1

Type / Role
n8n-nodes-scrapegraphai.scrapegraphAi - scrapegraphAi
Config choices
Version 1

Block 8 - Information Extractor1

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

Block 9 - OpenAI Chat Model1

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

Block 10 - Limit

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

Block 11 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 12 - OpenAI Chat Model2

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

Block 13 - Sentiment Analysis1

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

Block 14 - Set vars for chart

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - QuickChart

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

Block 16 - Send a message

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

Block 17 - HTML Converter

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.9

Block 18 - Sticky Note4

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

Block 19 - OpenAI Chat Model

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

Block 20 - Aggregate reviews

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Company Reputation Analyst

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

Block 24 - Sticky Note3

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

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Scrape Trustpilot reviews πŸ“Š with ScrapegraphAI and OpenAI Reputation analysis
Complexity advanced
Nodes 27
Categories Market Research, AI Summarization
Author Davide
Published 12 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12654/12654.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 ScrapegraphAI and OpenAI Reputation analysis do?

This workflow automates the collection, analysis, and reporting of Trustpilot reviews for a specific company, transforming unstructured customer feedback into structured insights and actionable int...

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.