{
  "name": "Monitor and track brand Sentiment on Facebook Groups with Bright data",
  "nodes": [
    {
      "id": "fe514019-3f38-47ae-9a3f-64eb77f2f3ca",
      "name": "facebook groups",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        -60
      ]
    },
    {
      "id": "5beb7eb8-c835-4a8e-a997-5bdae466e3ee",
      "name": "get progress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        860,
        -60
      ]
    },
    {
      "id": "72e4d325-19fb-45e1-a2f0-c125de4886b3",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1000,
        -60
      ]
    },
    {
      "id": "4708eb72-1432-4519-97d8-fce6d85a4553",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1180,
        140
      ]
    },
    {
      "id": "8d10b6fd-80b8-4038-ae96-7bc895241b4b",
      "name": "Get data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1180,
        -80
      ]
    },
    {
      "id": "589c7d42-15b0-4065-afdf-546e0740da01",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        1340,
        -80
      ]
    },
    {
      "id": "94d1760a-197d-4fcb-912f-1f2218649859",
      "name": "Sentiment Analysis",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        1640,
        -80
      ]
    },
    {
      "id": "c66139b0-7113-43aa-9549-724f45bd6cc3",
      "name": "Filter brand name",
      "type": "n8n-nodes-base.filter",
      "position": [
        1480,
        -80
      ]
    },
    {
      "id": "a57b4efe-75ff-48b4-a57f-58908bce7096",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1660,
        180
      ]
    },
    {
      "id": "eb2a9998-6b7e-4240-82bb-5672c6204142",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1960,
        -80
      ]
    },
    {
      "id": "1f234f27-e474-4e46-b09d-48b279568ba3",
      "name": "Set up KEYS",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        -60
      ]
    },
    {
      "id": "3b405223-0e8b-45fd-a3de-c7f1956c1a1e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -340,
        -60
      ]
    },
    {
      "id": "b5158aa4-112d-4443-9b3f-c4a82d62788e",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1320,
        -260
      ]
    },
    {
      "id": "f13b255c-5d25-4eac-bc7e-e8948d0490d6",
      "name": "set urls",
      "type": "n8n-nodes-base.set",
      "position": [
        1160,
        -260
      ]
    },
    {
      "id": "cfc4f837-f4dc-471e-9958-f47375eebfeb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -500
      ],
      "parameters": {
        "width": 380,
        "height": 280,
        "content": "## Social Media Sentiment Analysis Pipeline\n\nThis workflow keeps track of our brand mentions across different groups and provides an analysis of  the posts as positive, negative or neutral \n\nMake a co"
      }
    },
    {
      "id": "08fa5532-7c45-4449-a5c6-99abe0daef25",
      "name": "Information Extractor",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        2140,
        -80
      ]
    },
    {
      "id": "7de252d0-d8cb-4b4e-adb7-619e783c8534",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2180,
        120
      ]
    },
    {
      "id": "4f37699e-806f-4a84-8780-c8792992960f",
      "name": "pull group results",
      "type": "n8n-nodes-base.set",
      "position": [
        2460,
        -80
      ]
    },
    {
      "id": "3bc5d96e-0dc1-4e44-9229-a25dd43ae12c",
      "name": "insights and sentiments",
      "type": "n8n-nodes-base.set",
      "position": [
        2640,
        -80
      ]
    },
    {
      "id": "5fa75597-8ad5-4804-a9f8-9c519afcb70a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -120
      ],
      "parameters": {
        "width": 300,
        "height": 240,
        "content": "- 2.Get the links for the facebook groups we want to monitor"
      }
    },
    {
      "id": "47b7dd9f-6734-4701-a4ad-66b9dfc7be1a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -120
      ],
      "parameters": {
        "width": 360,
        "height": 240,
        "content": "- 3.Scrap with Bright Data API to get posts from the group and get progress"
      }
    },
    {
      "id": "fe891d81-95c6-4937-b4df-0bb73fc370d6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        100
      ],
      "parameters": {
        "width": 220,
        "height": null,
        "content": "4.Wait for a few seconds if still running"
      }
    },
    {
      "id": "af2b3124-e27e-4e2f-ab11-39e2b94d8b0e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        -340
      ],
      "parameters": {
        "width": 460,
        "height": 420,
        "content": "5.Get results from the GROUPS and update the urls scraped\n\n6.Next we filter our our brand name from all these posts"
      }
    },
    {
      "id": "cc98cd10-a402-4e0a-a717-69629304bfef",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        -140
      ],
      "parameters": {
        "width": 480,
        "height": 200,
        "content": "7.We do a sentiment analysis to understand the posts and how our users are feeling"
      }
    },
    {
      "id": "609ed303-5049-487b-b746-0fd16475ab2a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        -120
      ],
      "parameters": {
        "width": 300,
        "height": 200,
        "content": "8.Extract the information from The post ie the summary, Category and Insights"
      }
    },
    {
      "id": "19c2a27c-ee58-4dc6-8378-cb6f700f92e0",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -140
      ],
      "parameters": {
        "width": 170,
        "height": 260,
        "content": "1. Set your bright data API and webhook endpoint to receive the results"
      }
    },
    {
      "id": "08746958-4785-41ef-9c16-fab76ef9c06f",
      "name": "Get Brand names",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        -60
      ]
    },
    {
      "id": "b2d8f50e-f0a4-44b0-9003-3a698c5ee47e",
      "name": "Aggregate brand names",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        160,
        -60
      ]
    },
    {
      "id": "0e07b599-a8c1-4403-ab52-3c0797ed18fb",
      "name": "Aggregate group links",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        480,
        -60
      ]
    },
    {
      "id": "9e34b53c-d2a5-4bf6-a61b-4002c0415e17",
      "name": "Get links",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        320,
        -60
      ]
    },
    {
      "id": "11539ebf-7743-4d28-a437-e5bf48aea99d",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2440,
        -120
      ],
      "parameters": {
        "width": 560,
        "height": 200,
        "content": "9.Format and update your results to Google Sheets for further analysis"
      }
    },
    {
      "id": "aa27a538-446e-49b9-8da6-58bd7aaa77f7",
      "name": "Receive results",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -300,
        -400
      ]
    },
    {
      "id": "470b19a5-4df3-4566-81f0-49f819659a1b",
      "name": "update last Scrap",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        -260
      ]
    },
    {
      "id": "089fcff0-f34b-48e1-aebf-9b44344e3e7a",
      "name": "Update sentiments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2820,
        -80
      ]
    },
    {
      "id": "5c8153b5-a24f-4897-ba0e-78b75f110ca0",
      "name": "Split Out1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -140,
        -400
      ]
    },
    {
      "id": "126a57ac-5754-4732-8254-ba6b40f532b9",
      "name": "Get Brand names1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        40,
        -400
      ]
    },
    {
      "id": "8c8ce74c-ac51-4b31-a746-b3e346d8038a",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -440
      ],
      "parameters": {
        "width": 660,
        "height": 200,
        "content": "Receives the results from the Facebook group scrap and stores all the results to Google sheets"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "get progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Filter brand name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Get data",
            "type": "main",
            "index": 0
          },
          {
            "node": "set urls",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get data": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set urls": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get links": {
      "main": [
        [
          {
            "node": "Aggregate group links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "update last Scrap",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out1": {
      "main": [
        [
          {
            "node": "store posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set up KEYS": {
      "main": [
        [
          {
            "node": "Get Brand names",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get progress": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand names": {
      "main": [
        [
          {
            "node": "Aggregate brand names",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive results": {
      "main": [
        [
          {
            "node": "Split Out1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "facebook groups": {
      "main": [
        [
          {
            "node": "get progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set up KEYS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter brand name": {
      "main": [
        [
          {
            "node": "Sentiment Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analysis": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "pull group results": {
      "main": [
        [
          {
            "node": "insights and sentiments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate brand names": {
      "main": [
        [
          {
            "node": "Get links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate group links": {
      "main": [
        [
          {
            "node": "facebook groups",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "pull group results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Sentiment Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "insights and sentiments": {
      "main": [
        [
          {
            "node": "Update sentiments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}