8
n8n 中文网amn8n.com

AI漏洞检测和Servicenow事件创建

中级

这是一个SecOps, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 JinaAi, SplitOut, ServiceNow, RssFeedRead, ScheduleTrigger 等节点。 使用GPT-4和ServiceNow事件创建自动化AI漏洞监控

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "2Nez00PbMbD5pHI5",
  "meta": {
    "instanceId": "6004a16b59a95da573dfac2b89c29cb3d5d09e00386053659b2f24878624b8d6",
    "templateCredsSetupCompleted": true
  },
  "name": "AI漏洞检测和Servicenow事件创建",
  "tags": [],
  "nodes": [
    {
      "id": "2b5b197b-eebc-43c2-924a-85cedd66b47f",
      "name": "RSS 读取",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        208,
        0
      ],
      "parameters": {
        "url": "https://rss.app/feeds/tbFqDT5HIb59.xml",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "5e2d584f-7254-41da-9f0b-4ee99d82defe",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        624,
        0
      ],
      "parameters": {
        "text": "=Snippet {{ $json.metadata.description}}\nTitle{{ $json.title}}\npubDate{{ $json.publishedTime}}\nCreator {{ $json.metadata.author}}\ncontent {{ $json.content}}",
        "options": {
          "systemPromptTemplate": "You are an expert extraction algorithm.\nOnly extract relevant information from the input text.\nExtract data as JSON objects with the following fields:\n\ntitle (string): The title of the news article or vulnerability report.\nlink (string): The URL linking to the full article.\npubDate (string, ISO 8601 format preferred): The publication date of the article.\ncreator (string): The author or source of the article.\ncontent (string): A brief summary or snippet of the article content.\n\n\nIf any field is missing or not found, omit that field in the output.\nOutput a JSON array called results containing the extracted objects.\n"
        },
        "schemaType": "manual",
        "inputSchema": "={\n\t\"properties\": {\n\t\t\"Title\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"Description\": {\n\t\t\t\"type\": \"string\"\n\t\t\t\n\t\t},\n       \"PublishedTime\": {\n\t\t\t\"type\": \"string\"\n\t\t\t\n\t\t},\n       \"SiteName\": {\n\t\t\t\"type\": \"string\"\n\t\t\t\n\t\t}\n    \n    }\n} "
      },
      "typeVersion": 1.2
    },
    {
      "id": "fcfeb18c-eb1c-42c8-b102-6a549a5dda7b",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        560,
        208
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ppNn03FE7vbsyINF",
          "name": "n8n free OpenAI API credits"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "73901b61-1b73-440c-b959-2a882331386e",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        976,
        0
      ],
      "parameters": {
        "options": {
          "destinationFieldName": "response"
        },
        "fieldToSplitOut": "output.results"
      },
      "typeVersion": 1
    },
    {
      "id": "9acef534-f34a-4655-b617-775a5ab2a805",
      "name": "创建事件",
      "type": "n8n-nodes-base.serviceNow",
      "position": [
        1184,
        0
      ],
      "parameters": {
        "resource": "incident",
        "operation": "create",
        "authentication": "basicAuth",
        "additionalFields": {
          "description": "=Snippet {{ $json.response.content }}\nCreator {{ $json.response.creator }}\nPubDate {{ $json.response.pubDate}} "
        },
        "short_description": "=Ai Vulnerability {{ $json.response.title }}"
      },
      "credentials": {
        "serviceNowBasicApi": {
          "id": "keHrNdS7cHG3Tr0X",
          "name": "ServiceNow Basic Auth account 2"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a50f6014-3019-4335-b4d6-9e1e199ee096",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "725aced5-996d-4529-9af1-60ac1e0bb693",
      "name": "读取 URL 内容",
      "type": "n8n-nodes-base.jinaAi",
      "position": [
        432,
        0
      ],
      "parameters": {
        "url": "={{ $json.link }}",
        "options": {},
        "requestOptions": {}
      },
      "credentials": {
        "jinaAiApi": {
          "id": "kJgZ4iHvGNvtfSlw",
          "name": "Jina AI account 2"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0d769cde-f47e-44b9-b81f-7fd9eda3da07",
  "connections": {
    "RSS Read": {
      "main": [
        [
          {
            "node": "Read URL content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Create an incident",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read URL content": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 安全运维, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Tushar Mishra

Tushar Mishra

@yajna

Problem Solver | ServiceNow Architect | AI/ML Specialist | Product Builder 1. 10+ years in tech consulting and product development across AI, enterprise platforms, and cloud ecosystems. 2. ISB AMP in Business Analytics; strong foundation in strategy + data. 3. Founder – ReAcademy.ai: Flashcard-based learning SaaS using AI & LLMs to transform PDFs into gamified micro-learning.

外部链接
在 n8n.io 查看

分享此工作流