{
  "name": "Auto-publish latest news on X with AI content generation using keywords and Bright Data",
  "nodes": [
    {
      "id": "9208debf-56cf-4181-adce-b6fd25713142",
      "name": "Check Final Status1",
      "type": "n8n-nodes-base.if",
      "position": [
        -500,
        40
      ]
    },
    {
      "id": "906db788-b7c8-4f80-90ed-1d9a556e33d9",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1500,
        40
      ]
    },
    {
      "id": "e1462542-ddd9-417a-a467-6671e4d68fda",
      "name": "Wait 1 Minutes",
      "type": "n8n-nodes-base.wait",
      "position": [
        -720,
        40
      ]
    },
    {
      "id": "53f4a578-b098-459e-bdad-ccf1e9508994",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        20
      ]
    },
    {
      "id": "cfebdd34-a1f8-47b7-9e2f-8edea038a6b3",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        0,
        260
      ]
    },
    {
      "id": "c9514ac6-f29c-490f-8d33-2409eea93973",
      "name": "Get News URL from Google News",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -220,
        20
      ]
    },
    {
      "id": "30b391cb-f56f-4d27-b39c-a3db422c249f",
      "name": "Fetch Latest News",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1240,
        40
      ]
    },
    {
      "id": "5982536a-2887-408d-ad8b-ec74fc3b7d52",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        440,
        20
      ]
    },
    {
      "id": "eddbcbbe-2ef7-4e44-8799-572a9f368213",
      "name": "tweet to URL",
      "type": "n8n-nodes-base.code",
      "position": [
        680,
        20
      ]
    },
    {
      "id": "e94dd4c9-2c9f-49a8-bf3b-13491e2f9617",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        940,
        20
      ]
    },
    {
      "id": "57fc5e5f-6ecd-4933-be5d-02223eae1d9a",
      "name": "Check Snapshot ID Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -960,
        40
      ]
    },
    {
      "id": "1dda70c1-9eca-484e-b109-ca297fcdfe72",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1160,
        20
      ]
    },
    {
      "id": "8412946a-0b83-4c94-a5e7-bcf11dc77780",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -100
      ],
      "parameters": {
        "width": 700,
        "height": 420,
        "content": "## Checking Snapshot ID status in While Loops\n"
      }
    },
    {
      "id": "54d35176-cc63-43e2-aabc-bca61fb249af",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -120
      ],
      "parameters": {
        "width": 560,
        "height": 520,
        "content": "## Scrap Latest News and Generate Content\ncrapping lastest news from google news and generaint content"
      }
    },
    {
      "id": "2992d27f-fb9b-45b2-a4d2-8baffa5faa53",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -80
      ],
      "parameters": {
        "width": 560,
        "height": 320,
        "content": "## Update URL in Sheet and Sent Success Mail"
      }
    },
    {
      "id": "f1868b0b-c58d-4252-82a7-5399cf22bb0f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -80
      ],
      "parameters": {
        "width": 460,
        "height": 320,
        "content": "## Publishing on X"
      }
    }
  ],
  "connections": {
    "X": {
      "main": [
        [
          {
            "node": "tweet to URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "tweet to URL": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 1 Minutes": {
      "main": [
        [
          {
            "node": "Check Final Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Latest News": {
      "main": [
        [
          {
            "node": "Check Snapshot ID Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Fetch Latest News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Final Status1": {
      "main": [
        [
          {
            "node": "Get News URL from Google News",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check Snapshot ID Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Snapshot ID Status": {
      "main": [
        [
          {
            "node": "Wait 1 Minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get News URL from Google News": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}