{
  "name": "Send daily Reddit digest email with Google Sheets scoring and SMTP",
  "nodes": [
    {
      "id": "f4d0ce16-97da-4a58-b05d-bf70fda27342",
      "name": "Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        160,
        0
      ]
    },
    {
      "id": "b3aaf843-45a8-451a-b92b-1503e12569d0",
      "name": "Read Sources",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        352,
        0
      ]
    },
    {
      "id": "35983a34-4ad4-4461-abf0-1701de205fc0",
      "name": "Build Feed URL",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "583ee73f-2969-4320-a2c3-b13653121de1",
      "name": "Fetch Feed XML1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        704,
        0
      ]
    },
    {
      "id": "9bec2a3f-8952-4fbf-adec-ec29566aaf39",
      "name": "Split Atom Entries",
      "type": "n8n-nodes-base.code",
      "position": [
        976,
        0
      ]
    },
    {
      "id": "d2c0a2a9-08cf-4a5e-a017-5c0167409c16",
      "name": "Parse XML",
      "type": "n8n-nodes-base.xml",
      "position": [
        848,
        0
      ]
    },
    {
      "id": "d1082b91-9a76-468b-9dfe-9a8f409f557a",
      "name": "Normalize Post Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1136,
        0
      ]
    },
    {
      "id": "4bb91a2c-9f68-4ece-954c-4072b4f8a4c6",
      "name": "Read Keywords",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1344,
        128
      ]
    },
    {
      "id": "990b5c40-3dce-402b-a473-f8b4bb7e22fb",
      "name": "Scoring",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        -48
      ]
    },
    {
      "id": "f8aa0916-b771-4370-86d4-50f86d3636c9",
      "name": "Collect Candidates",
      "type": "n8n-nodes-base.code",
      "position": [
        1840,
        -48
      ]
    },
    {
      "id": "ae8a88d4-ecee-4c6f-9bdc-b26f6a1ac7f2",
      "name": "Read Seen",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1984,
        -48
      ]
    },
    {
      "id": "e3c8cbfb-9e21-4c89-981a-9a76be0b1888",
      "name": "Filter New Only",
      "type": "n8n-nodes-base.code",
      "position": [
        2128,
        -48
      ]
    },
    {
      "id": "f725d452-1d63-4fcc-aae7-6ec2fb92f1ac",
      "name": "Append Seen",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2304,
        -48
      ]
    },
    {
      "id": "e44e8a88-8852-4b27-8b89-d7603e67fb97",
      "name": "Build Email Digest",
      "type": "n8n-nodes-base.code",
      "position": [
        2352,
        208
      ]
    },
    {
      "id": "0c28a96a-aec0-470a-8206-8e303497a1e0",
      "name": "Send email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2528,
        208
      ]
    },
    {
      "id": "d50f0eaf-09d6-4f2f-aa16-7867fd2f3ec9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -320
      ],
      "parameters": {
        "width": 560,
        "height": 656,
        "content": "## SCORE REDDIT POSTS AND EMAIL THEM TO YOURSELF EVERY MORNING TO RESPOND\n\n### How it works\n1. Set up Google sheets with configuration (Subreddits and keywords) \n2. Pull Reddit via RSS \n3. Cleanup/Nor"
      }
    },
    {
      "id": "048b489f-5923-495e-a86b-672be8475205",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -96
      ],
      "parameters": {
        "width": 192,
        "height": 256,
        "content": "### Read in sources"
      }
    },
    {
      "id": "024f1fed-9721-476f-80f6-2aff2218f46d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -96
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "### Build XML feed"
      }
    },
    {
      "id": "9295b2f9-d13f-4c77-afad-13bf5a8c4b15",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -96
      ],
      "parameters": {
        "width": 400,
        "height": 272,
        "content": "### Clean and normalize posts"
      }
    },
    {
      "id": "a97c1a62-f39d-4fab-9994-937c8b8af3da",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        -112
      ],
      "parameters": {
        "width": 304,
        "height": 400,
        "content": "### Keywords for every pos"
      }
    },
    {
      "id": "bca34b32-0c24-4371-8490-e503f6c4fa25",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1472,
        -32
      ]
    },
    {
      "id": "e3dd9cff-835a-467c-bad8-fa223d086a4f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -112
      ],
      "parameters": {
        "width": 288,
        "height": 256,
        "content": "### Score and filter posts"
      }
    },
    {
      "id": "a4e4fda2-d724-45bc-bae3-f8cdc8a2b547",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1968,
        -112
      ],
      "parameters": {
        "width": 448,
        "height": 256,
        "content": "### Keep only new posts"
      }
    },
    {
      "id": "b6e1e0dd-697f-4a23-80ef-c6a638cac2e2",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2304,
        160
      ],
      "parameters": {
        "width": 400,
        "height": 256,
        "content": "### Build and Send email"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scoring": {
      "main": [
        [
          {
            "node": "Collect Candidates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule": {
      "main": [
        [
          {
            "node": "Read Sources",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse XML": {
      "main": [
        [
          {
            "node": "Split Atom Entries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Seen": {
      "main": [
        [
          {
            "node": "Filter New Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Sources": {
      "main": [
        [
          {
            "node": "Build Feed URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Keywords": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Build Feed URL": {
      "main": [
        [
          {
            "node": "Fetch Feed XML1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Feed XML1": {
      "main": [
        [
          {
            "node": "Parse XML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter New Only": {
      "main": [
        [
          {
            "node": "Append Seen",
            "type": "main",
            "index": 0
          },
          {
            "node": "Build Email Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Email Digest": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Candidates": {
      "main": [
        [
          {
            "node": "Read Seen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Atom Entries": {
      "main": [
        [
          {
            "node": "Normalize Post Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Post Fields": {
      "main": [
        [
          {
            "node": "Read Keywords",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}