{
  "name": "Auto-generate MVP startup ideas from Reddit with AI & Excel storage",
  "nodes": [
    {
      "id": "0813d9ee-14c9-465c-acc1-bafbcdd0104f",
      "name": "Get Comments",
      "type": "n8n-nodes-base.reddit",
      "position": [
        2380,
        180
      ]
    },
    {
      "id": "b9757d02-fb18-4d19-84f5-adc091e8a5b9",
      "name": "Get Trending Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        200,
        0
      ]
    },
    {
      "id": "ec8d0d50-b97c-4c9d-b6ce-f07c718b1c03",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2900,
        0
      ]
    },
    {
      "id": "71db22d1-a79c-4839-8021-050ed8312ed7",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3080,
        0
      ]
    },
    {
      "id": "56926b20-7230-4432-8b48-eeda0e72b1da",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        -420
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c3a49153-fc12-4944-bec4-c28e749e53bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -360
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6f9d0411-c3c9-4623-a7ea-24a87d606cf7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "51ed2c56-e284-45e8-964c-1663c5441a52",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2860,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7ea6f9bc-de1e-45af-a03c-79095651d2ef",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3ebd096e-a4f0-417e-b3a0-c07e5159e0d6",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1000,
        240
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7cf929ea-9556-463d-96b1-73a75de2f2fa",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1560,
        260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6ea4818f-20e5-4e42-ad51-a1202dd3a1e2",
      "name": "Select a subreddit",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -60,
        -80
      ]
    },
    {
      "id": "6139c954-fde8-4f0a-8c43-a23fa88a0861",
      "name": "Get used reddit post slugs",
      "type": "n8n-nodes-base.microsoftExcel",
      "position": [
        200,
        -180
      ]
    },
    {
      "id": "5c643a23-9dad-41c7-8776-05dd30a8a8d6",
      "name": "Flatten list of slugs",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        380,
        -180
      ]
    },
    {
      "id": "39de2a72-83d3-4dbb-b0b9-431c69a7db84",
      "name": "Extract subreddits and post ids",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        540,
        -20
      ]
    },
    {
      "id": "aebb3f0c-9de7-4f29-a93c-80f57cc36565",
      "name": "Create post slugs",
      "type": "n8n-nodes-base.code",
      "position": [
        700,
        -20
      ]
    },
    {
      "id": "3b393c95-1e76-483f-b33c-f60fdf6c3669",
      "name": "Create list of posts",
      "type": "n8n-nodes-base.code",
      "position": [
        540,
        160
      ]
    },
    {
      "id": "0f0c6da7-d3b6-4bfa-988e-e9c39bb19a0b",
      "name": "Merge used post slugs with new post slugs",
      "type": "n8n-nodes-base.merge",
      "position": [
        920,
        -100
      ]
    },
    {
      "id": "f008a3d0-3c5d-4f16-8109-7159b893e657",
      "name": "Create list of all post slugs",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -100
      ]
    },
    {
      "id": "e52b5054-a82a-4e2b-badc-3439b6f66acd",
      "name": "Remove duplicate post slugs",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        1320,
        -100
      ]
    },
    {
      "id": "9cccdb2c-dedc-4570-b034-4164b68d552d",
      "name": "Split out post slugs",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1540,
        -220
      ]
    },
    {
      "id": "04aa906d-9e48-49ac-b0c6-9cc1bbe19847",
      "name": "Update \"Used Posts\" with new post slugs",
      "type": "n8n-nodes-base.microsoftExcel",
      "position": [
        1740,
        -300
      ]
    },
    {
      "id": "b0e6cc83-668b-4bc1-ab69-93d8ac345fd0",
      "name": "Merge new post slugs with post data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1740,
        0
      ]
    },
    {
      "id": "b1b87f42-4a54-44cb-a6a8-1a30243091b5",
      "name": "Filter out used posts",
      "type": "n8n-nodes-base.code",
      "position": [
        1920,
        0
      ]
    },
    {
      "id": "151d215e-b248-46dd-a2c2-24c571de04f3",
      "name": "Loop over posts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2200,
        40
      ]
    },
    {
      "id": "67446536-24a2-4abe-8923-2e2b50efa9f0",
      "name": "Merge post with comments",
      "type": "n8n-nodes-base.merge",
      "position": [
        2580,
        100
      ]
    },
    {
      "id": "2ffdcc91-181c-45e6-93ae-fe1adbff9381",
      "name": "Flatten post and comments",
      "type": "n8n-nodes-base.code",
      "position": [
        2780,
        180
      ]
    },
    {
      "id": "9cddc6a5-611d-4c0f-8ae6-86caf11da0e8",
      "name": "AI powered MVP Generator",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2900,
        -200
      ]
    },
    {
      "id": "53959e6e-6d9d-42ff-a4e9-f9b561e9de16",
      "name": "Split llm output prep for spreadsheet",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        3220,
        -200
      ]
    },
    {
      "id": "04a2e780-bd9a-4b11-97f1-9db07d12ac7f",
      "name": "Append new row to Excel sheet",
      "type": "n8n-nodes-base.microsoftExcel",
      "position": [
        3400,
        -200
      ]
    }
  ],
  "connections": {
    "Get Comments": {
      "main": [
        [
          {
            "node": "Merge post with comments",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Loop over posts": {
      "main": [
        [
          {
            "node": "AI powered MVP Generator",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Comments",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge post with comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create post slugs": {
      "main": [
        [
          {
            "node": "Merge used post slugs with new post slugs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get Trending Posts": {
      "main": [
        [
          {
            "node": "Extract subreddits and post ids",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create list of posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select a subreddit": {
      "main": [
        [
          {
            "node": "Get used reddit post slugs",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Trending Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create list of posts": {
      "main": [
        [
          {
            "node": "Merge new post slugs with post data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Split out post slugs": {
      "main": [
        [
          {
            "node": "Update \"Used Posts\" with new post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter out used posts": {
      "main": [
        [
          {
            "node": "Loop over posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flatten list of slugs": {
      "main": [
        [
          {
            "node": "Merge used post slugs with new post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI powered MVP Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI powered MVP Generator": {
      "main": [
        [
          {
            "node": "Split llm output prep for spreadsheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge post with comments": {
      "main": [
        [
          {
            "node": "Flatten post and comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI powered MVP Generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Flatten post and comments": {
      "main": [
        [
          {
            "node": "Loop over posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get used reddit post slugs": {
      "main": [
        [
          {
            "node": "Flatten list of slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove duplicate post slugs": {
      "main": [
        [
          {
            "node": "Merge new post slugs with post data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split out post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create list of all post slugs": {
      "main": [
        [
          {
            "node": "Remove duplicate post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract subreddits and post ids": {
      "main": [
        [
          {
            "node": "Create post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge new post slugs with post data": {
      "main": [
        [
          {
            "node": "Filter out used posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split llm output prep for spreadsheet": {
      "main": [
        [
          {
            "node": "Append new row to Excel sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge used post slugs with new post slugs": {
      "main": [
        [
          {
            "node": "Create list of all post slugs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}