{
  "name": "Promote YouTube videos on Reddit with AI-generated comments and email digest",
  "nodes": [
    {
      "id": "98caf03b-727f-4779-83f9-d8c17d51f46b",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1220,
        2020
      ]
    },
    {
      "id": "5210e93e-2a58-4f4a-893e-406d3501e51a",
      "name": "Generate Email HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        620,
        1700
      ]
    },
    {
      "id": "6172b98f-7751-486b-b8d0-de8882408288",
      "name": "Append Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        2060
      ]
    },
    {
      "id": "6afcde44-e049-4155-bd4d-6d9746a6a304",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -780,
        2020
      ]
    },
    {
      "id": "9490a603-0834-4230-804c-31db3646b20b",
      "name": "Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1980,
        2020
      ]
    },
    {
      "id": "75cbd512-2f2b-4fbc-bcb0-80963fffa788",
      "name": "Filter Posts by Criteria",
      "type": "n8n-nodes-base.if",
      "position": [
        -580,
        2020
      ]
    },
    {
      "id": "93c6947a-d55a-465e-a38e-bf420666c765",
      "name": "Send to your email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        820,
        1700
      ]
    },
    {
      "id": "5a894afe-1a0c-4502-a4f5-804de5e759ac",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        1580
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "637a82f4-1224-43f2-b2c4-8e047e494d71",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        1880
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3ea7a734-93bf-41a6-960f-88f709e740cb",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1820,
        1880
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a91e0e92-916c-4033-b066-ad58b411b727",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1400,
        2240
      ]
    },
    {
      "id": "e5441a15-0875-4f06-b833-6a4162a75bb9",
      "name": "AI Brain",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -1640,
        2240
      ]
    },
    {
      "id": "c44e399a-c3bf-41d7-b182-07e1a5985b51",
      "name": "Reddit",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1020,
        2020
      ]
    },
    {
      "id": "34008ba3-3532-4216-a4ed-0d93bc39264e",
      "name": "YouTube",
      "type": "n8n-nodes-base.youTube",
      "position": [
        -1780,
        2020
      ]
    },
    {
      "id": "b18b4be4-e9f0-483f-b66b-d991be0139cd",
      "name": "YT Keyword Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1580,
        2020
      ]
    },
    {
      "id": "255d821a-66a4-4477-922f-9336f4a823a2",
      "name": "Brain",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        60,
        2260
      ]
    },
    {
      "id": "976a643f-d0bf-41bb-bb10-8f6b01bfdf63",
      "name": "Keep Certain Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -360,
        2000
      ]
    },
    {
      "id": "45d870a3-80e4-40d3-8d45-13cc14fdd94a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -120,
        2000
      ]
    },
    {
      "id": "defbe032-8dbd-4d6e-a5ec-d7d9e314270c",
      "name": "Wait 5 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        640,
        2060
      ]
    },
    {
      "id": "945fe4f4-1903-4d81-bf40-1e82b48e7997",
      "name": "Structured_Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1380,
        2380
      ]
    },
    {
      "id": "d9d1b323-7314-48c6-bbf3-7b320ab2b16e",
      "name": "Social Post Comment",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1140,
        2160
      ]
    },
    {
      "id": "9403646b-b87e-471f-8580-5e00897eafb0",
      "name": "Store Humanized Comment",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1520,
        2160
      ]
    },
    {
      "id": "9ae1c2c1-d8f5-4ca5-8849-c867cbbf0646",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        980,
        2040
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5135a6b2-d576-4cee-8e4d-486776dc2993",
      "name": "Brain1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1040,
        2380
      ]
    },
    {
      "id": "cdfd2a1a-951c-487f-bccf-984d05337df0",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        360,
        1700
      ]
    },
    {
      "id": "cbfeb902-ada1-43a8-afd0-cc239b9f1ef2",
      "name": "relevant?",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        2060
      ]
    },
    {
      "id": "bfda48b9-5e44-4f99-b5a0-5e031de74d04",
      "name": "Is this post relevant?",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        120,
        2060
      ]
    },
    {
      "id": "db745a22-c506-4c6f-b7ff-da428476b1a7",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        340,
        2260
      ]
    },
    {
      "id": "e904f2c5-9a48-49ce-a380-342fe6d7b704",
      "name": "Get Reddit Posts & Proposed Responses",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        1700
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Generate Email HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form": {
      "main": [
        [
          {
            "node": "YouTube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brain": {
      "ai_languageModel": [
        [
          {
            "node": "Is this post relevant?",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Brain1": {
      "ai_languageModel": [
        [
          {
            "node": "Social Post Comment",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Reddit": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube": {
      "main": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Brain": {
      "ai_languageModel": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "relevant?": {
      "main": [
        [
          {
            "node": "Wait 5 sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 sec": {
      "main": [
        [
          {
            "node": "Append Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Data": {
      "main": [
        [
          {
            "node": "Social Post Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Get Reddit Posts & Proposed Responses",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Is this post relevant?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Filter Posts by Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured_Output": {
      "ai_outputParser": [
        [
          {
            "node": "Social Post Comment",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "YT Keyword Analyst": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Email HTML": {
      "main": [
        [
          {
            "node": "Send to your email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep Certain Fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Post Comment": {
      "main": [
        [
          {
            "node": "Store Humanized Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is this post relevant?": {
      "main": [
        [
          {
            "node": "relevant?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Humanized Comment": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts by Criteria": {
      "main": [
        [
          {
            "node": "Keep Certain Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Is this post relevant?",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit Posts & Proposed Responses": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}