{
  "name": "Auto-download Reddit memes to Google Drive with duplicate detection & Telegram alerts",
  "nodes": [
    {
      "id": "0bd4a770-9b16-4b30-836d-0013a530c3f5",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        -1680,
        256
      ]
    },
    {
      "id": "ae4f40b1-2401-4d90-a454-79e60e39ea6d",
      "name": "Loop Posts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -672,
        256
      ]
    },
    {
      "id": "9494edb5-de72-409b-ac68-64c9039098da",
      "name": "Is a new image?",
      "type": "n8n-nodes-base.if",
      "position": [
        224,
        464
      ]
    },
    {
      "id": "44c886f4-09ac-46e9-8e9d-eb9751337fc8",
      "name": "Download image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        448,
        464
      ]
    },
    {
      "id": "131453d7-6485-419b-afb7-a59f68719625",
      "name": "Upload image to drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        672,
        528
      ]
    },
    {
      "id": "0e0a5979-4f79-4471-a5e7-f5d115239280",
      "name": "Image variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        384
      ]
    },
    {
      "id": "2df122fc-8687-4a1e-af60-f78355f9e9f2",
      "name": "Search image in drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        384
      ]
    },
    {
      "id": "23e525af-815f-4fe6-b50f-43820ffb5050",
      "name": "Keep only images",
      "type": "n8n-nodes-base.filter",
      "position": [
        -896,
        256
      ]
    },
    {
      "id": "140b6db8-d088-4429-bbe1-03c01cccbe31",
      "name": "Get Reddit posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1120,
        256
      ]
    },
    {
      "id": "81ad2196-6e73-4464-94ad-e546dd620337",
      "name": "Get random subreddit",
      "type": "n8n-nodes-base.code",
      "position": [
        -1344,
        256
      ]
    },
    {
      "id": "189789a1-9107-4055-8f4f-c8440f461b12",
      "name": "Wait between requests",
      "type": "n8n-nodes-base.wait",
      "position": [
        -448,
        384
      ]
    },
    {
      "id": "28fac7ac-64d4-4b46-91c6-5ddc270ba863",
      "name": "Keep only new images",
      "type": "n8n-nodes-base.filter",
      "position": [
        -448,
        96
      ]
    },
    {
      "id": "2d9d65fe-45cf-46d9-872d-393f5e5229b2",
      "name": "Have new images?",
      "type": "n8n-nodes-base.if",
      "position": [
        -16,
        96
      ]
    },
    {
      "id": "866be212-97a2-4121-9208-9245fe0a8d8a",
      "name": "Aggregate new images",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -224,
        96
      ]
    },
    {
      "id": "b353f3c6-a1ea-4759-9616-00567be7c5d0",
      "name": "Notify on Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        224,
        0
      ]
    },
    {
      "id": "a27568e7-2e17-44f0-a6e9-61017565926f",
      "name": "Send no new images text",
      "type": "n8n-nodes-base.telegram",
      "position": [
        224,
        176
      ]
    },
    {
      "id": "e2974ffa-3942-444b-bde3-30881e1c9675",
      "name": "Cron",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2016,
        256
      ]
    },
    {
      "id": "d2eb37ad-0c06-4e9a-acb4-4a79d93d54c4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2480,
        -320
      ],
      "parameters": {
        "width": 400,
        "height": 736,
        "content": "## 🔄 How It Works\n\nWorkflow execution flow:\n\n1. 🕐 Cron trigger starts the process\n2. 🎲 Randomly selects a subreddit from your list\n3. 📥 Fetches latest 30 posts from 'new' category\n4. 🖼️ Filters posts "
      }
    },
    {
      "id": "afd62df4-fc7b-41a9-9aa0-16808d05a7ab",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2064,
        -320
      ],
      "parameters": {
        "width": 272,
        "height": 112,
        "content": "# 📌 Follow me:\n## [LinkedIn](https://www.linkedin.com/in/vikthyr)"
      }
    },
    {
      "id": "314b4db5-4261-4395-b071-5cb7be9395c2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -96
      ],
      "parameters": {
        "width": 432,
        "height": 512,
        "content": "## ⚙️ Configuration Settings\n\nUpdate these variables in the Settings node:\n\n🔧 **Required Configuration:**\n• `telegram_chat_id`: Your Telegram chat ID for notifications\n• `subreddits_array`: List of su"
      }
    }
  ],
  "connections": {
    "Cron": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Get random subreddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Posts": {
      "main": [
        [
          {
            "node": "Keep only new images",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait between requests",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download image": {
      "main": [
        [
          {
            "node": "Upload image to drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image variables": {
      "main": [
        [
          {
            "node": "Search image in drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is a new image?": {
      "main": [
        [
          {
            "node": "Download image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit posts": {
      "main": [
        [
          {
            "node": "Keep only images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Have new images?": {
      "main": [
        [
          {
            "node": "Notify on Telegram",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send no new images text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep only images": {
      "main": [
        [
          {
            "node": "Loop Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate new images": {
      "main": [
        [
          {
            "node": "Have new images?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get random subreddit": {
      "main": [
        [
          {
            "node": "Get Reddit posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep only new images": {
      "main": [
        [
          {
            "node": "Aggregate new images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search image in drive": {
      "main": [
        [
          {
            "node": "Is a new image?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload image to drive": {
      "main": [
        [
          {
            "node": "Loop Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait between requests": {
      "main": [
        [
          {
            "node": "Image variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}