{
  "name": "Generate AI search–driven FAQ insights for SEO with SE Ranking and OpenAI GPT-4.1-mini",
  "nodes": [
    {
      "id": "4f0e636b-6759-47a6-ada9-296b6bdc63dd",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -528
      ],
      "parameters": {
        "width": 224,
        "height": 240,
        "content": "![Logo](https://media.licdn.com/dms/image/v2/D4D0BAQHBbVpuDD3toA/company-logo_200_200/company-logo_200_200/0/1725976307233/se_ranking_logo?e=1768435200&v=beta&t=_HSGZks62sL6rTXwuo0U21QCKBCNzVT_8OkeIPU"
      }
    },
    {
      "id": "b4df3733-6588-4ff3-8dd3-cd98991e7dfb",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -800,
        32
      ]
    },
    {
      "id": "0f69e60f-14db-4434-a228-1a671a3f53c5",
      "name": "Set the Input Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -576,
        32
      ]
    },
    {
      "id": "92d39b7c-dcc7-436e-a9af-0ca05e65e1a8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -256
      ],
      "parameters": {
        "width": 464,
        "height": 768,
        "content": "## SE Ranking Prompts by Target\n\nFetches real AI search prompts and answers for the selected domain and region. Serves as the primary source for user-intent and FAQ discovery."
      }
    },
    {
      "id": "5b3360c8-1002-42ed-ba0f-099a6fa03bf9",
      "name": "SE Ranking Prompts by Target",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        32
      ]
    },
    {
      "id": "5e59e544-6872-4e8d-8061-56ba41c4d066",
      "name": "Extract All Links",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        48
      ]
    },
    {
      "id": "3fb3b324-b151-40af-8d43-1d040756f74c",
      "name": "Extract QnA",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        208
      ]
    },
    {
      "id": "8f3fb79e-5d1c-4484-894a-3866c0fe4d50",
      "name": "AI QnA Zeroshot Classifier",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        432,
        -112
      ]
    },
    {
      "id": "58022954-4b52-479d-ac5c-71edde422a06",
      "name": "Extract Questions Only",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        -112
      ]
    },
    {
      "id": "558be66b-ea89-4de3-a810-e155cdcef98b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -256
      ],
      "parameters": {
        "width": 464,
        "height": 768,
        "content": "## Custom Data Extraction\n\nExtracts questions, answers, and reference links from SE Ranking results. Structures raw API data into usable Q&A formats.\n"
      }
    },
    {
      "id": "ab37ff70-64bf-4faa-a2d4-9a5ea74e3ee1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -256
      ],
      "parameters": {
        "width": 784,
        "height": 768,
        "content": "## Data Enrichment\n\nApplies AI-based zero-shot classification to each question. Adds intent categories and confidence scores for smarter analysis. Aggregates and formats all enriched data into structu"
      }
    },
    {
      "id": "5fa4ce9b-fb17-42eb-a6d3-dba7e5f80bc9",
      "name": "Extract Prompts",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        368
      ]
    },
    {
      "id": "9032bb3e-ebd7-40f8-a0a7-05b6425a58c0",
      "name": "Final Data Aggregation",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        992,
        64
      ]
    },
    {
      "id": "abcde815-bc69-42a8-8a8f-02a1c5a3b2b9",
      "name": "Custom Data Aggregation",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        656,
        288
      ]
    },
    {
      "id": "ef422c3c-15af-4e98-842d-104587cf76ca",
      "name": "Perform Custom Data Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        432,
        256
      ]
    },
    {
      "id": "ae5ee163-1c36-4c2b-a4ff-7b4808a175bc",
      "name": "OpenAI Chat Model for Zeroshot Classifier",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        432,
        80
      ]
    },
    {
      "id": "007847c7-3aa5-45dd-a2da-a400eeb74899",
      "name": "Write File to Disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1488,
        64
      ]
    },
    {
      "id": "6d09c20b-7e7c-4e37-b125-e2f12a040347",
      "name": "Create a Binary Data",
      "type": "n8n-nodes-base.function",
      "position": [
        1264,
        64
      ]
    },
    {
      "id": "ee88415c-2d9f-4446-96b1-4a3b6c3b3b60",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        -256
      ],
      "parameters": {
        "width": 576,
        "height": 768,
        "content": "## Export Data Handling\n\nConverts enriched results into structured JSON output. Stores the final data for reporting and downstream automation."
      }
    },
    {
      "id": "9becea00-ad72-4210-8da0-698d79ed6ffc",
      "name": "Merge Enriched Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        800,
        64
      ]
    },
    {
      "id": "254ecefc-102a-4a58-a7e5-7b683ec7a9c8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -256
      ],
      "parameters": {
        "width": 496,
        "height": 768,
        "content": "## **How It Works**\n\nThis workflow automatically generates structured FAQs from AI search prompts using SE Ranking and OpenAI. It begins with a manual trigger where parameters such as target domain, s"
      }
    }
  ],
  "connections": {
    "Extract QnA": {
      "main": [
        [
          {
            "node": "Perform Custom Data Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Extract Prompts": {
      "main": [
        [
          {
            "node": "Perform Custom Data Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Extract All Links": {
      "main": [
        [
          {
            "node": "Perform Custom Data Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Enriched Data": {
      "main": [
        [
          {
            "node": "Final Data Aggregation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a Binary Data": {
      "main": [
        [
          {
            "node": "Write File to Disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the Input Fields": {
      "main": [
        [
          {
            "node": "SE Ranking Prompts by Target",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Questions Only": {
      "main": [
        [
          {
            "node": "AI QnA Zeroshot Classifier",
            "type": "main",
            "index": 0
          },
          {
            "node": "Perform Custom Data Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Final Data Aggregation": {
      "main": [
        [
          {
            "node": "Create a Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Custom Data Aggregation": {
      "main": [
        [
          {
            "node": "Merge Enriched Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Perform Custom Data Merge": {
      "main": [
        [
          {
            "node": "Custom Data Aggregation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI QnA Zeroshot Classifier": {
      "main": [
        [
          {
            "node": "Merge Enriched Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SE Ranking Prompts by Target": {
      "main": [
        [
          {
            "node": "Extract All Links",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract QnA",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Questions Only",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set the Input Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model for Zeroshot Classifier": {
      "ai_languageModel": [
        [
          {
            "node": "AI QnA Zeroshot Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}