{
  "name": "Monitor viral Reddit posts and send GPT-4o-mini summaries to Telegram",
  "nodes": [
    {
      "id": "{{NODE_ID_1}}",
      "name": "Daily 8 AM Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -640,
        -1088
      ]
    },
    {
      "id": "{{NODE_ID_2}}",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -416,
        -1088
      ]
    },
    {
      "id": "{{NODE_ID_3}}",
      "name": "Loop Over Niches",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        32,
        -1088
      ]
    },
    {
      "id": "{{NODE_ID_4}}",
      "name": "Get Reddit Viral Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        256,
        -1040
      ]
    },
    {
      "id": "{{NODE_ID_5}}",
      "name": "Extract Post Data",
      "type": "n8n-nodes-base.set",
      "position": [
        256,
        -1232
      ]
    },
    {
      "id": "{{NODE_ID_6}}",
      "name": "AI Summarizer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        960,
        -1232
      ]
    },
    {
      "id": "{{NODE_ID_7}}",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        928,
        -1008
      ]
    },
    {
      "id": "{{NODE_ID_8}}",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1376,
        -1232
      ]
    },
    {
      "id": "{{NODE_ID_9}}",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -192,
        -1088
      ]
    },
    {
      "id": "{{NODE_ID_10}}",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        480,
        -1232
      ]
    },
    {
      "id": "{{NODE_ID_11}}",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        704,
        -1232
      ]
    },
    {
      "id": "{{NODE_ID_12}}",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -1248
      ],
      "parameters": {
        "width": 400,
        "height": 464,
        "content": "## How it works\n\nThis workflow monitors Reddit for viral posts in your chosen niches and sends AI-generated summaries to Telegram. It runs daily at 8 AM, fetching the latest posts from specified subre"
      }
    },
    {
      "id": "{{NODE_ID_13}}",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -1280
      ],
      "parameters": {
        "width": 320,
        "height": null,
        "content": "## Configuration\nSets up niches to monitor and Telegram destination, then splits into individual subreddit checks"
      }
    },
    {
      "id": "{{NODE_ID_14}}",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -1424
      ],
      "parameters": {
        "width": 320,
        "height": null,
        "content": "## Quality Filter\nKeeps only viral posts meeting engagement thresholds, then aggregates for batch processing"
      }
    },
    {
      "id": "{{NODE_ID_15}}",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        -816
      ],
      "parameters": {
        "width": 320,
        "height": null,
        "content": "## Reddit Data Fetching\nLoops through each niche, fetches the 50 newest posts, and extracts relevant metadata"
      }
    },
    {
      "id": "{{NODE_ID_16}}",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -1424
      ],
      "parameters": {
        "width": 480,
        "height": 144,
        "content": "## Summary Generation\nUses AI to create concise post summaries in Telegram-formatted text and delivers to your chat"
      }
    }
  ],
  "connections": {
    "Filter": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "AI Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Niches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Summarizer": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Niches": {
      "main": [
        [
          {
            "node": "Extract Post Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Reddit Viral Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Post Data": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Summarizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Daily 8 AM Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit Viral Posts": {
      "main": [
        [
          {
            "node": "Loop Over Niches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}