{
  "name": "Guida - Alert Telegram solo per articoli RSS con una parola chiave",
  "nodes": [
    {
      "parameters": {
        "feedUrl": "https://news.ycombinator.com/rss",
        "pollTimes": {
          "item": [
            { "mode": "everyMinute" }
          ]
        }
      },
      "id": "rss1",
      "name": "Nuovo articolo nel feed",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": false, "leftValue": "", "typeValidation": "loose" },
          "conditions": [
            {
              "id": "cond1",
              "leftValue": "={{$json.title}}",
              "rightValue": "={{$env.KEYWORD || 'n8n'}}",
              "operator": { "type": "string", "operation": "contains" }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "filter1",
      "name": "Contiene la parola chiave?",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [220, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.telegram.org/botYOUR_BOT_TOKEN/sendMessage",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            { "name": "chat_id", "value": "YOUR_CHAT_ID" },
            { "name": "text", "value": "={{$json.title}}\n{{$json.link}}" }
          ]
        },
        "options": {}
      },
      "id": "http1",
      "name": "Invia su Telegram",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [440, 0]
    }
  ],
  "connections": {
    "Nuovo articolo nel feed": { "main": [[{ "node": "Contiene la parola chiave?", "type": "main", "index": 0 }]] },
    "Contiene la parola chiave?": { "main": [[{ "node": "Invia su Telegram", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}
