{
  "id": "J6jlMP0e9VCWNchN",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "8-AI_RSS_InstagramPubbishing",
  "tags": [
    {
      "id": "DNVBijE9cEya3mqW",
      "name": "PROD",
      "createdAt": "2025-11-23T13:34:14.752Z",
      "updatedAt": "2025-11-23T13:34:14.752Z"
    },
    {
      "id": "VCEq7J8oWFHMeGAE",
      "name": "creator-paid-release",
      "createdAt": "2025-11-23T13:36:34.126Z",
      "updatedAt": "2025-11-23T13:36:34.126Z"
    },
    {
      "id": "dsb6ypU8KgN6sZTl",
      "name": "creator-to-publish",
      "createdAt": "2025-11-23T13:36:30.079Z",
      "updatedAt": "2025-11-23T13:36:30.079Z"
    }
  ],
  "nodes": [
    {
      "id": "fef7ad34-d7c5-4b63-aa29-da1b4f9eb658",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        16,
        624
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7953a309-9988-43ad-99c3-e9abc510ce12",
      "name": "RSS Read",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        176,
        624
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3967fd7a-287e-4f7f-9e42-a89508dcf347",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        320,
        624
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "efe477d9-de40-4d76-b302-bf8859ffd0bc",
      "name": "Best Article finder",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        736,
        368
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "539847fe-ab5c-4c03-b509-f5c550214945",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        464
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "da372939-c50f-4b09-8bf5-bf524985ab87",
      "name": "group the news into 1 item",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        624
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "badf8eb8-330a-4383-bea1-f4d4b2d7fe46",
      "name": "Find the urls the ai outputted",
      "type": "n8n-nodes-base.code",
      "position": [
        1200,
        608
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "cab1974d-b9e3-4812-bf61-1819379e90f3",
      "name": "All url's to 1 string",
      "type": "n8n-nodes-base.code",
      "position": [
        1408,
        608
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9177990a-e7de-421e-afbf-ccfa9917b83c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        464
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9c988918-8d6e-40bd-afeb-83087cd615a0",
      "name": "4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        736,
        528
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f1836196-0158-451f-a57e-d002de102e0f",
      "name": "4.1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1616,
        784
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2f426219-8697-4082-be1a-3658dfa7f310",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1024,
        608
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "78186cc8-f4f1-46f6-b250-6c800ae33438",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2128,
        960
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "423aec0d-0bd4-4c4b-af40-c5923544450c",
      "name": "News-writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1616,
        608
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e79df11a-7431-4c8e-9e23-b432b5b2737e",
      "name": "Instagram publish media",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4320,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "59b31f32-9f4e-4363-bba4-46c7dd8fc788",
      "name": "Instagram params",
      "type": "n8n-nodes-base.set",
      "position": [
        3088,
        1040
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "974dd69e-2776-44ae-ba24-0d539ef1ac87",
      "name": "Instagram check status of media uploaded before",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        3680,
        1040
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a4863844-d155-43d7-ac4a-08ddec029c07",
      "name": "If media status is finished",
      "type": "n8n-nodes-base.if",
      "position": [
        4048,
        1040
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b9221749-06f5-4731-966b-7145393bff20",
      "name": "Instagram check status of media published before",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4560,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "174d8df0-cec4-4e35-972d-72ab7131f9d0",
      "name": "Facebook Graph API",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        3488,
        1040
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "df5b9e21-1f34-422a-98b3-5f49a54f038b",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        3856,
        1040
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "759199f8-10f7-42ff-9c92-faf04b05b67a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        4320,
        1040
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "00b6ca0e-1c2f-452f-b1e5-ef5724bd8f13",
      "name": "Add_textReadMore-toimage",
      "type": "n8n-nodes-base.editImage",
      "position": [
        2384,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ad66db58-6897-4036-a8dc-bff266420162",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        464
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "046fe183-86d9-4815-b849-024c12ebe0bb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        848
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "612ba350-453e-4f38-a16d-3d2601f38073",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        784
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "87aa1cdb-bfd4-49df-bf54-f915d9232b28",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        784
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e4f9f61e-6fdb-4584-829e-12e59b20922c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3056,
        784
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "10c146fb-c11a-4ed7-be9d-a41e1eec143b",
      "name": "AI-NewsTitle",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1952,
        608
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "2a2f5dcc-a908-461d-bb51-4dc0fd6f36c1",
      "name": "Upload an asset from file data",
      "type": "n8n-nodes-cloudinary.cloudinary",
      "position": [
        2768,
        976
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "caeef3ec-3a48-4bf2-92c8-954ce113760a",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        3280,
        1040
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3d02201d-16be-4ca3-8ff9-6433adb22415",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        832
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "143e0f67-d6ba-437e-9d48-c6c5fd67ada9",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        1200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d1f4dc8a-f7f6-45f6-9863-133ed0a6cb3c",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        224
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "61ade982-85ee-4d6a-bd2a-87316cf6f3e0",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        432
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": "0Ye3A2hKHqZJlJ0d",
    "executionOrder": "v1"
  },
  "versionId": "6aa7a59b-2cb1-49a7-a423-f0f02b52396c",
  "connections": {
    "4.1": {
      "ai_languageModel": [
        [
          {
            "node": "News-writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "If media status is finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Find the urls the ai outputted",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Best Article finder",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "group the news into 1 item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News-writer": {
      "main": [
        [
          {
            "node": "AI-NewsTitle",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI-NewsTitle": {
      "main": [
        [
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Instagram check status of media uploaded before",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram params": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "Add_textReadMore-toimage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Facebook Graph API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Graph API": {
      "main": [
        [
          {
            "node": "Instagram check status of media uploaded before",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Best Article finder": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "All url's to 1 string": {
      "main": [
        [
          {
            "node": "News-writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram publish media": {
      "main": [
        [
          {
            "node": "Instagram check status of media published before",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add_textReadMore-toimage": {
      "main": [
        [
          {
            "node": "Upload an asset from file data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "group the news into 1 item": {
      "main": [
        [
          {
            "node": "Best Article finder",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "If media status is finished": {
      "main": [
        [
          {
            "node": "Instagram publish media",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find the urls the ai outputted": {
      "main": [
        [
          {
            "node": "All url's to 1 string",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload an asset from file data": {
      "main": [
        [
          {
            "node": "Instagram params",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram check status of media uploaded before": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram check status of media published before": {
      "main": [
        []
      ]
    }
  }
}