8
n8n 中文网amn8n.com

网络安全新闻自动化工作流

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 18 个节点。主要使用 If, Set, Wait, Merge, Telegram 等节点。 使用Grok AI为Telegram生成每日网络安全新闻摘要

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "wY5AM6wBQUCsBEad",
  "meta": {
    "instanceId": "18083175f4eac2ea739520c734f1ded6ad088964d17babfe45e60e277bf30aef"
  },
  "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 请求",
      "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": "发送照片消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1168,
        112
      ],
      "webhookId": "87a54202-4694-437c-af7d-d2e0e63e5428",
      "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": {
          "id": "kHyD8NWFeTBkZeBO",
          "name": "PrivateMessageTesterBot_API"
        }
      },
      "executeOnce": false,
      "typeVersion": 1.2
    },
    {
      "id": "1247a5e4-fc46-4e2a-8e22-2620cf3efe99",
      "name": "OpenRouter 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -144,
        400
      ],
      "parameters": {
        "model": "x-ai/grok-4-fast:free",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "id": "jY8XMSFuY5LfkNXC",
          "name": "xAI: Grok 4 Fast (free)"
        }
      },
      "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
      ],
      "webhookId": "f25fc517-1056-42fa-85ff-468d2da56b3f",
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "873cc23b-1084-468b-9de7-fb7190baed93",
      "name": "AI 代理",
      "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": "便签",
      "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": "便签1",
      "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": "便签 2",
      "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": "便签 3",
      "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": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        16
      ],
      "parameters": {
        "width": 416,
        "height": 240,
        "content": "## Feed Fetch on Scheduled time"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量18
分类2
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Sheikh Masem Mandal

Sheikh Masem Mandal

@masem1996

Automation enthusiast | Building AI-powered workflows with n8n to simplify complex processes. Passionate about cybersecurity, news automation, and creating smart bots that deliver value daily

外部链接
在 n8n.io 查看

分享此工作流