{
  "name": "Scrape Trustpilot reviews 📊 with ScrapegraphAI and OpenAI Reputation analysis",
  "nodes": [
    {
      "id": "e77fd1b8-81c5-4533-85de-8e819101a152",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        784,
        112
      ]
    },
    {
      "id": "26ce2be6-94ca-4fc5-91f6-28d95d15025c",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -240,
        112
      ]
    },
    {
      "id": "b419beff-bd05-4c00-9077-7d87bdb7d5d9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -48
      ],
      "parameters": {
        "width": 212,
        "height": 326,
        "content": "## STEP 1 - Setup\nSetup The Trustpilot company identifier and The maximum number of review pages to scrape"
      }
    },
    {
      "id": "3de7ad03-1bae-4ecb-a28e-a11d1faabc2b",
      "name": "Set Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        32,
        112
      ]
    },
    {
      "id": "1332d8e0-f881-4c27-a865-cbbba0ddb38f",
      "name": "Get reviews",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        112
      ]
    },
    {
      "id": "6d222a30-70fe-44aa-8785-1af08f642532",
      "name": "Extract",
      "type": "n8n-nodes-base.html",
      "position": [
        528,
        112
      ]
    },
    {
      "id": "32491e2f-4040-4bc0-b7f4-bd30d53eab43",
      "name": "Convert a webpage or article to clean markdown useful for blogs dev docs and more1",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        1536,
        128
      ]
    },
    {
      "id": "31c50f5b-7c94-4017-94fe-d833efad26ea",
      "name": "Information Extractor1",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        1776,
        128
      ]
    },
    {
      "id": "ba851d40-841f-4360-902e-43d745b6dc6a",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1760,
        320
      ]
    },
    {
      "id": "97fab16c-9a3f-47f8-8434-33a8ee98c5b5",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        992,
        112
      ]
    },
    {
      "id": "af2b6abe-838a-4794-9540-6a41ab153f2e",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1200,
        112
      ]
    },
    {
      "id": "26df8adf-97c9-4b40-9e7a-a0624d3bd5ee",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2144,
        320
      ]
    },
    {
      "id": "82c28f28-67c1-4367-bf03-268836248c02",
      "name": "Sentiment Analysis1",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        2160,
        112
      ]
    },
    {
      "id": "13ef96b3-192c-44f7-b53b-28cf01630c1c",
      "name": "Set vars for chart",
      "type": "n8n-nodes-base.code",
      "position": [
        1536,
        -336
      ]
    },
    {
      "id": "3940a3ec-91a6-4061-85cc-773207682cf8",
      "name": "QuickChart",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1904,
        -336
      ]
    },
    {
      "id": "0e61fba2-693f-402d-a655-9741c444a363",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2560,
        -832
      ]
    },
    {
      "id": "60c34f57-b19e-423e-bd3e-498b6f43da73",
      "name": "HTML Converter",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2160,
        -832
      ]
    },
    {
      "id": "0d040e6e-346d-49e0-a0da-4709f15d0398",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        -992
      ],
      "parameters": {
        "width": 1376,
        "height": 496,
        "content": "## STEP 4 - AI-Powered Reputation Report\nA specialized AI agent analyzes all reviews at a company level, not product level.\nIt generates a structured management report\nThe report is automatically sent"
      }
    },
    {
      "id": "c20ce4e3-05b4-43aa-86b1-fcf14e7b3939",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1984,
        -624
      ]
    },
    {
      "id": "6bfdeaed-a35c-40bf-a119-8332e8f22b67",
      "name": "Aggregate reviews",
      "type": "n8n-nodes-base.code",
      "position": [
        1552,
        -832
      ]
    },
    {
      "id": "054f4156-194f-4c08-b402-d9100e2979e5",
      "name": "Company Reputation Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1824,
        -832
      ]
    },
    {
      "id": "08125609-5539-4f53-8597-70465f312525",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -576
      ],
      "parameters": {
        "width": 1136,
        "height": 496,
        "content": "# Automated Trustpilot Review Scraper using ScrapegraphAI & Reputation Analysis \nThis workflow automates the **collection, analysis, and reporting of Trustpilot reviews** for a specific company, trans"
      }
    },
    {
      "id": "ad1be8ca-4629-41d8-b52d-4acd108bfa3d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -48
      ],
      "parameters": {
        "width": 900,
        "height": 326,
        "content": "## STEP 2 - Automated Review Scraping\nReviews are fetched directly from Trustpilot, ordered by recency. Pagination is handled automatically to respect the configured page limit."
      }
    },
    {
      "id": "22e0d4d4-7c4c-4943-a177-20ac566cc07e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        -16
      ],
      "parameters": {
        "width": 1380,
        "height": 502,
        "content": "## STEP 3 - Content Extraction & Sentiment Analysis\nEach review page is converted into clean Markdown, including content rendered via JavaScript.\nEach review’s text is analyzed and classified as Posit"
      }
    },
    {
      "id": "ed6ee1d5-b1a3-47d5-b020-f93253698034",
      "name": "Set fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2656,
        112
      ]
    },
    {
      "id": "2ad32275-04be-4a5f-b219-a174330c9383",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        -464
      ],
      "parameters": {
        "width": 1376,
        "height": 304,
        "content": "## STEP 5 - Visualization\nA dynamic pie chart is generated using QuickChart for immediate visual insight."
      }
    },
    {
      "id": "3b01028f-2d59-4034-aee1-751587534afe",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -816
      ],
      "parameters": {
        "width": 736,
        "height": 736,
        "content": "## MY NEW YOUTUBE CHANNEL\n👉 [Subscribe to my new **YouTube channel**](https://youtube.com/@n3witalia). Here I’ll share videos and Shorts with practical tutorials and **FREE templates for n8n**.\n\n[![im"
      }
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get reviews": {
      "main": [
        [
          {
            "node": "Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML Converter": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Parameters": {
      "main": [
        [
          {
            "node": "Get reviews",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Set vars for chart",
            "type": "main",
            "index": 0
          },
          {
            "node": "Aggregate reviews",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Convert a webpage or article to clean markdown useful for blogs dev docs and more1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate reviews": {
      "main": [
        [
          {
            "node": "Company Reputation Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Company Reputation Analyst",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "HTML Converter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Sentiment Analysis1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set vars for chart": {
      "main": [
        [
          {
            "node": "QuickChart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analysis1": {
      "main": [
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor1": {
      "main": [
        [
          {
            "node": "Sentiment Analysis1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Reputation Analyst": {
      "main": [
        [
          {
            "node": "HTML Converter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert a webpage or article to clean markdown useful for blogs dev docs and more1": {
      "main": [
        [
          {
            "node": "Information Extractor1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}