{
  "name": "RSS Feed \u2192 Daily Email Digest",
  "nodes": [
    {
      "parameters": {
        "url": "https://feeds.feedburner.com/example",
        "options": {}
      },
      "id": "rss1",
      "name": "RSS Feed 1",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [
        250,
        200
      ]
    },
    {
      "parameters": {
        "url": "https://example.com/feed",
        "options": {}
      },
      "id": "rss2",
      "name": "RSS Feed 2",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [
        250,
        400
      ]
    },
    {
      "parameters": {
        "mode": "combine",
        "combinationMode": "multiplex",
        "options": {}
      },
      "id": "merge",
      "name": "Merge Feeds",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 2.1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all().slice(0, 20);\nlet html = '<h1>Daily Digest</h1>';\nitems.forEach(item => {\n  html += `<h2><a href=\"${item.json.link}\">${item.json.title}</a></h2><p>${item.json.contentSnippet?.substring(0,200)}...</p>`;\n});\nreturn {html};"
      },
      "id": "compose",
      "name": "Compose HTML",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "fromEmail": "digest@example.com",
        "toEmail": "you@example.com",
        "subject": "Your Daily Digest \u2014 {{ $today }}",
        "bodyType": "html",
        "html": "={{ $json.html }}"
      },
      "id": "email",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [
        850,
        300
      ]
    }
  ],
  "connections": {
    "RSS Feed 1": {
      "main": [
        [
          {
            "node": "Merge Feeds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed 2": {
      "main": [
        [
          {
            "node": "Merge Feeds",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Feeds": {
      "main": [
        [
          {
            "node": "Compose HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compose HTML": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}