带AI的URL检查器生产版
中级
这是一个DevOps, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 If, Gmail, Webhook, HttpRequest, OpenAi 等节点。 网站运行时间监控(GPT-4分析和Gmail通知)
前置要求
- •Google 账号和 Gmail API 凭证
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "MATk1GTgv5UewRJB",
"meta": {
"instanceId": "b9d26382fbc087c17fe86e193d09f32e5d99f4a254d13f3b8ee28079e71766cf",
"templateCredsSetupCompleted": true
},
"name": "带 AI 的 URL 检查器生产版",
"tags": [],
"nodes": [
{
"id": "f4103bbf-3fd0-447e-8635-79e7f83bd115",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
0,
96
],
"webhookId": "6269ba57-045c-4752-b2a6-8a6af3acd437",
"parameters": {
"path": "url-check",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "4e844875-cf83-427c-9ea1-aa496e270246",
"name": "向模型发送消息",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
448,
96
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-nano",
"cachedResultName": "GPT-4.1-NANO"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a helpful website uptime analyzer. Given an HTTP response, determine if the site is up or down, and explain why.\n{\n \"url\": \"{{ $('Webhook').item.json.body.url[0] }}\",\n \"status_code\": \"{{ $json.statusCode }}\",\n \"body_snippet\": \"{{ $json.data }}\",\n \"headers\": \"{{ JSON.stringify($json.headers).slice(0, 500) }}\"\n}\n {{ $('Webhook').item.json.body.url[0] }}\n\nIf the resutls error out \"getaddrinfo ENOTFOUND\" respond back in a helpful manner. "
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "IZ5MCnU8soAAAld3",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "1bc231e1-eb60-4f34-a59f-d0f5f9aca2a3",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
848,
96
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "3465caee-4abf-4fa6-842f-308f378997ec",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.message.content.site_status }}",
"rightValue": "up"
},
{
"id": "1d79778b-10c8-4b53-b628-8c67bb17926f",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $('HTTP Request').item.json.statusCode }}",
"rightValue": 200
}
]
}
},
"typeVersion": 2.2
},
{
"id": "f39cab38-9ca4-4365-a192-00ba556162cb",
"name": "Gmail 成功消息",
"type": "n8n-nodes-base.gmail",
"position": [
1072,
0
],
"webhookId": "6b1c8679-c0fa-43cf-b091-819e568a97f7",
"parameters": {
"sendTo": "test@gmail.com",
"message": "=<h2>🌐 Website Status Check Result</h2> <p><strong>URL:</strong>{{ $('Webhook').item.json.body.url[0] }} </p> <p><strong>Status:{{ $json.message.content.site_status }}</strong> </p> <p><strong>Reason:</strong><br> {{ $json.message.content.reason }}</p> <hr> <p>Generated by n8n + ChatGPT</p>",
"options": {
"appendAttribution": false
},
"subject": "=✅ Website is {{ $json.message.content.site_status }}: Status Check for {{ $('Webhook').item.json.body.url[0] }}"
},
"credentials": {
"gmailOAuth2": {
"id": "3P9F7TWBBBCuujN",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "15bf2432-4e64-4f1a-8823-c470f4aa7ae6",
"name": "Gmail 错误消息",
"type": "n8n-nodes-base.gmail",
"position": [
1072,
192
],
"webhookId": "6b1c8679-c0fa-43cf-b091-819e568a97f7",
"parameters": {
"sendTo": "test@gmail.com",
"message": "=<h2>🌐 Website Status Check Result</h2> <p><strong>URL:</strong>{{ $('Webhook').item.json.body.url[0] }} </p> <p><strong>Status:{{ $json.message.content.status }}</strong> </p> <p><strong>Reason:</strong><br> {{ $json.message.content.reason }}</p> <hr> <p>Generated by n8n + ChatGPT</p>",
"options": {},
"subject": "=❌ Website Status Check for {{ $('Webhook').item.json.body.url[0] }}"
},
"credentials": {
"gmailOAuth2": {
"id": "3P9F7TCCCCuujN",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "12e02b10-4293-4db1-bc15-4b8ee0150ccd",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueErrorOutput",
"position": [
224,
96
],
"parameters": {
"url": "={{ $json.body.url[0] }}",
"options": {
"response": {
"response": {
"fullResponse": true
}
},
"allowUnauthorizedCerts": true
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "66bf05c3-4127-420e-959b-dd4049cf6829",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-544,
-16
],
"parameters": {
"color": 4,
"width": 416,
"height": 224,
"content": "**输入格式**"
},
"typeVersion": 1
},
{
"id": "a6690c63-d12b-46c4-8f52-ab5edabf529b",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
240
],
"parameters": {
"color": 2,
"width": 288,
"height": 176,
"content": "**AI 模型和凭据**"
},
"typeVersion": 1
},
{
"id": "634e717f-482e-4fa4-8307-e4dfc69c8eba",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-464,
448
],
"parameters": {
"color": 3,
"content": "**错误处理**"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "5d0b1d0e-c41b-4715-8caf-e73b1244bdf5",
"connections": {
"If": {
"main": [
[
{
"node": "Gmail Success Message",
"type": "main",
"index": 0
}
],
[
{
"node": "Gmail Error Message",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Message a model",
"type": "main",
"index": 0
}
]
]
},
"Message a model": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 开发运维, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI分类处理的安全中心警报
使用GPT-4.1 Mini分类AWS安全配置错误并向Gmail发送警报
If
Set
Code
+6
12 节点Calistus Christian
安全运维
Mini SOC事件分类
自动化安全事件分类:GPT-4o-mini和Gmail通知
Set
Gmail
Webhook
+2
7 节点Calistus Christian
AI 摘要总结
每日商业新闻
使用OpenAI和Gmail从多个RSS源生成每日商业新闻摘要
If
Code
Gmail
+7
15 节点Calistus Christian
市场调研
每日安全新闻
每日技术与网络安全简报:RSS、OpenAI GPT-4o 和 Gmail
If
Code
Gmail
+7
19 节点Calistus Christian
个人效率
使用PageSpeed Insights监控网站性能并保存到Google Sheets并发送警报
使用PageSpeed Insights监控网站性能,发送警报到Google Sheets
If
Set
Code
+8
20 节点Dahiana
开发运维
AI驱动的链接检查器
使用 urlscan.io 和 GPT-4o mini 扫描 URL 安全威胁
Wait
Gmail
Webhook
+3
7 节点Calistus Christian
安全运维
工作流信息
难度等级
中级
节点数量9
分类2
节点类型6
作者
Calistus Christian
@ca7aiAutomation strategist and AI workflow architect creating intelligent, agent-driven processes that streamline operations. I build advanced n8n solutions integrating AI, cloud services, and real-time data orchestration for scalable impact. Explore my free workflows to get started. Premium, custom-built solutions are also available. Connect with me on LinkedIn for tailored automation expertise.
外部链接
在 n8n.io 查看 →
分享此工作流