{
  "id": "J3GaCzsXJ3nCHG3e",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Reddit for Business Ideas",
  "tags": [],
  "nodes": [
    {
      "id": "aed3af61-05c8-44b9-b150-6129349baf25",
      "name": "Summarization Chain",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        1120,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0f51146c-8f01-4c15-b291-5120f4d20ac5",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "onError": "continueRegularOutput",
      "position": [
        40,
        220
      ],
      "parameters": {},
      "typeVersion": 2.2,
      "alwaysOutputData": true
    },
    {
      "id": "6c7b7cb1-1f0b-49fe-84d1-520e8940be94",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        700,
        180
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "32306f37-0622-4933-b1f7-e51d96a8dbde",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        880,
        180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "79c8e118-3aa3-46fd-9df3-faa1536d1f7c",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1480,
        160
      ],
      "parameters": {},
      "typeVersion": 3,
      "alwaysOutputData": true
    },
    {
      "id": "59bc9d88-3e32-4834-ba9c-e8c23f218e09",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2e8de619-ee04-46e0-9e83-bb34111f5c43",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        420,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "75bc6776-69ed-4e00-b535-1338cc5c080d",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1280,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "29b18901-b8b3-4a79-9bcd-175dd2e912a7",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        200
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "f1633699-1ead-451e-b0f4-7992940c68da",
      "name": "Is it a Business Problem?",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        420,
        40
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "121e526e-8f1e-409b-ac60-52c220931bfb",
      "name": "Idea Generator",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1140,
        260
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "5fe93b2b-b9af-4ece-b6fe-0ae9194be574",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1700,
        160
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6a5071d6-884b-4195-aa54-e34467e347e0",
      "name": "Get many posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -120,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8b4109ef-f477-42f5-a7c1-6133f1cbce3d",
      "name": "OpenRouter Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        980,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "76bf6d74-6bf4-471e-a6b1-64b58a854a7a",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -280,
        220
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "61153ee6-2245-4cbd-9aec-c74ca24c9e8d",
      "name": "Append or update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1880,
        160
      ],
      "parameters": {},
      "typeVersion": 4.6
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "94b80643-1fa3-4555-8f51-bd554ab58d94",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Summarization Chain",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          },
          {
            "node": "Idea Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "Is it a Business Problem?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many posts": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Idea Generator": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Summarization Chain": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Is it a Business Problem?",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Idea Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Is it a Business Problem?": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        []
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get many posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}