{
  "name": "Analyze website SEO and log AI recommendations to Google Sheets with OpenAI",
  "nodes": [
    {
      "id": "6ba384d0-5cbb-4ca7-b274-50e38c5d49f6",
      "name": "Webhook Trigger - Input URL",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1312,
        -3440
      ]
    },
    {
      "id": "c8bfdc37-a14e-49d0-a48f-29fabda05da8",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1088,
        -3440
      ]
    },
    {
      "id": "f56134d4-0b9c-48c5-aa7d-6a1127ddeaec",
      "name": "Fetch Website HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        -3440
      ]
    },
    {
      "id": "f9e4cdd0-8eba-4135-9969-235a903e8c75",
      "name": "Extract SEO Elements",
      "type": "n8n-nodes-base.html",
      "position": [
        -640,
        -3440
      ]
    },
    {
      "id": "8d082f5e-cc4c-4257-8727-1237914e9c3f",
      "name": "AI SEO Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -400,
        -3440
      ]
    },
    {
      "id": "e9379220-8819-47c2-aed9-600b3c0f71ab",
      "name": "Format AI Output",
      "type": "n8n-nodes-base.set",
      "position": [
        -64,
        -3440
      ]
    },
    {
      "id": "217dd9a1-a3a2-4f38-b49c-f6f848753980",
      "name": "Route by SEO Score",
      "type": "n8n-nodes-base.switch",
      "position": [
        160,
        -3456
      ]
    },
    {
      "id": "6cdfca25-ad04-4ca5-8570-7d667ea3de31",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        384,
        -3632
      ]
    },
    {
      "id": "107f4f86-c47b-4e10-9b81-375a0d0f86a4",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        384,
        -3440
      ]
    },
    {
      "id": "a294c668-90e2-4c24-b09f-aed1a03735bd",
      "name": "Send Email Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        384,
        -3248
      ]
    },
    {
      "id": "d5866573-81d7-4fb9-800d-fc066c496654",
      "name": "Final Report Storage",
      "type": "n8n-nodes-base.set",
      "position": [
        608,
        -3440
      ]
    },
    {
      "id": "3f3ac293-98b6-44dc-9790-cee2eb99ef65",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -3744
      ],
      "parameters": {
        "width": 464,
        "height": 544,
        "content": "## Webhook & Config"
      }
    },
    {
      "id": "9192c316-6894-4e4a-9d57-e1c6c9d8b66a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -3744
      ],
      "parameters": {
        "width": 464,
        "height": 544,
        "content": "## Website Data"
      }
    },
    {
      "id": "3126949b-3258-4f27-8219-b69dc0351a55",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -3744
      ],
      "parameters": {
        "width": 464,
        "height": 544,
        "content": "## SEO Analysis"
      }
    },
    {
      "id": "6ab8a006-c262-4c51-8b4c-cf3f77aba544",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -3792
      ],
      "parameters": {
        "width": 640,
        "height": 736,
        "content": "## Log & Notify"
      }
    },
    {
      "id": "cb183d2a-5d18-4214-9bab-385e26168479",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -3792
      ],
      "parameters": {
        "width": 304,
        "height": 656,
        "content": "## Main\nThis workflow automatically analyzes any website for SEO performance using AI and provides actionable suggestions.\nIt fetches the website content, extracts key elements, and uses OpenAI to ide"
      }
    }
  ],
  "connections": {
    "AI SEO Analysis": {
      "main": [
        [
          {
            "node": "Format AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format AI Output": {
      "main": [
        [
          {
            "node": "Route by SEO Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack Alert": {
      "main": [
        [
          {
            "node": "Final Report Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email Report": {
      "main": [
        [
          {
            "node": "Final Report Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Website HTML": {
      "main": [
        [
          {
            "node": "Extract SEO Elements",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by SEO Score": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Email Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract SEO Elements": {
      "main": [
        [
          {
            "node": "AI SEO Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Final Report Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Website HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger - Input URL": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}