通过 Decodo + Google Sheets + OpenAI GPT-4.1-mini 进行 SEO 竞争对手关键词跟踪
中级
这是一个Market Research, AI Summarization领域的自动化工作流,包含 11 个节点。主要使用 Set, Code, GoogleSheets, ManualTrigger, Decodo 等节点。 使用 Decodo、GPT-4.1-mini 和 Google Sheets 跟踪竞争对手 SEO 关键词
前置要求
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "kdSLYBTklfxlAMSS",
"meta": {
"instanceId": "885b4fb4a6a9c2cb5621429a7b972df0d05bb724c20ac7dac7171b62f1c7ef40",
"templateCredsSetupCompleted": true
},
"name": "通过 Decodo + Google Sheets + OpenAI GPT-4.1-mini 进行 SEO 竞争对手关键词跟踪",
"tags": [
{
"id": "Kujft2FOjmOVQAmJ",
"name": "Engineering",
"createdAt": "2025-04-09T01:31:00.558Z",
"updatedAt": "2025-04-09T01:31:00.558Z"
},
{
"id": "ZOwtAMLepQaGW76t",
"name": "Building Blocks",
"createdAt": "2025-04-13T15:23:40.462Z",
"updatedAt": "2025-04-13T15:23:40.462Z"
},
{
"id": "ddPkw7Hg5dZhQu2w",
"name": "AI",
"createdAt": "2025-04-13T05:38:08.053Z",
"updatedAt": "2025-04-13T05:38:08.053Z"
}
],
"nodes": [
{
"id": "ac0b8094-56aa-4b48-bf48-9e8f1456c2f5",
"name": "Google Sheets 追加行",
"type": "n8n-nodes-base.googleSheets",
"position": [
848,
-272
],
"parameters": {
"options": {},
"dataMode": "autoMapInputData",
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1v4vjL5K1tMDUyswcFaLPA1vraViwnPSbqxkVeld9Dk0/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1v4vjL5K1tMDUyswcFaLPA1vraViwnPSbqxkVeld9Dk0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1v4vjL5K1tMDUyswcFaLPA1vraViwnPSbqxkVeld9Dk0/edit?usp=drivesdk",
"cachedResultName": "SEO Competitor Keyword Tracker via Decodo"
},
"columnToMatchOn": "keyword_density_summary"
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "Zjoxh2BUZ6VXGQhA",
"name": "Google Sheets account"
}
},
"typeVersion": 3
},
{
"id": "badc8b6c-e8fe-4342-8f05-a42c6c10e1f8",
"name": "当点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-496,
-272
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3dde33f7-77ae-45d3-85c3-3c7267c4d9ad",
"name": "Decodo",
"type": "@decodo/n8n-nodes-decodo.decodo",
"position": [
-48,
-272
],
"parameters": {
"geo": "={{ $json.geo }}",
"url": "={{ $json.url }}"
},
"credentials": {
"decodoApi": {
"id": "7xLvINFuwxDiyBde",
"name": "Decodo Credentials account"
}
},
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "79541046-7915-4985-9fe7-4ac7663ed7fb",
"name": "设置输入字段",
"type": "n8n-nodes-base.set",
"position": [
-272,
-272
],
"parameters": {
"values": {
"string": [
{
"name": "url",
"value": "https://dev.to"
},
{
"name": "geo",
"value": "france"
}
]
},
"options": {
"dotNotation": false
}
},
"typeVersion": 1
},
{
"id": "8f75d611-9e19-4b77-ae87-70981e542ed2",
"name": "分析关键词",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
288,
-272
],
"parameters": {
"text": "=You are an SEO analyzer. Analyze the following webpage content and return a concise JSON output.\n\nWeb page content:\n\n{{ $json.data.results[0].content }}\n\nOutput JSON:\n{\n \"primary_keywords\": [ \"list of top 10 focus keywords\" ],\n \"secondary_keywords\": [ \"list of supporting keywords and synonyms\" ],\n \"keyword_density_summary\": \"summary of keyword usage and density trends\",\n \"focus_topics\": [ \"main content themes or topic clusters\" ],\n \"semantic_entities\": [ \"notable named entities or concepts detected\" ],\n \"seo_strength_score\": 0-100,\n \"readability_score\": 0-100,\n \"content_type\": \"e.g., blog article, landing page, product page\",\n \"target_audience\": \"intended audience segment inferred from content\",\n \"content_tone\": \"tone style such as informative, persuasive, technical\",\n \"optimization_recommendations\": [\n \"specific and actionable SEO improvement suggestions\"\n ],\n \"keyword_opportunity_gaps\": [\n \"topics or keywords competitors target but are missing here\"\n ],\n \"internal_link_suggestions\": [\n \"suggested anchor text or internal link topics to boost SEO\"\n ],\n \"metadata_insights\": {\n \"title_tag_length\": \"characters count and optimization status\",\n \"meta_description_length\": \"characters count and optimization status\",\n \"h1_presence\": true,\n \"image_alt_tags\": \"status summary of alt tag usage\"\n },\n \"content_summary\": \"short plain-language summary of the webpage\",\n \"sentiment\": \"overall sentiment of the content (positive/neutral/negative)\",\n \"language_detected\": \"ISO language code or detected language name\",\n \"last_analyzed\": \"timestamp of when analysis was performed\"\n}\n",
"batching": {},
"promptType": "define"
},
"retryOnFail": true,
"typeVersion": 1.7,
"alwaysOutputData": true
},
{
"id": "22558b6c-c600-4fc6-9680-07272c3da1b4",
"name": "用于关键词分析的 OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
368,
-48
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "vPKynKbDzJ5ZU4cU",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "0300b558-8e4b-476f-a386-fcd7693cee42",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-496,
-576
],
"parameters": {
"color": 7,
"width": 384,
"height": 272,
"content": ""
},
"typeVersion": 1
},
{
"id": "00428ffe-a747-4a23-9a2a-65ece9b98c17",
"name": "提取结构化 JSON",
"type": "n8n-nodes-base.code",
"position": [
624,
-272
],
"parameters": {
"jsCode": "let text = $input.first().json.text;\nconst output = [];\n\n// Remove ```json ... ``` or ``` ... ``` wrappers\ntext = text\n .replace(/```json\\s*/gi, '')\n .replace(/```/g, '')\n .trim();\n\n// Parse the cleaned JSON text\nconst parsed = JSON.parse(text);\noutput.push({ json: parsed });\n\nreturn output;"
},
"typeVersion": 2
},
{
"id": "f8185be1-060e-47b4-8ab7-6dd312121c4e",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-496,
-96
],
"parameters": {
"width": 704,
"height": 640,
"content": "**目的:**"
},
"typeVersion": 1
},
{
"id": "7ab1d533-a5a7-47a8-81e3-106a0bce85db",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
224,
-400
],
"parameters": {
"color": 4,
"width": 560,
"height": 496,
"content": "## 结构化数据提取器"
},
"typeVersion": 1
},
{
"id": "b8f6a584-5ae0-4954-8bc7-e95f576809cd",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
-400
],
"parameters": {
"color": 3,
"width": 272,
"height": 320,
"content": "## 导出数据处理"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "fbea6b00-a703-494b-bc91-302df44718b8",
"connections": {
"Decodo": {
"main": [
[
{
"node": "Analyze Keywords",
"type": "main",
"index": 0
}
]
]
},
"Analyze Keywords": {
"main": [
[
{
"node": "Extract Structured JSON",
"type": "main",
"index": 0
}
]
]
},
"Set the Input Fields": {
"main": [
[
{
"node": "Decodo",
"type": "main",
"index": 0
}
]
]
},
"Extract Structured JSON": {
"main": [
[
{
"node": "Google Sheets Append Row",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Set the Input Fields",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model for Keyword Analysis": {
"ai_languageModel": [
[
{
"node": "Analyze Keywords",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 市场调研, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
竞争对手情报代理:SERP监控+Thordata+OpenAI的摘要洞察
竞争对手情报代理:SERP 监控 + Thordata + OpenAI 摘要洞察
Set
Merge
Google Sheets
+8
23 节点Ranjan Dailata
市场调研
使用Google Gemini和Decode总结提取Glassdoor公司信息
使用Google Gemini和Decode总结提取Glassdoor公司信息
Set
Code
Merge
+9
15 节点Ranjan Dailata
市场调研
使用Decodo和GPT-4o-mini进行LinkedIn人才情报与数据挖掘
利用LinkedIn、Decodo和GPT-4o-mini提取并分析人才情报与数据挖掘
Set
Code
Merge
+9
19 节点Ranjan Dailata
人力资源
将微信文章分类和总结到 Google Sheets 和 Notion
使用 GPT-4 Nano 将微信文章分类和总结到 Google Sheets 和 Notion
If
Set
Code
+9
26 节点Seven Liu
市场调研
使用Bright Data和Google Gemini的Google Maps企业抓取和线索丰富
使用Bright Data和Google Gemini的Google Maps企业抓取和线索丰富工具
Set
Code
Wait
+11
29 节点Ranjan Dailata
潜在客户开发
通过 Decodo + Google Gemini 实现自动化 LinkedIn 人才分析与摘要
使用 Decodo、Gemini 和 Google Sheets 自动化 LinkedIn 人才画像与摘要
Set
Code
Merge
+6
13 节点Ranjan Dailata
工作流信息
难度等级
中级
节点数量11
分类2
节点类型8
作者
Ranjan Dailata
@ranjancseA Professional based out of India specialized in handling AI-powered automations. Contact me at ranjancse@gmail.com
外部链接
在 n8n.io 查看 →
分享此工作流