8
n8n 中文网amn8n.com

页面速度洞察

高级

这是一个DevOps, AI Summarization领域的自动化工作流,包含 17 个节点。主要使用 Code, Switch, Discord, ScheduleTrigger, ChainLlm 等节点。 使用 Gemini 和 PageSpeed Insights 自动化网站性能分析与比较

前置要求
  • Discord Bot Token 或 Webhook
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "hHhdfJwx4e6Q68ho",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "页面速度洞察",
  "tags": [],
  "nodes": [
    {
      "id": "f709e408-0443-42c5-b346-7df22a6e6dfe",
      "name": "分析单个 URL",
      "type": "n8n-nodes-google-pagespeed.googlePageSpeed",
      "position": [
        496,
        112
      ],
      "parameters": {
        "url": "={{ $json.content }}",
        "additionalFields": {}
      },
      "credentials": {
        "googlePageSpeedApi": {
          "id": "88sZZbmocLQRgVT4",
          "name": "Google PageSpeed account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "0af35e1d-138f-42b4-bb27-7d4aa86b2306",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        672
      ],
      "parameters": {
        "color": 5,
        "width": 272,
        "height": 80,
        "content": "## 在此获取您的密钥 [Here](https://developers.google.com/speed/docs/insights/v5/get-started)"
      },
      "typeVersion": 1
    },
    {
      "id": "fd0399cd-2643-4a3c-9d43-d938a69240ac",
      "name": "从站点地图分析",
      "type": "n8n-nodes-google-pagespeed.googlePageSpeed",
      "position": [
        -96,
        768
      ],
      "parameters": {
        "operation": "analyzeSitemap",
        "sitemapUrl": "=https://{{ $json.url }}/sitemap.xml",
        "urlFilters": {},
        "additionalFields": {}
      },
      "credentials": {
        "googlePageSpeedApi": {
          "id": "88sZZbmocLQRgVT4",
          "name": "Google PageSpeed account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "0fba35e0-9c05-4f66-9530-df2989918757",
      "name": "获取多条消息",
      "type": "n8n-nodes-base.discord",
      "position": [
        48,
        272
      ],
      "webhookId": "08a75470-e282-46c0-81bd-94bdb38aecf3",
      "parameters": {
        "limit": 1,
        "guildId": {
          "__rl": true,
          "mode": "list",
          "value": "924339263372406844",
          "cachedResultUrl": "https://discord.com/channels/924339263372406844",
          "cachedResultName": "Khaisa Studio"
        },
        "options": {},
        "resource": "message",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "1396015310888374313",
          "cachedResultUrl": "https://discord.com/channels/924339263372406844/1396015310888374313",
          "cachedResultName": "pagespeed"
        },
        "operation": "getAll"
      },
      "credentials": {
        "discordBotApi": {
          "id": "dJMKbc7ZDni2mvkT",
          "name": "Khaisa-n8n-bot"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "d3efd950-c7ab-45ff-8f3e-1eebf4674586",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -176,
        272
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 1
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "0c81a6b1-15ea-4e40-90ad-c8c4fe9d117e",
      "name": "批量分析多个 URL",
      "type": "n8n-nodes-google-pagespeed.googlePageSpeed",
      "position": [
        144,
        768
      ],
      "parameters": {
        "operation": "analyzeMultiple",
        "additionalFields": {}
      },
      "credentials": {
        "googlePageSpeedApi": {
          "id": "88sZZbmocLQRgVT4",
          "name": "Google PageSpeed account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "46fbf072-0d7b-48b5-82cc-6cd0d0412c44",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        640
      ],
      "parameters": {
        "color": 7,
        "width": 848,
        "height": 352,
        "content": "## 可用工具"
      },
      "typeVersion": 1
    },
    {
      "id": "b9f9b80e-41e2-4306-b441-88163db07472",
      "name": "发送消息",
      "type": "n8n-nodes-base.discord",
      "position": [
        1504,
        304
      ],
      "webhookId": "13a2a72e-c936-43c4-93af-f801b0f56a05",
      "parameters": {
        "content": "={{ $json.message }}",
        "guildId": {
          "__rl": true,
          "mode": "list",
          "value": "924339263372406844",
          "cachedResultUrl": "https://discord.com/channels/924339263372406844",
          "cachedResultName": "Khaisa Studio"
        },
        "options": {},
        "resource": "message",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "1396015310888374313",
          "cachedResultUrl": "https://discord.com/channels/924339263372406844/1396015310888374313",
          "cachedResultName": "pagespeed"
        }
      },
      "credentials": {
        "discordBotApi": {
          "id": "dJMKbc7ZDni2mvkT",
          "name": "Khaisa-n8n-bot"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "3a00c7c5-d0ab-4555-9994-48e270797b71",
      "name": "切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        272,
        272
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "process single",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "87365dce-5527-49da-ac21-587baa735679",
                    "operator": {
                      "type": "string",
                      "operation": "startsWith"
                    },
                    "leftValue": "={{ $json.content }}",
                    "rightValue": "http"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "compare",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "69456027-7e86-4077-9715-2ea7d66b0370",
                    "operator": {
                      "type": "string",
                      "operation": "startsWith"
                    },
                    "leftValue": "={{ $json.content }}",
                    "rightValue": "compare"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "cecf1333-f995-434b-a440-98fd4a7587ec",
      "name": "解析为各章节",
      "type": "n8n-nodes-base.code",
      "position": [
        1248,
        112
      ],
      "parameters": {
        "jsCode": "// n8n Code Node - Split long messages for Discord\n// Place this node between AI Agent and Discord Send Message\n\nconst input = $input.all();\nconst results = [];\n\n// Discord message limit (leaving some buffer)\nconst DISCORD_MAX_LENGTH = 1900;\n\n// Process each input item\nfor (const item of input) {\n  const longMessage = item.json.output || '';\n  \n  // If message is short enough, send as-is\n  if (longMessage.length <= DISCORD_MAX_LENGTH) {\n    results.push({\n      json: {\n        message: longMessage,\n        messageNumber: 1,\n        totalMessages: 1\n      }\n    });\n    continue;\n  }\n  \n  // Split long message into chunks\n  const chunks = splitMessage(longMessage, DISCORD_MAX_LENGTH);\n  \n  // Create output items for each chunk\n  chunks.forEach((chunk, index) => {\n    results.push({\n      json: {\n        message: chunk,\n        messageNumber: index + 1,\n        totalMessages: chunks.length\n      }\n    });\n  });\n}\n\n// Function to split message intelligently\nfunction splitMessage(text, maxLength) {\n  const chunks = [];\n  let currentChunk = '';\n  \n  // Split by natural break points (double newlines, then single newlines, then sentences)\n  const paragraphs = text.split('\\n\\n');\n  \n  for (const paragraph of paragraphs) {\n    // If adding this paragraph would exceed limit\n    if ((currentChunk + '\\n\\n' + paragraph).length > maxLength) {\n      // Save current chunk if it has content\n      if (currentChunk.trim()) {\n        chunks.push(currentChunk.trim());\n        currentChunk = '';\n      }\n      \n      // If single paragraph is too long, split by sentences\n      if (paragraph.length > maxLength) {\n        const sentences = paragraph.split('. ');\n        \n        for (let i = 0; i < sentences.length; i++) {\n          const sentence = sentences[i] + (i < sentences.length - 1 ? '. ' : '');\n          \n          if ((currentChunk + sentence).length > maxLength) {\n            if (currentChunk.trim()) {\n              chunks.push(currentChunk.trim());\n              currentChunk = sentence;\n            } else {\n              // Even single sentence is too long, force split\n              chunks.push(sentence.substring(0, maxLength - 3) + '...');\n              currentChunk = '...' + sentence.substring(maxLength - 3);\n            }\n          } else {\n            currentChunk += sentence;\n          }\n        }\n      } else {\n        currentChunk = paragraph;\n      }\n    } else {\n      // Add paragraph to current chunk\n      if (currentChunk) {\n        currentChunk += '\\n\\n' + paragraph;\n      } else {\n        currentChunk = paragraph;\n      }\n    }\n  }\n  \n  // Add final chunk\n  if (currentChunk.trim()) {\n    chunks.push(currentChunk.trim());\n  }\n  \n  return chunks;\n}\n\nreturn results;"
      },
      "typeVersion": 2
    },
    {
      "id": "d6d80ea2-4b28-45a1-883c-c4018c2d8af1",
      "name": "Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        800,
        288
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "7ZkDDnjsiPRXf6eh",
          "name": "project gcp: n8n-khmuhtadin"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "02a20bc9-69ed-4854-9a30-14fa63149fc1",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        720,
        112
      ],
      "parameters": {
        "text": "={{ $json }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=You are an expert web performance and SEO analyst.  Your task is to meticulously analyze the following Lighthouse JSON report. Your goal is to transform this raw data into a clear, insightful, and actionable audit report. The report should be easy for a website owner or project manager to understand but must also contain the specific technical details a developer needs to implement the fixes.  Analyze the JSON data provided below and structure your output using the following format and sections:  1. Executive Summary Start with a high-level, 2-3 sentence overview of the website's health based on this mobile audit. Summarize the key findings and overall performance.  2. Overall Scorecard Present the four main Lighthouse scores (Performance, Accessibility, Best Practices, SEO) in a clear list or table. Briefly explain what each score represents in simple terms.  3. ✅ What's Going Well (Key Strengths) Identify and celebrate what the website is doing right. Highlight the areas with perfect or near-perfect scores (like Best Practices) and explain why these are important wins.  4. 🚀 Actionable Recommendations (Priority List) This is the most critical section. Identify the key areas for improvement, ordering them by priority from most to least critical. For each recommendation:  State the Issue: Use a clear, descriptive title (e.g., \"Critical Accessibility Failure: Poor Color Contrast\").  Explain the Impact: In simple terms, explain why this is a problem. Describe its impact on user experience, accessibility for people with disabilities, or search engine ranking.  Provide the Fix: Give specific, actionable advice on how to resolve the issue. Reference the exact data from the JSON where necessary. For example, when discussing performance, mention the specific metrics (like Largest Contentful Paint at 2.8 s) and suggest concrete solutions (e.g., \"Optimize the main hero image to load faster\").  Crucially, focus your analysis on the audits with low or failing scores (color-contrast, meta-description) and the performance metrics that fall outside the \"good\" threshold.  Split the output into multiple shorter messages, each under 1800 characters. End each message with \"--- (Message X/Y) ---\" and ensure each message is complete and readable on its own."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "3a0b7ea6-287c-42c9-a460-6bc8868c7211",
      "name": "比较网站",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        896,
        416
      ],
      "parameters": {
        "text": "={{ $json }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "You are an expert web performance and SEO analyst specializing in website comparisons.\n\nYour task is to analyze website comparison data and create a Discord-optimized report. Use Discord markdown formatting and ensure readability on mobile and desktop Discord clients.\n\n**DISCORD FORMATTING RULES:**\n- Use **bold** for headings and emphasis\n- Use `code blocks` for metrics and URLs\n- Use bullet points with - or •\n- Avoid complex tables - use simple lists instead\n- Keep line spacing readable\n- Use emojis for visual appeal\n\n**ANALYSIS STRUCTURE:**\n\n**Message 1: Executive Summary & Scorecard**\n```\n🔍 **Website Performance Comparison**\n\n**Executive Summary:**\n[2-3 sentences comparing overall performance]\n\n**📊 Lighthouse Scores:**\n• **Performance:** `Site1: XX` vs `Site2: XX` (Winner: Site)\n• **Accessibility:** `Site1: XX` vs `Site2: XX` (Winner: Site)  \n• **Best Practices:** `Site1: XX` vs `Site2: XX` (Winner: Site)\n• **SEO:** `Site1: XX` vs `Site2: XX` (Winner: Site)\n\n🏆 **Overall Winner:** [Site] with [X] category wins\n\n--- (Message 1/4) ---\n```\n\n**Message 2: Performance Metrics Deep Dive**\n```\n⚡ **Performance Metrics Breakdown**\n\n**Site Comparison:**\n• **First Contentful Paint:** \n  - `Site1`: XXXXms | `Site2`: XXXXms\n  - Winner: [Site] (faster by XXXms)\n\n• **Largest Contentful Paint:**\n  - `Site1`: XXXXms | `Site2`: XXXXms  \n  - Winner: [Site] (faster by XXXms)\n\n[Continue for all metrics with clear formatting]\n\n--- (Message 2/4) ---\n```\n\n**Message 3: Key Insights & Winners**\n```\n🎯 **Key Performance Insights**\n\n**Biggest Improvements:**\n• [Metric]: Improved by [amount]\n• [Metric]: Improved by [amount]\n\n**Critical Issues Found:**\n• [Site]: [Issue description]\n• [Site]: [Issue description]\n\n--- (Message 3/4) ---\n```\n\n**Message 4: Actionable Recommendations**\n```\n🚀 **Action Plan**\n\n**For [Underperforming Site]:**\n• Fix: [Specific issue] - [Impact]\n• Optimize: [Specific area] - [Expected improvement]\n\n**For [Better Site]:**\n• Maintain: [What's working well]\n• Improve: [Areas for enhancement]\n\n**Both Sites:**\n• [Universal recommendations]\n\n--- (Message 4/4) ---\n```\n\n**REQUIREMENTS:**\n- Each message MUST be under 1800 characters\n- Use actual data from scoreDifferences and metricDifferences\n- Include specific millisecond improvements\n- Make URLs readable with `backticks`\n- Prioritize mobile-friendly formatting\n- End each message with the exact format: \"--- (Message X/Y) ---\""
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "9193bccf-37d2-4894-b61c-ab6e79ad0351",
      "name": "解析比较结果",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        416
      ],
      "parameters": {
        "jsCode": "// n8n Code Node - Split comparison messages that are already formatted\n// Place this node after AI Agent and before Discord Send Message\n\nconst input = $input.all();\nconst results = [];\n\nfor (const item of input) {\n  const fullText = item.json.text || item.json.output || '';\n  \n  if (!fullText) {\n    console.log('No text content found');\n    continue;\n  }\n  \n  // Split by the message delimiter pattern\n  const messagePattern = /--- \\(Message \\d+\\/\\d+\\) ---/;\n  const chunks = fullText.split(messagePattern);\n  \n  // Clean up chunks and filter out empty ones\n  const cleanChunks = chunks\n    .map(chunk => chunk.trim())\n    .filter(chunk => chunk.length > 0);\n  \n  // Create output for each chunk\n  cleanChunks.forEach((chunk, index) => {\n    results.push({\n      json: {\n        message: chunk,\n        messageNumber: index + 1,\n        totalMessages: cleanChunks.length,\n        originalLength: fullText.length,\n        chunkLength: chunk.length\n      }\n    });\n  });\n  \n  // If no message delimiters found, treat as single message\n  if (cleanChunks.length === 0 || cleanChunks.length === 1) {\n    // Check if message is too long for Discord (over 1900 chars)\n    if (fullText.length > 1900) {\n      // Split into smaller chunks\n      const smallChunks = splitLongMessage(fullText, 1800);\n      \n      smallChunks.forEach((chunk, index) => {\n        results.push({\n          json: {\n            message: chunk,\n            messageNumber: index + 1,\n            totalMessages: smallChunks.length,\n            originalLength: fullText.length,\n            chunkLength: chunk.length,\n            autoSplit: true\n          }\n        });\n      });\n    } else {\n      // Single message that fits Discord limits\n      results.push({\n        json: {\n          message: fullText,\n          messageNumber: 1,\n          totalMessages: 1,\n          originalLength: fullText.length,\n          chunkLength: fullText.length\n        }\n      });\n    }\n  }\n}\n\n// Function to split long messages at natural break points\nfunction splitLongMessage(text, maxLength) {\n  const chunks = [];\n  let currentChunk = '';\n  \n  // Split by paragraphs first (double newlines)\n  const paragraphs = text.split('\\n\\n');\n  \n  for (const paragraph of paragraphs) {\n    // If adding this paragraph would exceed limit\n    if ((currentChunk + '\\n\\n' + paragraph).length > maxLength) {\n      // Save current chunk if it has content\n      if (currentChunk.trim()) {\n        chunks.push(currentChunk.trim());\n        currentChunk = '';\n      }\n      \n      // If single paragraph is too long, split by sentences\n      if (paragraph.length > maxLength) {\n        const sentences = paragraph.split('. ');\n        \n        for (let i = 0; i < sentences.length; i++) {\n          const sentence = sentences[i] + (i < sentences.length - 1 ? '. ' : '');\n          \n          if ((currentChunk + sentence).length > maxLength) {\n            if (currentChunk.trim()) {\n              chunks.push(currentChunk.trim());\n              currentChunk = sentence;\n            } else {\n              // Force split if even single sentence is too long\n              chunks.push(sentence.substring(0, maxLength - 3) + '...');\n              currentChunk = '...' + sentence.substring(maxLength - 3);\n            }\n          } else {\n            currentChunk += sentence;\n          }\n        }\n      } else {\n        currentChunk = paragraph;\n      }\n    } else {\n      // Add paragraph to current chunk\n      if (currentChunk) {\n        currentChunk += '\\n\\n' + paragraph;\n      } else {\n        currentChunk = paragraph;\n      }\n    }\n  }\n  \n  // Add final chunk\n  if (currentChunk.trim()) {\n    chunks.push(currentChunk.trim());\n  }\n  \n  return chunks;\n}\n\nreturn results;"
      },
      "typeVersion": 2
    },
    {
      "id": "3080f3be-a15c-439c-ae0b-aacf3d3d2d65",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        768
      ],
      "parameters": {
        "width": 272,
        "height": 192,
        "content": "## 指南"
      },
      "typeVersion": 1
    },
    {
      "id": "1d063c68-b265-42ba-b313-3a44d1e9bd94",
      "name": "比较移动端性能",
      "type": "n8n-nodes-google-pagespeed.googlePageSpeed",
      "position": [
        672,
        416
      ],
      "parameters": {
        "url1": "={{ $json.url1 }}",
        "url2": "={{ $json.url2 }}",
        "operation": "compareUrls",
        "additionalFields": {}
      },
      "credentials": {
        "googlePageSpeedApi": {
          "id": "88sZZbmocLQRgVT4",
          "name": "Google PageSpeed account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a238e039-7768-4b5b-8dd7-63b48e8c7c7f",
      "name": "解析 URL",
      "type": "n8n-nodes-base.code",
      "position": [
        496,
        416
      ],
      "parameters": {
        "jsCode": "// n8n Code Node - Extract URLs for comparison\n// This version handles messages like \"compare, https://site1.com, https://site2.com\"\n\nconst input = $input.all();\nconst results = [];\n\n// URL regex pattern\nconst urlPattern = /https?:\\/\\/[^\\s,]+/g;\n\nfor (const item of input) {\n  const content = item.json.content || '';\n  \n  // Check if this is a comparison request\n  const isComparison = content.toLowerCase().includes('compare');\n  \n  // Extract URLs\n  const urls = content.match(urlPattern) || [];\n  \n  // Clean URLs\n  const cleanUrls = urls.map(url => url.replace(/[,.\\s]+$/, ''));\n  \n  if (cleanUrls.length > 0) {\n    if (isComparison && cleanUrls.length > 1) {\n      // For comparison, create one output with url1 and url2\n      results.push({\n        json: {\n          type: 'comparison',\n          url1: cleanUrls[0],\n          url2: cleanUrls[1] || null,\n          url3: cleanUrls[2] || null, // In case there are more than 2 URLs\n          urlCount: cleanUrls.length,\n          originalContent: content\n        }\n      });\n    } else {\n      // For single URL analysis, use url1\n      results.push({\n        json: {\n          type: 'single',\n          url1: cleanUrls[0],\n          url2: null,\n          urlCount: cleanUrls.length,\n          originalContent: content\n        }\n      });\n    }\n  }\n}\n\nreturn results;"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {
    "Parse Url": [
      {
        "json": {
          "type": "comparison",
          "url1": "https://pinecone.io/",
          "url2": "https://khmuhtadin.com/",
          "url3": null,
          "urlCount": 2,
          "originalContent": "compare, https://pinecone.io/, https://khmuhtadin.com/"
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "saveExecutionProgress": true,
    "saveDataErrorExecution": "all",
    "saveDataSuccessExecution": "all"
  },
  "versionId": "9843222e-8f1d-498e-91ee-4d705f44fb81",
  "connections": {
    "Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Compare Website",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Analyze Single url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Parse Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Parse Into Sections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Url": {
      "main": [
        [
          {
            "node": "Compare Mobile Performance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare Website": {
      "main": [
        [
          {
            "node": "Parse Comparison",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Comparison": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Single url": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Into Sections": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare Mobile Performance": {
      "main": [
        [
          {
            "node": "Compare Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 开发运维, AI 摘要总结

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流