{
  "name": "Generate AI website legal and accessibility compliance reports with OpenAI, Gmail and Google Drive",
  "nodes": [
    {
      "id": "b6309f75-16ff-4027-930a-e245d4527ae2",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1152,
        384
      ]
    },
    {
      "id": "3d5000e0-da5e-42e8-a1dd-4ca2b8c8a905",
      "name": "Fetch Website HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        384
      ]
    },
    {
      "id": "eadbf52b-6d3b-47e4-8c84-8a3d2f570384",
      "name": "Extract & Clean HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        1536,
        384
      ]
    },
    {
      "id": "f8ec7ef2-e95c-462e-8217-33e5eeb4eb57",
      "name": "Analyze Compliance",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1808,
        384
      ]
    },
    {
      "id": "a3af2653-c410-4c0f-a85a-41f1ef810835",
      "name": "Parse Compliance Results",
      "type": "n8n-nodes-base.code",
      "position": [
        2128,
        384
      ]
    },
    {
      "id": "87d9dbb6-b104-4756-bed8-41d079c62191",
      "name": "Generate HTML Report",
      "type": "n8n-nodes-base.code",
      "position": [
        2384,
        384
      ]
    },
    {
      "id": "4375bd77-ac97-4359-b4cb-9fea217a8df4",
      "name": "HTML to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        2592,
        384
      ]
    },
    {
      "id": "8e1b7609-23c3-4ab1-b4b4-b911e2296cc2",
      "name": "Send Compliance Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2864,
        272
      ]
    },
    {
      "id": "ada15969-b785-4e39-a1a4-c91fd8565afc",
      "name": "Save to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2864,
        448
      ]
    },
    {
      "id": "35be5b7b-75ae-4cae-8cd7-bf684c64fb9b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        -16
      ],
      "parameters": {
        "width": 432,
        "height": 544,
        "content": "### How it works\nThis workflow automatically audits websites for legal compliance. It receives a website URL via webhook, fetches and cleans the HTML content, uses OpenAI to analyze compliance across "
      }
    },
    {
      "id": "4c257a6e-1878-4a82-9f0e-9860674e4105",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        272
      ],
      "parameters": {
        "width": 640,
        "height": 240,
        "content": "## Input & Website Scan\nWebhook receives website URL, company name, and email. Fetches HTML content and cleans it for AI analysis."
      }
    },
    {
      "id": "1c9e88a6-29ca-4f09-9977-91f786757d23",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2336,
        272
      ],
      "parameters": {
        "width": 432,
        "height": 272,
        "content": "## Report Generation\nBuilds professional HTML compliance report with scores and recommendations, then converts to downloadable PDF."
      }
    },
    {
      "id": "e0d8d4b6-0d69-4d38-a24a-c2eb81210917",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        272
      ],
      "parameters": {
        "width": 544,
        "height": 288,
        "content": "## AI Compliance Analysis\nOpenAI checks privacy policy, cookies, terms, SSL, accessibility, and contact info. Generates scores and identifies critical issues."
      }
    },
    {
      "id": "d3798123-f4ec-4d2e-b04c-10f566419ce6",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2784,
        160
      ],
      "parameters": {
        "width": 336,
        "height": 448,
        "content": "## Delivery & Storage\nEmails PDF report to user and saves copy to Google Drive for auditing and legal review purposes."
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Fetch Website HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML to PDF": {
      "main": [
        [
          {
            "node": "Save to Google Drive",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Compliance Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Compliance": {
      "main": [
        [
          {
            "node": "Parse Compliance Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Website HTML": {
      "main": [
        [
          {
            "node": "Extract & Clean HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract & Clean HTML": {
      "main": [
        [
          {
            "node": "Analyze Compliance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate HTML Report": {
      "main": [
        [
          {
            "node": "HTML to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Drive": {
      "main": [
        []
      ]
    },
    "Send Compliance Report": {
      "main": [
        []
      ]
    },
    "Parse Compliance Results": {
      "main": [
        [
          {
            "node": "Generate HTML Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}