{
  "name": "Find, scrape & analyze Twitter posts by name with Bright Data & Gemini",
  "nodes": [
    {
      "id": "3f37efb9-0ba6-474a-b5df-d453bb79d8e6",
      "name": "Extract Body and Title from Website",
      "type": "n8n-nodes-base.html",
      "position": [
        660,
        0
      ]
    },
    {
      "id": "89d9a5af-f79a-44ad-87c3-99a410fe52eb",
      "name": "When User Completes Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "9cc99302-3a97-471b-8260-b2d0dda37be5",
      "name": "Edit Url Google Search",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "ae25a27d-4631-4131-ac42-ab39ba423806",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        900,
        180
      ]
    },
    {
      "id": "dca04cd0-4519-41ae-9b0f-3c202a72cac3",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1040,
        180
      ]
    },
    {
      "id": "d26a1cf1-c131-4a78-b968-4d2280c7dd7d",
      "name": "Form Not Found",
      "type": "n8n-nodes-base.form",
      "position": [
        1260,
        160
      ]
    },
    {
      "id": "d05c6134-02ba-4e75-b062-0994c1802ba1",
      "name": "X Profile is Found?",
      "type": "n8n-nodes-base.if",
      "position": [
        1260,
        0
      ]
    },
    {
      "id": "d2f963d7-4bb9-41d6-b698-028d76e08bd5",
      "name": "Check for errors",
      "type": "n8n-nodes-base.if",
      "position": [
        1320,
        440
      ]
    },
    {
      "id": "34dfe012-f2b0-4921-aff7-2c97eafc206e",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1780,
        660
      ]
    },
    {
      "id": "223f4ef1-2ed0-48e3-a7b6-e2ecb762756f",
      "name": "Form Error",
      "type": "n8n-nodes-base.form",
      "position": [
        1320,
        680
      ]
    },
    {
      "id": "28c124cd-dd4b-4a8d-888e-d39709425920",
      "name": "Google Sheets - Adding Posts and Summary",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2140,
        440
      ]
    },
    {
      "id": "abc5d30c-2d5c-4186-ac62-32129f33618e",
      "name": "Analyze Posts",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1760,
        440
      ]
    },
    {
      "id": "daee9dbd-c65a-40cf-a84e-b8b9eec4e108",
      "name": "Parse X Url",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        880,
        0
      ]
    },
    {
      "id": "b0ae5f34-dcd3-424e-b85b-6a339f701857",
      "name": "Snapshot Content",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        880,
        440
      ]
    },
    {
      "id": "d697b7b2-3c50-414e-a4d4-8f5f6f582cf9",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1540,
        440
      ]
    },
    {
      "id": "ba5770f0-db44-4032-bd45-1939b5f2740b",
      "name": "Wait 30s - Polling Bright Data",
      "type": "n8n-nodes-base.wait",
      "position": [
        220,
        440
      ]
    },
    {
      "id": "fe2adace-a369-44ef-b048-eb90f309ee92",
      "name": "If - Checking status of Snapshot - if data is ready or not",
      "type": "n8n-nodes-base.if",
      "position": [
        660,
        440
      ]
    },
    {
      "id": "72326f8d-d381-4620-a3a7-1bed7389a146",
      "name": "Snapshot Request",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        0,
        440
      ]
    },
    {
      "id": "665656d5-78e4-480c-a472-ade64f43609c",
      "name": "Snapshot Progress",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        440,
        440
      ]
    },
    {
      "id": "f346f9b0-f5f0-452e-932f-b27d956e3383",
      "name": "BrightData",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "3fe4b2e8-4cc6-4e23-a2da-c8c668537036",
      "name": "Check for errors1",
      "type": "n8n-nodes-base.if",
      "position": [
        1100,
        440
      ]
    },
    {
      "id": "4b5aa6d7-9328-46fa-b333-6b068c5ffa79",
      "name": "Wait 30s - Check if the snapshot is ready",
      "type": "n8n-nodes-base.wait",
      "position": [
        880,
        680
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Analyze Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BrightData": {
      "main": [
        [
          {
            "node": "Extract Body and Title from Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse X Url": {
      "main": [
        [
          {
            "node": "X Profile is Found?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Posts": {
      "main": [
        [
          {
            "node": "Google Sheets - Adding Posts and Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Not Found": {
      "main": [
        []
      ]
    },
    "Check for errors": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Form Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Snapshot Content": {
      "main": [
        [
          {
            "node": "Check for errors1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Snapshot Request": {
      "main": [
        [
          {
            "node": "Wait 30s - Polling Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for errors1": {
      "main": [
        [
          {
            "node": "Wait 30s - Check if the snapshot is ready",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check for errors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Snapshot Progress": {
      "main": [
        [
          {
            "node": "If - Checking status of Snapshot - if data is ready or not",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X Profile is Found?": {
      "main": [
        [
          {
            "node": "Snapshot Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Form Not Found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Url Google Search": {
      "main": [
        [
          {
            "node": "BrightData",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Parse X Url",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Parse X Url",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When User Completes Form": {
      "main": [
        [
          {
            "node": "Edit Url Google Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Posts",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30s - Polling Bright Data": {
      "main": [
        [
          {
            "node": "Snapshot Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Body and Title from Website": {
      "main": [
        [
          {
            "node": "Parse X Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30s - Check if the snapshot is ready": {
      "main": [
        [
          {
            "node": "Snapshot Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If - Checking status of Snapshot - if data is ready or not": {
      "main": [
        [
          {
            "node": "Snapshot Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 30s - Polling Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}