{
  "name": "WooCommerce 🛒 Product Review Sentiment Analysis and AI Report 🤖 for Improvement",
  "nodes": [
    {
      "id": "9a61bab2-edb7-4916-b76e-0246b3b73159",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -656,
        -400
      ]
    },
    {
      "id": "f8e43e1e-bdfe-4e70-a51f-2fce2cf6c81a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        368,
        -640
      ]
    },
    {
      "id": "65bc4038-be6e-4a66-8b7d-58d846e82748",
      "name": "Sentiment Analysis",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        560,
        -64
      ]
    },
    {
      "id": "6620b077-504b-4b43-985e-55aca7578318",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        496,
        160
      ]
    },
    {
      "id": "3ac738c0-da27-41ba-ad0b-804d36b99d61",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1568,
        -944
      ]
    },
    {
      "id": "c6d6e6fd-23a7-41a6-a358-e4522465e63d",
      "name": "Get a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        384,
        -1216
      ]
    },
    {
      "id": "e3041012-9673-4bc3-8c2e-94f6d22b0bda",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        960,
        -1200
      ]
    },
    {
      "id": "973f7e5a-5237-4036-9e80-f2832154de10",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2176,
        -1200
      ]
    },
    {
      "id": "8afd8dc3-ee24-4176-8b68-72e695ac5fd9",
      "name": "Product ID",
      "type": "n8n-nodes-base.set",
      "position": [
        -368,
        -400
      ]
    },
    {
      "id": "9cd9bc15-5ee0-422a-a76e-079bd7c032cc",
      "name": "Set review",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        -32
      ]
    },
    {
      "id": "49e5d138-54cd-476f-8913-116c2b2f43e6",
      "name": "Aggregate reviews",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        672,
        -1008
      ]
    },
    {
      "id": "fdbfc681-48cc-41ea-a358-d679f902bd01",
      "name": "Set vars for chart",
      "type": "n8n-nodes-base.code",
      "position": [
        864,
        -656
      ]
    },
    {
      "id": "0e07c46d-ae3a-4fed-9e1f-ff95e293ac3b",
      "name": "Product Insights Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1280,
        -1200
      ]
    },
    {
      "id": "de1887e7-42d4-456b-b133-2da17232c674",
      "name": "HTML Converter",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1728,
        -1200
      ]
    },
    {
      "id": "29a53915-9929-4a0d-a0c2-4acc156b9986",
      "name": "GET Product Reviews",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -32,
        -160
      ]
    },
    {
      "id": "95eac7ef-7024-4793-8462-41710dcff50a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        -1200
      ],
      "parameters": {
        "width": 816,
        "height": 608,
        "content": "## WooCommerce Product Review Sentiment Analysis and Detailed AI Report Generation for Improvement\n\nThis workflow automates the **end-to-end analysis of WooCommerce product reviews**, transforming raw"
      }
    },
    {
      "id": "dab1e126-d223-40d0-ab2f-8611b4ec2c60",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        -544
      ],
      "parameters": {
        "width": 384,
        "height": 336,
        "content": "## STEP 1 - Set the target\n\nSets the target WooCommerce product ID and store URL."
      }
    },
    {
      "id": "b98237b5-6c5f-4011-9fa1-0006263acbb0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -352
      ],
      "parameters": {
        "width": 1392,
        "height": 608,
        "content": "## STEP 2 - Data Retrieval from WooCommerce &  Set the target AI-Powered Sentiment Analysis\n\nFetches all reviews for the selected product via the WooCommerce REST API. \n\nAI-Powered Sentiment Analysis."
      }
    },
    {
      "id": "3de43a09-5dd5-4f67-8f7e-8547824813ee",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -784
      ],
      "parameters": {
        "width": 688,
        "height": 304,
        "content": "## STEP 3 - Visual Sentiment Distribution\n\nA pie chart is dynamically generated via QuickChart to visually represent sentiment distribution."
      }
    },
    {
      "id": "8abdb511-b614-45a1-80f8-83d89a28b929",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -1360
      ],
      "parameters": {
        "width": 1232,
        "height": 544,
        "content": "## STEP 4  Visual Sentiment Distribution\n\nA specialized AI agent (“Product Insights Analyst”) transforms the raw and aggregated data into a professional, structured report. The final output is automat"
      }
    },
    {
      "id": "8a8290da-09be-4b6c-bf03-e6dacf8ad7a5",
      "name": "QuickChart",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1232,
        -656
      ]
    },
    {
      "id": "6271dc5f-1704-4c4b-b4af-ce6d5f9bdd40",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1696,
        -1328
      ],
      "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": {
    "Merge": {
      "main": [
        [
          {
            "node": "Product Insights Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product ID": {
      "main": [
        [
          {
            "node": "GET Product Reviews",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get a product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "QuickChart": {
      "main": [
        []
      ]
    },
    "Set review": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a product": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML Converter": {
      "main": [
        [
          {
            "node": "Send a message",
            "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": "Sentiment Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate reviews": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Sentiment Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Product Insights Analyst",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "HTML Converter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analysis": {
      "main": [
        [
          {
            "node": "Set review",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set review",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set vars for chart": {
      "main": [
        [
          {
            "node": "QuickChart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET Product Reviews": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Insights Analyst": {
      "main": [
        [
          {
            "node": "HTML Converter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Product ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}