{
  "name": "Weekly RSS digest newsletter draft",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                1
              ],
              "triggerAtHour": 7
            }
          ]
        }
      },
      "id": "af237d1c-d9ac-5143-8003-20b6b837a8e7",
      "name": "Every Monday at 07:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        200,
        300
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "f1",
              "name": "feeds",
              "value": "=[\"https://n8n.io/blog/rss/\", \"https://example.com/feed\"]",
              "type": "array"
            }
          ]
        },
        "options": {}
      },
      "id": "f533db81-043a-5e61-a5c7-daa0ae7cd411",
      "name": "My feeds",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        400,
        300
      ]
    },
    {
      "parameters": {
        "fieldToSplitOut": "feeds",
        "options": {
          "destinationFieldName": "feed"
        }
      },
      "id": "4471568a-e583-506a-a4b8-098b4ba5437e",
      "name": "One item per feed",
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        600,
        300
      ]
    },
    {
      "parameters": {
        "url": "={{ $json.feed }}",
        "options": {}
      },
      "id": "0a4dfc4a-3e21-5885-b19a-c0d167c12d06",
      "name": "Read feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.1,
      "position": [
        800,
        300
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "f515b697-0a05-449b-ae5b-037b4436ba7d",
              "leftValue": "={{ $json.isoDate }}",
              "rightValue": "={{ $now.minus({days: 7}).toISO() }}",
              "operator": {
                "type": "dateTime",
                "operation": "after"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "4c4d5315-2929-5922-a3cb-b8910f560b96",
      "name": "Last 7 days only",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2,
      "position": [
        1000,
        300
      ]
    },
    {
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "items",
        "options": {}
      },
      "id": "f5da4dc2-8ffa-5eef-9c2a-3dc550bc8ca8",
      "name": "Combine items",
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        1200,
        300
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "messages": {
          "values": [
            {
              "content": "=Pick the 5 most useful items for beginners. For each, write a headline, two plain-English sentences, and the link. Add a one-line intro.\n\n{{ $json.items.map(i => '- ' + i.title + ' | ' + i.link + ' | ' + (i.contentSnippet || '').slice(0, 300)).join('\\n') }}"
            }
          ]
        },
        "options": {}
      },
      "id": "47eca281-1ddd-5434-a4a0-b9fa0f1afb10",
      "name": "Write the digest",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        1400,
        300
      ]
    },
    {
      "parameters": {
        "sendTo": "you@example.com",
        "subject": "=Newsletter draft for {{ $now.toFormat('d LLL yyyy') }}",
        "emailType": "text",
        "message": "={{ $json.message.content }}",
        "options": {}
      },
      "id": "ce519857-23d1-5587-88ab-787567ac1dbb",
      "name": "Email me the draft",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1600,
        300
      ]
    },
    {
      "parameters": {
        "content": "## Draft, not yet tested\nThis workflow was written by Automation Recipes and has NOT been run end to end yet.\n\nAfter importing: open each node, connect your own accounts (credentials), and fill in anything left blank (sheet URL, Slack channel, label names). Then run it once by hand with test data before turning it on.\n\nReplace the example feeds in My feeds and the email address in the last step.",
        "height": 260,
        "width": 420
      },
      "id": "76b4a3b0-7c96-56ad-98d9-05e590cec029",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        20
      ]
    }
  ],
  "connections": {
    "Every Monday at 07:00": {
      "main": [
        [
          {
            "node": "My feeds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "My feeds": {
      "main": [
        [
          {
            "node": "One item per feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "One item per feed": {
      "main": [
        [
          {
            "node": "Read feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read feed": {
      "main": [
        [
          {
            "node": "Last 7 days only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Last 7 days only": {
      "main": [
        [
          {
            "node": "Combine items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine items": {
      "main": [
        [
          {
            "node": "Write the digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the digest": {
      "main": [
        [
          {
            "node": "Email me the draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}