{
  "name": "Generate AI-curated Reddit digests for Telegram, Discord & Slack with Gemini",
  "nodes": [
    {
      "id": "80444483-f96c-4e9b-a190-89220d18c280",
      "name": "📖 Main Documentation (START HERE)",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -496
      ],
      "parameters": {
        "width": 530,
        "height": 1442,
        "content": "# 🔥 Reddit News Automation Pro - Multi-Platform Digest\n\n## 📌 What This Workflow Does\nAutomatically fetches, curates, and distributes high-quality Reddit news digests from any subreddits you choose. Us"
      }
    },
    {
      "id": "a26acf04-a3b6-4ce8-b1f9-79bab59f7998",
      "name": "Sticky Note - Trigger Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -496
      ],
      "parameters": {
        "width": 316,
        "height": 554,
        "content": "## 🎬 STEP 1: TRIGGER\n\n**Choose ONE trigger method:**\n\n### 📅 Option A: Schedule Trigger (Recommended)\n- Runs automatically at set times\n- Perfect for daily/weekly digests\n- Edit cron expression to cust"
      }
    },
    {
      "id": "0f1a3665-4e84-45bc-a354-377bfdcedb67",
      "name": "Sticky Note - Configuration",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -576
      ],
      "parameters": {
        "width": 327,
        "height": 617,
        "content": "## ⚙️ STEP 2: CONFIGURATION\n\n**Edit these settings to customize your digest:**\n\n### Required Settings:\n- **subreddits** - Comma-separated list\n  - Example: `AI_Agents,Python,webdev`\n- **posts_per_subr"
      }
    },
    {
      "id": "840d9ff1-ebe6-4583-863f-caa949e6fcfe",
      "name": "Sticky Note - Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -448
      ],
      "parameters": {
        "width": 327,
        "height": 464,
        "content": "## 🔄 STEP 3: DATA PROCESSING\n\n**These nodes prepare subreddit data:**\n\n### 📋 Split Subreddit List\n- Converts comma-separated string to array\n- Example: `\"AI,ML,Tech\"` → `[\"AI\", \"ML\", \"Tech\"]`\n\n### 🔄 L"
      }
    },
    {
      "id": "1c4e6f9a-db18-4473-8a2f-f950977f3731",
      "name": "Sticky Note - Fetch Data",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        -432
      ],
      "parameters": {
        "width": 327,
        "height": 441,
        "content": "## 📥 STEP 4: FETCH REDDIT DATA\n\n**How it works:**\n- Uses Reddit's official JSON API (no auth needed)\n- Fetches from: `reddit.com/r/{subreddit}/top.json`\n- Parallel execution for speed\n- 30-second time"
      }
    },
    {
      "id": "66dc19c8-80eb-4a37-b5dc-752c756d1637",
      "name": "Sticky Note - Parse Posts",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        -496
      ],
      "parameters": {
        "width": 327,
        "height": 441,
        "content": "## 🔍 STEP 5: PARSE & CLEAN\n\n**This code node cleans the raw Reddit data:**\n\n### Filters Applied:\n- ❌ Removes posts below `min_upvotes`\n- ❌ Skips stickied posts (rules/announcements)\n- ❌ Excludes delet"
      }
    },
    {
      "id": "522b356f-35b6-4d30-953e-51f0c47ff539",
      "name": "Sticky Note - Aggregate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1936,
        -512
      ],
      "parameters": {
        "width": 327,
        "height": 441,
        "content": "## 📊 STEP 6: AGGREGATE & DEDUPLICATE\n\n**Combines all subreddit data:**\n\n### Aggregation:\n- Merges posts from all subreddits\n- Preserves source subreddit info\n- Maintains sorting by score\n\n### Deduplic"
      }
    },
    {
      "id": "4ce64fee-4588-4b13-8d6a-104c18811c3f",
      "name": "Sticky Note - AI Curation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        -640
      ],
      "parameters": {
        "width": 358,
        "height": 546,
        "content": "## 🤖 STEP 7: AI CURATION\n\n**AI Agent ranks and formats posts:**\n\n### What the AI Does:\n1. **Ranks** posts by relevance and quality\n2. **Selects** top N posts (from config)\n3. **Formats** with consiste"
      }
    },
    {
      "id": "cee5bc74-c80e-455d-a69f-1f061fe4ad15",
      "name": "Sticky Note - Format Output",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2672,
        -704
      ],
      "parameters": {
        "width": 327,
        "height": 601,
        "content": "## 📝 STEP 8: FORMAT OUTPUT\n\n**Formats AI-curated content for delivery:**\n\n### This node:\n- Extracts formatted text from AI response\n- Handles markdown formatting\n- Ensures consistent structure\n- Prepa"
      }
    },
    {
      "id": "27d43d74-19ab-4e1e-9161-fb6b5efdaf8a",
      "name": "Sticky Note - Validation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2032,
        320
      ],
      "parameters": {
        "width": 327,
        "height": 446,
        "content": "## ✅ STEP 9: VALIDATION\n\n**Checks if AI generated valid output:**\n\n### Validation Logic:\n- Checks if `formatted_output` exists\n- Verifies it's not empty\n- Prevents sending blank messages\n\n### Flow Con"
      }
    },
    {
      "id": "401c2f37-1c0f-462f-87e3-e57652c346c0",
      "name": "Sticky Note - Delivery Platforms",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2688,
        -64
      ],
      "parameters": {
        "width": 420,
        "height": 650,
        "content": "## 📤 STEP 10: DELIVERY\n\n**Choose your delivery platform(s):**\n\n### 📱 Telegram\n1. Create bot via [@BotFather](https://t.me/botfather)\n2. Get bot token\n3. Get chat ID (send message to bot, check updates"
      }
    },
    {
      "id": "132efcb7-a0c6-4bca-8420-891971640e7f",
      "name": "📅 Schedule Trigger (Daily 9 AM)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        384,
        96
      ]
    },
    {
      "id": "43f60c9c-e735-4e3c-907e-91cca5cd377f",
      "name": "⚙️ Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        592,
        96
      ]
    },
    {
      "id": "ced0b421-1f5b-4b47-93f8-1e69bc13f7da",
      "name": "📋 Split Subreddit List",
      "type": "n8n-nodes-base.set",
      "position": [
        784,
        96
      ]
    },
    {
      "id": "0efa91cf-0173-4d52-9e79-cd7fe40ae9a5",
      "name": "🔄 Loop Through Subreddits",
      "type": "n8n-nodes-base.set",
      "position": [
        992,
        96
      ]
    },
    {
      "id": "75139925-31fb-4999-8ae3-da18c84fea16",
      "name": "🌐 Fetch Reddit Posts (JSON API)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1232,
        96
      ]
    },
    {
      "id": "351cd99a-2e3a-4be1-92f1-c3a782fd0a2b",
      "name": "🔍 Parse & Clean Posts",
      "type": "n8n-nodes-base.code",
      "position": [
        1424,
        96
      ]
    },
    {
      "id": "c2733e06-c5f5-48e0-8135-656dd108423b",
      "name": "📊 Aggregate & Deduplicate",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        96
      ]
    },
    {
      "id": "7d167036-16e2-48cf-ace9-7b63b40dc69d",
      "name": "🤖 AI Content Curator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1808,
        96
      ]
    },
    {
      "id": "5610b7d3-4489-4314-8d57-40ac7a907c85",
      "name": "Google Gemini Flash 2.0",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1808,
        304
      ]
    },
    {
      "id": "0e8207b0-4330-4e03-a155-fea83a88e8cd",
      "name": "📝 Format for Multiple Platforms",
      "type": "n8n-nodes-base.code",
      "position": [
        2064,
        96
      ]
    },
    {
      "id": "fd16865d-a1f5-4085-89c8-e1193531bfcf",
      "name": "✅ Check AI Output",
      "type": "n8n-nodes-base.if",
      "position": [
        2208,
        96
      ]
    },
    {
      "id": "ff981252-16c1-4307-810d-048106cb751e",
      "name": "📱 Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2464,
        -96
      ]
    },
    {
      "id": "5cc13e05-a01b-4bb5-b0d1-ed8e935c59f4",
      "name": "💬 Send to Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        2464,
        96
      ]
    },
    {
      "id": "20df81d2-629c-46ce-b367-b1a21d32fc98",
      "name": "💼 Send to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        2480,
        320
      ]
    }
  ],
  "connections": {
    "✅ Check AI Output": {
      "main": [
        [
          {
            "node": "📱 Send to Telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "💬 Send to Discord",
            "type": "main",
            "index": 0
          },
          {
            "node": "💼 Send to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Configuration": {
      "main": [
        [
          {
            "node": "📋 Split Subreddit List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Flash 2.0": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 AI Content Curator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Content Curator": {
      "main": [
        [
          {
            "node": "📝 Format for Multiple Platforms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Parse & Clean Posts": {
      "main": [
        [
          {
            "node": "📊 Aggregate & Deduplicate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Split Subreddit List": {
      "main": [
        [
          {
            "node": "🔄 Loop Through Subreddits",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Aggregate & Deduplicate": {
      "main": [
        [
          {
            "node": "🤖 AI Content Curator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Loop Through Subreddits": {
      "main": [
        [
          {
            "node": "🌐 Fetch Reddit Posts (JSON API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🌐 Fetch Reddit Posts (JSON API)": {
      "main": [
        [
          {
            "node": "🔍 Parse & Clean Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📅 Schedule Trigger (Daily 9 AM)": {
      "main": [
        [
          {
            "node": "⚙️ Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Format for Multiple Platforms": {
      "main": [
        [
          {
            "node": "✅ Check AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}