{
  "name": "Audience problem keyword research workflow with OpenAI, Ahrefs and Google Sheets",
  "nodes": [
    {
      "id": "4acb69fe-8ac9-4b24-9f45-a5ad8ab5ca19",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -48,
        0
      ]
    },
    {
      "id": "d6cf369d-37cf-4e5a-b518-54bb1517d693",
      "name": "Data",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        0
      ]
    },
    {
      "id": "491a9c60-95ae-4448-8d46-0ae34c8dcf5d",
      "name": "SEO Seed Keywords",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        400,
        0
      ]
    },
    {
      "id": "3eeff8fd-9c13-45ea-8d49-eff7557352fc",
      "name": "AEO Questions",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        400,
        288
      ]
    },
    {
      "id": "cc157702-6c5d-44de-a685-a0f15b547b4f",
      "name": "Add keyword",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1408,
        0
      ]
    },
    {
      "id": "2aed19ed-e868-4d3e-b507-6b364e4fe258",
      "name": "Add keywords",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2688,
        208
      ]
    },
    {
      "id": "ff8aae43-e5d5-4569-a3e0-8c79cb168919",
      "name": "Parse MCP Keywords JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        1920,
        0
      ]
    },
    {
      "id": "9446c8c2-834b-46b0-af10-527f8dd6929a",
      "name": "Loop Over AI Keywords",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1120,
        0
      ]
    },
    {
      "id": "62114aa9-c062-451d-b757-7b3af04b11dd",
      "name": "Related Keyword Generator",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        1664,
        0
      ]
    },
    {
      "id": "6dfbea3b-6f8c-4889-b455-9ff106870d6f",
      "name": "Loop Over SEO Return Values",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2192,
        0
      ]
    },
    {
      "id": "7ef6f3a6-4659-4538-a223-3d600f3e2555",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2400,
        16
      ]
    },
    {
      "id": "e7ef3174-8d5f-4dfb-bedf-cb07412da781",
      "name": "Parse Keyword JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        0
      ]
    },
    {
      "id": "f2a802f8-00d7-46c5-b273-04a1147ae6f7",
      "name": "Parse Question JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        288
      ]
    },
    {
      "id": "2f16fbaf-1bb2-40de-ab86-9a7b7644668a",
      "name": "Loop Over AI Questions",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1120,
        288
      ]
    },
    {
      "id": "3c3b6190-6ba7-4adf-bd3b-989242ba9d16",
      "name": "Add AI question",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1408,
        288
      ]
    },
    {
      "id": "1da1245c-1a6d-4920-9535-f03a8b5fa309",
      "name": "Add SEO research question",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2688,
        0
      ]
    },
    {
      "id": "3d938281-0ed9-4e31-a93c-92ae9349a1dd",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -224
      ],
      "parameters": {
        "width": 460,
        "height": 816,
        "content": "## Audience Problem Keyword Research Workflow\n### This n8n template generates relevant keywords and questions from a a customer profile. Keyword data is enriched from ahref and everything is stored in"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Add SEO research question",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data": {
      "main": [
        [
          {
            "node": "AEO Questions",
            "type": "main",
            "index": 0
          },
          {
            "node": "SEO Seed Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add keyword": {
      "main": [
        [
          {
            "node": "Related Keyword Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add keywords": {
      "main": [
        [
          {
            "node": "Loop Over SEO Return Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AEO Questions": {
      "main": [
        [
          {
            "node": "Parse Question JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add AI question": {
      "main": [
        [
          {
            "node": "Loop Over AI Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SEO Seed Keywords": {
      "main": [
        [
          {
            "node": "Parse Keyword JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Keyword JSON": {
      "main": [
        [
          {
            "node": "Loop Over AI Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Question JSON": {
      "main": [
        [
          {
            "node": "Loop Over AI Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over AI Keywords": {
      "main": [
        [],
        [
          {
            "node": "Add keyword",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over AI Questions": {
      "main": [
        [],
        [
          {
            "node": "Add AI question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse MCP Keywords JSON": {
      "main": [
        [
          {
            "node": "Loop Over SEO Return Values",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over AI Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add SEO research question": {
      "main": [
        [
          {
            "node": "Loop Over SEO Return Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Related Keyword Generator": {
      "main": [
        [
          {
            "node": "Parse MCP Keywords JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over SEO Return Values": {
      "main": [
        [
          {
            "node": "Loop Over AI Keywords",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}