{
  "name": "RSS feed to Discord (new items only)",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyX",
              "value": 10,
              "unit": "minutes"
            }
          ]
        },
        "feedUrl": "https://status.example.com/history.atom"
      },
      "id": "c1470000-0000-4000-8000-000000000001",
      "name": "RSS Feed Trigger (set your feed URL)",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "notes": "Replace the feed URL with any RSS or Atom address, for example a vendor status page feed. The trigger remembers the items it has already emitted, so each new item fires once.",
      "notesInFlow": true
    },
    {
      "parameters": {
        "jsCode": "// One Discord message for all new feed items in this poll. Discord rejects content over 2000 characters.\nconst items = $input.all().map(i => i.json);\nconst SHOW = 10;\nconst clean = s => String(s || '').replace(/[\\[\\]]/g, ' ').replace(/\\s+/g, ' ').trim().slice(0, 160);\nconst lines = items.slice(0, SHOW).map(a => `- [${clean(a.title) || a.link}](<${a.link}>)${a.isoDate ? ' (' + String(a.isoDate).slice(0, 16).replace('T', ' ') + ' UTC)' : ''}`);\nconst more = items.length > SHOW ? `\\n...and ${items.length - SHOW} more in the feed.` : '';\nlet content = `${items.length} new item${items.length === 1 ? '' : 's'} in the feed:\\n` + lines.join('\\n') + more;\nif (content.length > 1900) content = content.slice(0, 1900) + '...';\nreturn [{ json: { content } }];"
      },
      "id": "c1470000-0000-4000-8000-000000000002",
      "name": "Build Discord message",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://discord.com/api/webhooks/YOUR/DISCORD_WEBHOOK",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ content: $json.content }) }}",
        "options": {}
      },
      "id": "c1470000-0000-4000-8000-000000000003",
      "name": "Post to Discord (webhook)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        480,
        0
      ],
      "notes": "Paste your own webhook URL here. It is a secret: do not share the exported file after you edit it.",
      "notesInFlow": true
    }
  ],
  "connections": {
    "RSS Feed Trigger (set your feed URL)": {
      "main": [
        [
          {
            "node": "Build Discord message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Discord message": {
      "main": [
        [
          {
            "node": "Post to Discord (webhook)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}