使用 RapidAPI SEO 分析器和 Google Docs 生成自动化 SEO 报告
中级
这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Code, GoogleDocs, FormTrigger, HttpRequest 等节点。 使用 RapidAPI SEO 分析器和 Google Docs 生成自动化 SEO 报告
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752"
},
"nodes": [
{
"id": "0cd19fc6-3a7e-4398-b180-eeb96eb7be32",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
0,
0
],
"webhookId": "e347d7e6-09ed-4011-9181-bcb27efade84",
"parameters": {
"options": {},
"formTitle": "Website Audit ",
"formFields": {
"values": [
{
"fieldLabel": "url",
"requiredField": true
}
]
},
"formDescription": "Website Audit "
},
"typeVersion": 2.2
},
{
"id": "1683a3a1-1680-496f-a184-0c4148753abc",
"name": "网站审计",
"type": "n8n-nodes-base.httpRequest",
"position": [
240,
0
],
"parameters": {
"url": "https://website-seo-analyzer-and-audit-ai.p.rapidapi.com/seo.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": "website-seo-analyzer-and-audit-ai.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "your key "
}
]
}
},
"typeVersion": 4.2
},
{
"id": "0c5903dd-af19-4223-bd64-33df65747bba",
"name": "重新格式化",
"type": "n8n-nodes-base.code",
"position": [
540,
0
],
"parameters": {
"jsCode": "const data = $input.first().json.data.apiData.results;\n\n// Basic metadata\nconst basic = data.basic;\nconst adv = data.advanced;\nconst perf = data.performance;\nconst sec = data.security;\n\nconst formatStatus = (status) => status === 'passed' ? '✅ Passed' : '❌ Failed';\n\n// Format keyword counts\nconst keywordStats = Object.entries(basic.keywords || {})\n .map(([word, count]) => `- **${word}**: ${count}`)\n .join('\\n');\n\nconst keywordsInTD = basic.keywordsInTitleDescription?.value || {};\nconst titleKeywords = Object.entries(keywordsInTD.title || {}).map(([k, v]) => `${k} (${v})`).join(', ');\nconst descKeywords = Object.entries(keywordsInTD.description || {}).map(([k, v]) => `${k} (${v})`).join(', ');\n\n// Format no alt images\nconst missingAltImgs = basic.noImgAltAtts?.value?.length || 0;\n\n// Format H1/H2 Tags\nconst h1Tags = basic.h1Tags?.value || [];\nconst h2Tags = basic.h2Tags?.value || [];\n\nconst formatted = `\n# 🔍 SEO Site Audit Summary\n\n## 📝 Page Metadata\n- **Title:** ${basic.title?.value || 'N/A'} (${basic.title?.length || 0} chars) — ${formatStatus(basic.title?.status)}\n- **Description:** ${basic.description?.value || 'N/A'} (${basic.description?.length || 0} chars) — ${formatStatus(basic.description?.status)}\n- **Title Keywords:** ${titleKeywords || 'None'}\n- **Description Keywords:** ${descKeywords || 'None'}\n\n## 🏷️ Keyword Density\n${keywordStats || 'No keywords found.'}\n\n## 🧱 Headers\n- **H1 Tags:** ${h1Tags.length > 0 ? h1Tags.join('; ') : '❌ None Found'}\n- **H2 Tags:** ${h2Tags.length > 0 ? h2Tags.join('; ') : '❌ None Found'}\n\n## 🖼️ Image Optimization\n- Missing \\`alt\\` tags: ${missingAltImgs} ${missingAltImgs > 0 ? '❌ Needs improvement' : '✅ All good'}\n\n## 🔗 Links Summary\n- Internal Links: ${basic.linksRatio?.value?.internal || 0}\n- External Links: ${basic.linksRatio?.value?.external || 0} — ${formatStatus(basic.linksRatio?.status)}\n\n## 📱 Search Preview\n${adv.searchPreview || 'N/A'}\n\n## 📦 Performance\n- JS Unminified: ${perf.unminifiedJs?.value?.length || 0} — ${formatStatus(perf.unminifiedJs?.status)}\n- CSS Unminified: ${perf.unminifiedCss?.value?.length || 0} — ${formatStatus(perf.unminifiedCss?.status)}\n- Total Page Objects: ${perf.pageObjects?.value?.total || 0} — ${formatStatus(perf.pageObjects?.status)}\n- Page Size: ${perf.pageSize?.value || 0} KB\n- Response Time: ${perf.responseTime?.value || 0} sec\n\n## 🛡️ Security\n- Secure Connection: ${formatStatus(sec.secureConnection?.status)}\n- Google Safe Browsing: ${formatStatus(sec.googleSafeBrowsing?.status)}\n- Directory Listing: ${formatStatus(sec.directoryListing?.status)}\n\n## 🧠 Structured Data\n- Open Graph Tags: ${adv.openGraph?.status === 'error' ? `❌ Missing: ${adv.openGraph?.value?.join(', ')}` : '✅ Present'}\n- Schema.org Markup: ${formatStatus(adv.schema?.status)}\n\n---\n`;\n\nreturn [\n {\n json: {\n docContent: formatted.trim()\n }\n }\n];\n"
},
"typeVersion": 2
},
{
"id": "17a12918-acce-46c2-9c54-05baa4a0f50d",
"name": "在Google文档中添加数据",
"type": "n8n-nodes-base.googleDocs",
"position": [
800,
0
],
"parameters": {
"actionsUi": {
"actionFields": [
{
"text": "={{ $json.docContent }}",
"action": "insert"
}
]
},
"operation": "update",
"documentURL": "",
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "Rt0RWApx8PL9t0RF",
"name": "Google Docs account"
}
},
"typeVersion": 2
},
{
"id": "21db8a8f-d651-4c2b-9884-dfdf29099cd7",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-700,
-380
],
"parameters": {
"width": 540,
"height": 720,
"content": "### 🧾 自动化网站SEO审计和Google文档报告"
},
"typeVersion": 1
},
{
"id": "f6e2c21f-1c6a-4e03-9f9d-838ccb417dbe",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-220
],
"parameters": {
"height": 340,
"content": "🟢 **表单提交时**"
},
"typeVersion": 1
},
{
"id": "6a153f89-ba90-4330-852f-1bfe023539c2",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
200,
-220
],
"parameters": {
"height": 340,
"content": "🌐 **网站审计**"
},
"typeVersion": 1
},
{
"id": "ea5d183b-03cf-4f7b-9e88-bdecc6506084",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
460,
-220
],
"parameters": {
"height": 340,
"content": "🧠 **重新格式化**"
},
"typeVersion": 1
},
{
"id": "d306ad26-fe30-4c40-bf9a-bb4403366b91",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
720,
-220
],
"parameters": {
"height": 340,
"content": "📄 **在Google文档中添加数据**"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Reformat": {
"main": [
[
{
"node": "Add Data In Google Docs",
"type": "main",
"index": 0
}
]
]
},
"Website Audit": {
"main": [
[
{
"node": "Reformat",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Website Audit",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 摘要总结, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用落地页分析器AI分析网页并生成Google Docs报告
使用落地页分析器AI分析网页并生成Google Docs报告
Code
Google Docs
Form Trigger
+2
9 节点Evoort Solutions
AI 摘要总结
使用RapidAPI提取YouTube频道元数据到Google Docs
使用RapidAPI提取YouTube频道元数据到Google Docs
Code
Google Docs
Form Trigger
+2
9 节点Evoort Solutions
市场调研
使用RapidAPI提取YouTube视频元数据并保存到Google Docs
使用RapidAPI提取YouTube视频元数据并保存到Google Docs
Code
Google Docs
Form Trigger
+2
9 节点Evoort Solutions
杂项
使用 GST Insights API 和 Google Docs 生成自动化 GST 报告
使用 GST Insights API 和 Google Docs 生成自动化 GST 报告
Code
Google Docs
Form Trigger
+2
9 节点Evoort Solutions
文档提取
使用RapidAPI和Google Sheets报告分析竞争对手关键词
使用RapidAPI和Google Sheets报告分析竞争对手关键词
Code
Form Trigger
Http Request
+2
9 节点Evoort Solutions
市场调研
自动化页面SEO分析与记录,使用RapidAPI和Google表格
自动化页面SEO分析与记录,使用RapidAPI和Google表格
Set
Code
Form Trigger
+3
33 节点Evoort Solutions
市场调研