8
n8n 中文网amn8n.com

使用 Google 自动建议生成关键词

中级

这是一个Marketing领域的自动化工作流,包含 9 个节点。主要使用 Set, Xml, Webhook, SplitOut, Aggregate 等节点。 使用 Google 自动建议生成关键词

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "8eadf351d49a11e77d3a57adf374670f06c5294af8b1b7c86a1123340397e728"
  },
  "nodes": [
    {
      "id": "551a3a1f-07ad-48aa-bc9a-18f39c883929",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        940,
        180
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "toplevel.CompleteSuggestion"
      },
      "typeVersion": 1
    },
    {
      "id": "f451dc0d-a78d-4ba6-adcf-c1180502a904",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1260,
        180
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "Keywords"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ccad69b0-7f88-490e-bfbd-50ef702f48ce",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        350.13991769547397,
        134.716049382716
      ],
      "parameters": {
        "color": 4,
        "width": 1323.884773662551,
        "height": 224.79012345679018,
        "content": "* 为您的 SEO 生成关键词"
      },
      "typeVersion": 1
    },
    {
      "id": "9ed26e36-e05a-416e-a517-3f5d07718256",
      "name": "接收关键词",
      "type": "n8n-nodes-base.webhook",
      "position": [
        400,
        180
      ],
      "webhookId": "76a63718-b3cb-4141-bc55-efa614d13f1d",
      "parameters": {
        "path": "76a63718-b3cb-4141-bc55-efa614d13f1d",
        "options": {},
        "responseMode": "lastNode"
      },
      "typeVersion": 1.1
    },
    {
      "id": "51aa0811-7f31-4476-9460-4eacad81e469",
      "name": "自动生成关键词",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        180
      ],
      "parameters": {
        "url": "=https://google.com/complete/search?output=toolbar&gl=US&q={{ $json.query.q }}",
        "options": {}
      },
      "typeVersion": 4.1
    },
    {
      "id": "f3bd360c-bf72-4e5f-92ec-ca08c8e4daed",
      "name": "格式化关键词",
      "type": "n8n-nodes-base.xml",
      "position": [
        760,
        180
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "17bef508-47e1-482b-8dc1-aeb1f6faca63",
      "name": "清理关键词",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        180
      ],
      "parameters": {
        "options": {
          "ignoreConversionErrors": true
        },
        "assignments": {
          "assignments": [
            {
              "id": "fb95058f-0c20-4249-8a45-7b935fde1874",
              "name": "Keywords",
              "type": "array",
              "value": "={{ $json.suggestion.data }}"
            }
          ]
        }
      },
      "typeVersion": 3.3
    },
    {
      "id": "81e3ced0-d3b7-4019-a6a7-5e940ad33df1",
      "name": "返回关键词",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1440,
        180
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1
    },
    {
      "id": "fafc57a6-64e1-4463-bbf0-c9dccd880345",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        380
      ],
      "parameters": {
        "width": 767.7695473251028,
        "content": "* 如果您使用这个,只需复制此 webhook URL http://localhost:5678/webhook/76a63718-b3cb-4141-bc55-efa614d13f1d?q=keyword%20research"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "return Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Clean Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Keywords": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Keywords": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Keyword": {
      "main": [
        [
          {
            "node": "Autogenerate Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Autogenerate Keywords": {
      "main": [
        [
          {
            "node": "Format Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 营销

需要付费吗?

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

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

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

作者
Imperol

Imperol

@imperolq

Automation expert with years of experience helping businesses improve their efficiency and productivity with smart automations that are affordable, scalable, and flexible.

外部链接
在 n8n.io 查看

分享此工作流