{
  "id": "wY5AM6wBQUCsBEad",
  "name": "Cybersecurity News Automation Workflow",
  "tags": [],
  "nodes": [
    {
      "id": "b10ce630-5089-4e60-b0a4-6cc33b1b3f50",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        432,
        64
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineByPosition",
        "numberInputs": 3
      },
      "executeOnce": false,
      "typeVersion": 3.2
    },
    {
      "id": "ddbbba57-86dc-4acc-ae46-ed791c115ac6",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        928,
        96
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "c7dae290-121d-4ca4-b32a-673dd399b3a5",
      "name": "Bleeping Computer Security Bulletin",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -704,
        80
      ],
      "parameters": {
        "url": "https://www.bleepingcomputer.com/feed/",
        "options": {}
      },
      "executeOnce": false,
      "typeVersion": 1.2
    },
    {
      "id": "080cd4c4-a3b9-49c9-9d7f-f8a107d95afd",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -304,
        -80
      ],
      "parameters": {
        "url": "={{ $json.link }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "ffccb9fb-ff29-44ce-b502-ae68ece36788",
      "name": "Filter Image Links From Body",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        -80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a8f61a2d-bd13-4b82-971b-eca739fbbf90",
              "name": "data",
              "type": "string",
              "value": "="
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "9d0ccc0e-3d17-4332-8eb7-f1cdfbe29c88",
      "name": "Filter Body from Full HTML",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -80
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3.4
    },
    {
      "id": "a81c800a-b102-43d9-85f6-07bba8b40548",
      "name": "Send a photo message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1168,
        112
      ],
      "parameters": {
        "file": "={{ $json.data }}",
        "chatId": "@DailySecurityNewss",
        "operation": "sendPhoto",
        "additionalFields": {
          "caption": "={{ $json.title }}    \n\nBy - {{ $json.creator }}   \nPublished on {{ $json.pubDate.match(/\\d{1,2} \\w{3} \\d{4}/)[0] }}    \n\nBrief Summary - {{ $json.output }}    \n\nCategories -  {{ $json.categories }} \n\nRead more - {{ $json.link }}"
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "executeOnce": false,
      "typeVersion": 1.2
    },
    {
      "id": "1247a5e4-fc46-4e2a-8e22-2620cf3efe99",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -144,
        400
      ],
      "parameters": {
        "model": "x-ai/grok-4-fast:free",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "84c03a3e-8e52-4797-abef-02c9d7f31625",
      "name": "9 AM - Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -880,
        80
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "d60a9913-3692-46c9-97bb-02fd9d36e5ef",
      "name": "Wait 1 min",
      "type": "n8n-nodes-base.wait",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "873cc23b-1084-468b-9de7-fb7190baed93",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -144,
        240
      ],
      "parameters": {
        "text": "=Simplify the {{ $json.contentSnippet }} in 2 short sentences.",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "f07b7050-be4b-4e68-8054-8abaeb35305d",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -48,
        400
      ],
      "parameters": {
        "sessionKey": "={{ $json.pubDate }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 13
      },
      "typeVersion": 1.3
    },
    {
      "id": "33834736-c9f1-491f-af6c-50a6e5b8efab",
      "name": "Sponsored Removal",
      "type": "n8n-nodes-base.if",
      "position": [
        624,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "93d14169-a4fa-472d-b0bd-f918307382c3",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.creator }} ",
              "rightValue": "Sponsored"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "e8187f7e-6f64-45db-8d0a-d1e27646c7d0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -160
      ],
      "parameters": {
        "width": 688,
        "height": 256,
        "content": "## Wesbite Scrapper"
      },
      "typeVersion": 1
    },
    {
      "id": "26005a59-54b2-47a1-aae8-e123e72482cf",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        -16
      ],
      "parameters": {
        "width": 672,
        "height": 352,
        "content": "## Post all messages on telegram"
      },
      "typeVersion": 1
    },
    {
      "id": "827c0e01-7be2-4f75-bbbb-f366e8e752b2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -16
      ],
      "parameters": {
        "width": 272,
        "height": 352,
        "content": "## Sponsored posts Removal"
      },
      "typeVersion": 1
    },
    {
      "id": "df6c638a-40b6-43e9-8ec2-200da7c2d72b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        160
      ],
      "parameters": {
        "width": 304,
        "height": 384,
        "content": "## Sumarize with AI"
      },
      "typeVersion": 1
    },
    {
      "id": "06a85cf8-08f6-4fe9-b48f-d756681ae412",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        16
      ],
      "parameters": {
        "width": 416,
        "height": 240,
        "content": "## Feed Fetch on Scheduled time"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c0f77c60-79a7-4787-87fc-e403b2ab17b1",
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Sponsored Removal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Wait 1 min": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Filter Body from Full HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Send a photo message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sponsored Removal": {
      "main": [
        [],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a photo message": {
      "main": [
        [
          {
            "node": "Wait 1 min",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "9 AM - Schedule Trigger": {
      "main": [
        [
          {
            "node": "Bleeping Computer Security Bulletin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Body from Full HTML": {
      "main": [
        [
          {
            "node": "Filter Image Links From Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Image Links From Body": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bleeping Computer Security Bulletin": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}