{
  "name": "Analyze brand visibility in AI SERPs with SE Ranking and OpenAI GPT-4.1 mini",
  "nodes": [
    {
      "id": "895358ea-48f0-427a-994f-3edc9dc1ea11",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -960,
        32
      ]
    },
    {
      "id": "483ba8b7-e005-44f1-8518-7da182f445aa",
      "name": "Set the Input Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -736,
        32
      ]
    },
    {
      "id": "719e0593-3724-40c8-be91-f41e1aa53e92",
      "name": "Write File to Disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        544,
        160
      ]
    },
    {
      "id": "92f5e132-aef9-4ee6-8260-5b0e8ead3c09",
      "name": "Create a Binary Data",
      "type": "n8n-nodes-base.function",
      "position": [
        320,
        160
      ]
    },
    {
      "id": "48e30203-969f-4e0a-9a65-a72da9eb7e7e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        -176
      ],
      "parameters": {
        "width": 576,
        "height": 736,
        "content": "## Custom Data Extraction\n\nExtracts brand prompts, answers, and supporting reference links. Normalizes raw API responses into structured, usable data. Combines extracted prompts, answers, and links in"
      }
    },
    {
      "id": "bf8550e8-7696-4452-abd7-ade4a3f3ba67",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -176
      ],
      "parameters": {
        "width": 576,
        "height": 736,
        "content": "## Export Data Handling\n\nConverts the final dataset into structured JSON output. Stores results for brand research, content strategy, or automation."
      }
    },
    {
      "id": "902893f3-c4bb-428e-b316-3684aaf04ace",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        -176
      ],
      "parameters": {
        "width": 464,
        "height": 736,
        "content": "## AI Search with SE Ranking by Brand\n\nRetrieves real AI search prompts and answers related to a specific brand. Provides authentic brand-level search intelligence from AI-driven SERPs."
      }
    },
    {
      "id": "cd0848e1-9440-47d8-944b-33d67c67c2f8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -192
      ],
      "parameters": {
        "width": 496,
        "height": 752,
        "content": "## **How It Works**\n\nThis workflow analyzes real AI search prompts associated with a specific brand using SE Ranking. It starts with a manual trigger where brand name, AI search engine, region, sortin"
      }
    },
    {
      "id": "b29ace75-4b53-4edf-bcfb-664c41895fb7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -448
      ],
      "parameters": {
        "width": 496,
        "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": "e533bd48-c24e-4467-993d-6112e5b6a82b",
      "name": "Extract All Links",
      "type": "n8n-nodes-base.code",
      "position": [
        -224,
        0
      ]
    },
    {
      "id": "cec3ee7c-16f2-4eae-a14f-e91e29dca4b9",
      "name": "Extract Prompts with Answers",
      "type": "n8n-nodes-base.code",
      "position": [
        -224,
        192
      ]
    },
    {
      "id": "ceb38a90-52a3-46f1-8268-1feb0a9eb329",
      "name": "Extract JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        -224,
        400
      ]
    },
    {
      "id": "52e48cc2-dbd4-464a-a665-98acc660f4f8",
      "name": "SE Ranking AI Request by Brand",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -512,
        32
      ]
    },
    {
      "id": "20d98b5d-9228-40b9-a735-d2527b2fcf71",
      "name": "Merge Responses",
      "type": "n8n-nodes-base.merge",
      "position": [
        48,
        144
      ]
    }
  ],
  "connections": {
    "Extract JSON": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Merge Responses": {
      "main": [
        [
          {
            "node": "Create a Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract All Links": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "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 AI Request by Brand",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Prompts with Answers": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "SE Ranking AI Request by Brand": {
      "main": [
        [
          {
            "node": "Extract All Links",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Prompts with Answers",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set the Input Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}