8
n8n 中文网amn8n.com

使用落地页分析器AI分析网页并生成Google Docs报告

中级

这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Code, GoogleDocs, FormTrigger, HttpRequest 等节点。 使用落地页分析器AI分析网页并生成Google Docs报告

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "6171e049-fc10-40eb-953d-854e1a456b14",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -20,
        0
      ],
      "webhookId": "745745f2-2193-438a-9a28-86f5efd964d1",
      "parameters": {
        "options": {},
        "formTitle": "Webpage Analyzer ",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Webpage Analyzer"
      },
      "typeVersion": 2.2
    },
    {
      "id": "e2c73dbf-208b-4975-9435-f100e80e10e1",
      "name": "网页分析器",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        0
      ],
      "parameters": {
        "url": "https://landing-page-analyzer-ai.p.rapidapi.com/analyse.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.url }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "landing-page-analyzer-ai.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "8505b630-0f5d-47a6-ba30-61bb2a038d9b",
      "name": "重新格式化",
      "type": "n8n-nodes-base.code",
      "position": [
        500,
        0
      ],
      "parameters": {
        "jsCode": "// Assume input is in items[0].json$input.first().json.grade\nconst feedback = $input.first().json;\n\nfunction formatSuggestions(suggestions) {\n  return suggestions.map((s, index) => {\n    return `### ${index + 1}. ${s.category.toUpperCase()}\n- **Issue**: ${s.whatIsTheIssue}\n- **Why it Matters**: ${s.whyItMatters}\n- **How to Fix**: ${s.howToFix}\n- **Priority**: ${s.priority.toUpperCase()}\\n`;\n  }).join('\\n');\n}\n\nfunction formatStrengths(strengths) {\n  return strengths.map(s => `- ${s}`).join('\\n');\n}\n\nfunction formatScores(scores) {\n  return Object.entries(scores)\n    .map(([k, v]) => `- **${k}**: ${v}`)\n    .join('\\n');\n}\n\nconst docText = `\n# Conversion Audit Report\n\n**Grade:** ${feedback.grade}  \n**Overall Score:** ${feedback.score}/100\n\n---\n\n## Suggestions for Improvement\n\n${formatSuggestions(feedback.suggestions)}\n\n---\n\n## Strengths\n\n${formatStrengths(feedback.strengths)}\n\n---\n\n## Conversion Score Breakdown\n\n${formatScores(feedback.conversionScore)}\n`;\n\nreturn [\n  {\n    json: {\n      docText\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "57ea065e-e5ad-446e-a96d-2d2ee5b9aeff",
      "name": "上传到 Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        760,
        0
      ],
      "parameters": {
        "actionsUi": {
          "actionFields": [
            {
              "text": "={{ $json.docText }}",
              "action": "insert"
            }
          ]
        },
        "operation": "update",
        "documentURL": "",
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "3f3db297-9053-4c05-bf0d-3b922d2e65a3",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -360
      ],
      "parameters": {
        "width": 760,
        "height": 880,
        "content": "# 🚀 自动化网页分析器与 Google Docs 报告生成器"
      },
      "typeVersion": 1
    },
    {
      "id": "db423981-23ea-49e3-b70d-71d97f4aeab9",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -140
      ],
      "parameters": {
        "height": 280,
        "content": "**表单提交时**"
      },
      "typeVersion": 1
    },
    {
      "id": "c1885eb1-2dee-42ec-b31d-8f39aa2f789f",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -140
      ],
      "parameters": {
        "height": 280,
        "content": "**网页分析器(API 调用)**"
      },
      "typeVersion": 1
    },
    {
      "id": "ee953e2b-70a7-422c-b528-7bcdbb6ccd1f",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -140
      ],
      "parameters": {
        "height": 280,
        "content": "**重新格式化(代码节点)**"
      },
      "typeVersion": 1
    },
    {
      "id": "86453a67-6bb8-4dc6-91e7-1a7de238fdeb",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -140
      ],
      "parameters": {
        "height": 280,
        "content": "**上传到 Google Docs**"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Reformat": {
      "main": [
        [
          {
            "node": "Upload In Google Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WebPage Analyzer ": {
      "main": [
        [
          {
            "node": "Reformat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "WebPage Analyzer ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - AI 摘要总结, 多模态 AI

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流