8
n8n 中文网amn8n.com

ca7ai n8n urlscan 工作流模板

中级

这是一个SecOps领域的自动化工作流,包含 6 个节点。主要使用 Wait, Gmail, Webhook, UrlScanIo 等节点。 使用 urlscan.io 扫描 URL 并通过 Gmail 发送结果

前置要求
  • Google 账号和 Gmail API 凭证
  • HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "fa3hibN6VBUhcGwq",
  "meta": {
    "instanceId": "b9d26382fbc087c17fe86e193d09f32e5d99f4a254d13f3b8ee28079e71766cf",
    "templateCredsSetupCompleted": true
  },
  "name": "ca7ai n8n urlscan 工作流模板",
  "tags": [],
  "nodes": [
    {
      "id": "707a9468-0824-4be6-9da0-e3723f799c5a",
      "name": "便签 - 工作原理",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -48
      ],
      "parameters": {
        "color": 7,
        "width": 520,
        "height": 400,
        "content": "## 工作原理"
      },
      "typeVersion": 1
    },
    {
      "id": "76a366e5-b143-4ac2-89e3-e1d289c07b7b",
      "name": "便签 - 设置",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        384
      ],
      "parameters": {
        "color": 4,
        "width": 520,
        "height": 360,
        "content": "## 设置与凭据"
      },
      "typeVersion": 1
    },
    {
      "id": "9612523c-e1c0-40b5-bef7-1c3778843e5c",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        240,
        224
      ],
      "webhookId": "498809c9-160b-452d-bc7d-a40fde518b08",
      "parameters": {
        "path": "urlscan",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "5425b204-ff3f-436e-b309-9aeae544c4f2",
      "name": "执行扫描",
      "type": "n8n-nodes-base.urlScanIo",
      "position": [
        464,
        224
      ],
      "parameters": {
        "url": "={{ $json.body?.url?.[0] ?? $json.body?.url ?? $json.url }}",
        "additionalFields": {}
      },
      "credentials": {
        "urlScanIoApi": {
          "id": "FFFludnLTTtPBB",
          "name": "urlscan.io"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e02bbd59-27c7-4a88-bcf7-70b44ca4abbc",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        672,
        224
      ],
      "webhookId": "317b4b1c-1c57-4281-8d6f-e6a29e4c8569",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "c30e2048-9cf4-42a5-9b3e-0b2514d9f208",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        896,
        224
      ],
      "webhookId": "fd97447d-60ce-4453-9a49-8bfd8e52e239",
      "parameters": {
        "sendTo": "email@domain.com",
        "message": "=<p><strong>URL submitted to <a href=\"https://urlscan.io\">urlscan.io</a></strong></p>\n<p><strong>Scanned URL:</strong>{{ $json.url }}</p>\n<p><strong>Result URL:</strong> {{ $json.result }}\n<p><strong>Scan ID:</strong>{{ $json.scanId }}</p>\n<p><strong>Screenshot (when ready):</strong> <a href=\"https://urlscan.io/screenshots/{{ $json.scanId || $json.uuid || $json.task?.uuid }}.png\">https://urlscan.io/screenshots/{{ $json.scanId || $json.uuid || $json.task?.uuid }}.png</a></p>\n<p><strong>API result (JSON):</strong><br>{{ $json.api }}</p>\n<hr>\n",
        "options": {
          "appendAttribution": false
        },
        "subject": "=URLScan Submitted for {{ $json.url || $item(0).$node[\"Webhook\"].json.body.url?.[0] || $item(0).$node[\"Webhook\"].json.body.url }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "111F7TWKxYiCuuj",
          "name": "Gmail"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5d685fbd-8fc6-48b8-a0c9-c8a8ea373775",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Perform a scan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perform a scan": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 安全运维

需要付费吗?

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

工作流信息
难度等级
中级
节点数量6
分类1
节点类型5
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流