{
  "name": "Generate SEO content outlines from SERP analysis with OpenAI and Google Docs",
  "nodes": [
    {
      "id": "1e66a65c-e05b-4386-a573-88e7a5ec762e",
      "name": "SEO Keyword Input Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -624,
        256
      ]
    },
    {
      "id": "c9be0d8f-d286-43dd-bdd7-cb5496ade6cb",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -400,
        160
      ]
    },
    {
      "id": "17df7ac1-c3d4-482b-b2b2-27d45b1540de",
      "name": "Google Search SERP",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -176,
        160
      ]
    },
    {
      "id": "ee58af1c-0777-4cc9-b6f3-7f5c51bfa30c",
      "name": "Filter Non-Article URLs",
      "type": "n8n-nodes-base.filter",
      "position": [
        48,
        160
      ]
    },
    {
      "id": "e50d7940-c0f9-41a2-9dab-a3fb2611ba78",
      "name": "Scrape Article Headings",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        272,
        160
      ]
    },
    {
      "id": "cca493d5-1456-447d-b757-2eaf702ab4e0",
      "name": "Aggregate Competitor Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        496,
        160
      ]
    },
    {
      "id": "e9ec34d4-ff71-4c10-8be8-401592788e11",
      "name": "AI Content Structure Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        720,
        160
      ]
    },
    {
      "id": "244d7c4a-e22b-4e6e-bfd4-1b6266dd56d2",
      "name": "Create Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1072,
        160
      ]
    },
    {
      "id": "292c38c9-85bd-4bda-9857-0116e9e774d8",
      "name": "Store Form Responses",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -400,
        352
      ]
    },
    {
      "id": "4103f32c-5831-4d05-8186-5d39df2db84f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        32
      ],
      "parameters": {
        "width": 480,
        "height": 416,
        "content": "## Overview\nDrastically reduce the time spent on SEO research and content briefing. This workflow analyzes the current top-ranking pages for a specific keyword and uses AI to generate a comprehensive "
      }
    },
    {
      "id": "e7638d33-47f7-4b40-93a5-eb427e6dd5b4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        160
      ],
      "parameters": {
        "width": 224,
        "height": 256,
        "content": "1.  **Input:** Takes a target keyword and target audience via a built-in **n8n Form**."
      }
    },
    {
      "id": "dbb5b76e-85bf-456b-95f7-71bd30f2da46",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        64
      ],
      "parameters": {
        "width": 224,
        "height": 256,
        "content": "2.  **SERP Analysis:** Uses **Apify** (Google Search Scraper) to find the top 10 results for that keyword."
      }
    },
    {
      "id": "43441013-a562-4d05-9489-c155b61cc0fe",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 192,
        "height": 320,
        "content": "3.  **Filtering:** Automatically removes non-article URLs (like Amazon product pages, YouTube videos, and PDFs) to focus on content competitors."
      }
    },
    {
      "id": "1001119c-9283-44fc-8d35-66bc39d8bd68",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        0
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "4.  **Deep Scraping:** Visits each competitor's URL to extract their article structure (Title, Description, H1-H3 tags) using **Apify** (Cheerio Scraper)."
      }
    },
    {
      "id": "7a89c544-e53d-431f-a231-38df3620f7a3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        64
      ],
      "parameters": {
        "width": 512,
        "height": 288,
        "content": "5.  **AI Generation:** Aggregates the research data and sends it to **OpenAI**, which generates an optimized article outline."
      }
    },
    {
      "id": "84cd0f11-4732-492d-83f7-a18598e94c2e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        0
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "6.  **Output:**\n    - Creates a new **Google Doc** with the generated outline.\n    - Logs the request in **Google Sheets** for tracking."
      }
    }
  ],
  "connections": {
    "Google Search SERP": {
      "main": [
        [
          {
            "node": "Filter Non-Article URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SEO Keyword Input Form": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store Form Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Google Search SERP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Non-Article URLs": {
      "main": [
        [
          {
            "node": "Scrape Article Headings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Article Headings": {
      "main": [
        [
          {
            "node": "Aggregate Competitor Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Competitor Data": {
      "main": [
        [
          {
            "node": "AI Content Structure Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Content Structure Analysis": {
      "main": [
        [
          {
            "node": "Create Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}