{
  "name": "\u751f\u6210\u95ee\u9898\u53d8\u4f53",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "generate-questions",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-004",
      "name": "Webhook\u63a5\u6536",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1.1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": "deepseek-chat",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "\u4f60\u662f\u4e00\u4e2aSEO\u95ee\u9898\u53d8\u4f53\u751f\u6210\u4e13\u5bb6\u3002\u57fa\u4e8e\u7528\u6237\u67e5\u8be2\u751f\u6210\u591a\u79cd\u95ee\u9898\u53d8\u4f53\uff0c\u7528\u4e8e\u8986\u76d6\u66f4\u591a\u641c\u7d22\u610f\u56fe\u3002\n\n\u751f\u6210\u7b56\u7565\uff1a\n1. \u540c\u4e49\u8bcd\u66ff\u6362\n2. \u6539\u53d8\u63d0\u95ee\u65b9\u5f0f\uff08\u5982\u4f55/\u4ec0\u4e48\u662f/\u600e\u6837\uff09\n3. \u6dfb\u52a0\u9650\u5b9a\u8bcd\uff08\u6700\u597d\u7684/\u7b80\u5355\u7684/\u5feb\u901f\u7684\uff09\n4. \u957f\u5c3e\u6269\u5c55\n5. \u5730\u57df\u5316\u53d8\u4f53\n\n\u8fd4\u56deJSON\u683c\u5f0f\uff1a\n{\n  \"original\": \"\u539f\u95ee\u9898\",\n  \"variations\": [\n     {\"question\": \"\u53d8\u4f531\", \"type\": \"synonym\"},\n     {\"question\": \"\u53d8\u4f532\", \"type\": \"how-to\"},\n     {\"question\": \"\u53d8\u4f533\", \"type\": \"long-tail\"}\n  ],\n  \"total\": 10\n}"
            },
            {
              "role": "user",
              "value": "\u8bf7\u4e3a\u4ee5\u4e0b\u95ee\u9898\u751f\u6210\u53d8\u4f53\uff1a\n\u95ee\u9898\uff1a{{ $json.question }}\n\u76ee\u6807\u6570\u91cf\uff1a{{ $json.count || 10 }}\u4e2a"
            }
          ]
        },
        "options": {
          "temperature": 0.6
        }
      },
      "id": "ai-004",
      "name": "AI\u751f\u6210\u95ee\u9898\u53d8\u4f53",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1.3,
      "position": [
        460,
        300
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const response = items[0].json.message.content;\nconst parsed = JSON.parse(response);\n\n// \u53bb\u91cd\u5e76\u6392\u5e8f\nconst uniqueVariations = parsed.variations.filter((v, i, a) => \n  a.findIndex(t => t.question === v.question) === i\n);\n\nreturn [{\n  json: {\n    status: 'success',\n    data: {\n      original: parsed.original,\n      variations: uniqueVariations,\n      total: uniqueVariations.length\n    },\n    timestamp: new Date().toISOString()\n  }\n}];"
      },
      "id": "code-004",
      "name": "\u53bb\u91cd\u5e76\u7edf\u8ba1",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}"
      },
      "id": "resp-004",
      "name": "\u8fd4\u56de\u54cd\u5e94",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        900,
        300
      ]
    }
  ],
  "connections": {
    "Webhook\u63a5\u6536": {
      "main": [
        [
          {
            "node": "AI\u751f\u6210\u95ee\u9898\u53d8\u4f53",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI\u751f\u6210\u95ee\u9898\u53d8\u4f53": {
      "main": [
        [
          {
            "node": "\u53bb\u91cd\u5e76\u7edf\u8ba1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u53bb\u91cd\u5e76\u7edf\u8ba1": {
      "main": [
        [
          {
            "node": "\u8fd4\u56de\u54cd\u5e94",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 1,
  "updatedAt": "2025-01-22T00:00:00.000Z",
  "versionId": "1"
}