{
  "name": "Generate Instagram news carousels from RSS feeds using GPT-4o",
  "nodes": [
    {
      "id": "3f97b97a-6a23-48ba-a509-2b92371ea1e2",
      "name": "Designer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        288
      ]
    },
    {
      "id": "0d74e41a-2615-4974-a760-ce0f237f53e0",
      "name": "The Setup",
      "type": "n8n-nodes-base.code",
      "position": [
        -400,
        288
      ]
    },
    {
      "id": "e44277ec-3c05-4422-9509-f2a9423779fc",
      "name": "News Source",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1760,
        288
      ]
    },
    {
      "id": "9867484e-23d3-451c-a899-c731258c27db",
      "name": "AI Analyst",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -752,
        288
      ]
    },
    {
      "id": "dada8fa7-d8ce-4ad8-ab35-9197f8f8b0b9",
      "name": "Cleaner",
      "type": "n8n-nodes-base.code",
      "position": [
        -1088,
        288
      ]
    },
    {
      "id": "776a4a02-900f-488c-9db4-5e23dfd2f00c",
      "name": "Get Article HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1312,
        288
      ]
    },
    {
      "id": "2d1eb999-1654-438e-8df5-337cdb32292f",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -48,
        288
      ]
    },
    {
      "id": "a65ca63c-0d73-414f-b291-c9a2ff83d8d8",
      "name": "Create Container",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1680,
        496
      ]
    },
    {
      "id": "9f1aa68d-f0c7-4402-a29a-b7b2a28ecd21",
      "name": "Carousel Bundle",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1424,
        192
      ]
    },
    {
      "id": "2397a867-2b68-4869-9d5f-fdec7831baaa",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1200,
        384
      ]
    },
    {
      "id": "f42a3056-9e87-471c-b113-79e54c31e9b8",
      "name": "Share file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1424,
        384
      ]
    },
    {
      "id": "ec33bd2e-f7bd-44cd-8d8e-79aa3d9aa9e0",
      "name": "Publish Carousel",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1648,
        192
      ]
    },
    {
      "id": "df60f9c8-6a31-4e2e-a7c5-521cc2ad74cb",
      "name": "Carousel Prep",
      "type": "n8n-nodes-base.code",
      "position": [
        1200,
        192
      ]
    },
    {
      "id": "5e9c9d86-e82c-4d2d-88ac-4c507c4d131d",
      "name": "SETUP FORM",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1984,
        288
      ]
    },
    {
      "id": "7e836ec0-cfff-437c-97ee-a6789e5c101a",
      "name": "Route by Engine",
      "type": "n8n-nodes-base.switch",
      "position": [
        192,
        304
      ]
    },
    {
      "id": "d5aed350-2b88-477b-aa0c-a462f4b20d9c",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        592,
        480
      ]
    },
    {
      "id": "adc26ef8-9d4a-4e63-9a97-9ff01f04f815",
      "name": "Generate Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        368,
        480
      ]
    },
    {
      "id": "cee28420-a456-4037-ab88-7a33ed386532",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        -432
      ],
      "parameters": {
        "width": 544,
        "height": 496,
        "content": "## Viral News Agent (Instagram)\nThis workflow acts as a fully autonomous \"News Agency.\" It scrapes RSS feeds, uses AI to write viral scripts, designs carousel slides, and auto-posts to Instagram.\n\n## "
      }
    },
    {
      "id": "18c7edc7-54c1-49ba-b130-a7a7733b2b8a",
      "name": "Limit to Top 10",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1536,
        288
      ]
    },
    {
      "id": "4f2cec77-fe6f-46f8-997d-287ddc97626f",
      "name": "Wait for Processing",
      "type": "n8n-nodes-base.wait",
      "position": [
        816,
        384
      ]
    },
    {
      "id": "2bc8214f-d1b7-4900-8fd5-f75110553cca",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        176
      ],
      "parameters": {
        "width": 1152,
        "height": 288,
        "content": "## 1. Input & Scraping\nFetches RSS feed, limits to top 10, and extracts clean data."
      }
    },
    {
      "id": "83ab2198-bc4a-4186-916f-a4b433db4a15",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        176
      ],
      "parameters": {
        "width": 576,
        "height": 304,
        "content": "## 2. AI Content Generation\nUses GPT-4o to analyze the news content and generate viral hooks, headlines, and captions."
      }
    },
    {
      "id": "adaf67bd-4469-4e34-8f18-1a6bd0fbe40f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        160
      ],
      "parameters": {
        "width": 1152,
        "height": 480,
        "content": "## 3. Image Engine\nIterates through each news item. Based on user selection, it routes data to either Gotenberg (Free) or APITemplate (Paid) to generate the slide."
      }
    },
    {
      "id": "facc7f22-9afc-4ffc-8adf-17339ae90d51",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        96
      ],
      "parameters": {
        "width": 832,
        "height": 672,
        "content": "## 4. Instagram Publishing\nUploads images, bundles the carousel, and publishes to Instagram."
      }
    }
  ],
  "connections": {
    "Cleaner": {
      "main": [
        [
          {
            "node": "AI Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Designer": {
      "main": [
        [
          {
            "node": "Wait for Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The Setup": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analyst": {
      "main": [
        [
          {
            "node": "The Setup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SETUP FORM": {
      "main": [
        [
          {
            "node": "News Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file": {
      "main": [
        [
          {
            "node": "Create Container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News Source": {
      "main": [
        [
          {
            "node": "Limit to Top 10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Share file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carousel Prep": {
      "main": [
        [
          {
            "node": "Carousel Bundle",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Wait for Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carousel Bundle": {
      "main": [
        [
          {
            "node": "Publish Carousel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit to Top 10": {
      "main": [
        [
          {
            "node": "Get Article HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Carousel Prep",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Route by Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Engine": {
      "main": [
        [
          {
            "node": "Designer",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Container": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Article HTML": {
      "main": [
        [
          {
            "node": "Cleaner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Processing": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}