{
  "id": "54OVTndBAXYC7oYN",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Generate AI-powered SEO audit reports from company websites",
  "tags": [],
  "nodes": [
    {
      "id": "d888a560-a921-429e-bf5c-a9847bb6232a",
      "name": "Webhook1",
      "type": "n8n-nodes-base.webhook",
      "position": [
        176,
        480
      ],
      "parameters": {
        "path": "27ea5610-f693-4370-a0c9-8ceb5253a49d",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "b9833d4f-8abc-4b29-97aa-a029f948b770",
      "name": "Website SEO Data1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2352,
        480
      ],
      "parameters": {
        "url": "https://api.dataforseo.com/v3/on_page/pages",
        "method": "POST",
        "options": {
          "response": {}
        },
        "jsonBody": "=[\n  {\n    \"id\": \"{{ $('Crawler Request').item.json.tasks[0].id }}\"\n  }\n]",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth"
      },
      "credentials": {
        "httpBasicAuth": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "b99c165f-52b7-448a-8018-543fa70bb88e",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        208,
        864
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "output_data"
      },
      "typeVersion": 1
    },
    {
      "id": "bec2d16f-69b5-47c3-8dfa-6c89f97ba20e",
      "name": "Wait5",
      "type": "n8n-nodes-base.wait",
      "position": [
        2128,
        480
      ],
      "parameters": {
        "unit": "minutes",
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "63c48515-e38a-4fdb-a694-d734ca34bff2",
      "name": "PDF_First_Page",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        864
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "81b40e60-af6a-4aaa-8993-01744c398bba",
              "name": "PDF_First_Page",
              "type": "string",
              "value": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Website Audit Report - Professional</title>\n    <style>\n        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');\n        \n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n        \n        body {\n            font-family: 'Inter', sans-serif;\n            line-height: 1.6;\n            color: #ffffff;\n            background: #0f1419;\n        }\n        \n        .page {\n            width: 8.5in;\n            height: 11in;\n            margin: 0 auto;\n            background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);\n            position: relative;\n            overflow: hidden;\n        }\n        \n        /* Background Pattern */\n        .bg-pattern {\n            position: absolute;\n            top: 0;\n            left: 0;\n            right: 0;\n            bottom: 0;\n            background-image: \n                linear-gradient(rgba(217, 119, 6, 0.03) 1px, transparent 1px),\n                linear-gradient(90deg, rgba(217, 119, 6, 0.03) 1px, transparent 1px);\n            background-size: 40px 40px;\n            opacity: 0.5;\n        }\n        \n        /* Cover Page Layout */\n        .cover-page {\n            height: 100%;\n            position: relative;\n            display: flex;\n            flex-direction: column;\n            padding: 40px 50px;\n            z-index: 1;\n        }\n        \n        /* Header Section */\n        .header-section {\n            display: flex;\n            justify-content: space-between;\n            align-items: flex-start;\n            margin-bottom: 50px;\n            width: 100%;\n        }\n        \n        .logo-container {\n            display: flex;\n            flex-direction: column;\n        }\n        \n        .logo-image {\n            width: 280px;\n            height: auto;\n            max-height: 70px;\n            object-fit: contain;\n            margin-bottom: 12px;\n        }\n        \n        .contact-info {\n            font-size: 12px;\n            color: #94a3b8;\n            line-height: 1.5;\n            font-weight: 400;\n        }\n        \n        .contact-info a {\n            color: #d97706;\n            text-decoration: none;\n        }\n        \n        .report-badge {\n            background: rgba(30, 41, 59, 0.8);\n            border: 1px solid #475569;\n            border-radius: 8px;\n            padding: 10px 20px;\n            font-size: 12px;\n            font-weight: 600;\n            color: #f1f5f9;\n            text-transform: uppercase;\n            letter-spacing: 1px;\n            backdrop-filter: blur(10px);\n        }\n        \n        /* Main Content Area */\n        .main-content-area {\n            flex: 1;\n            display: flex;\n            gap: 60px;\n            align-items: center;\n            width: 100%;\n        }\n        \n        .content-left {\n            flex: 1;\n            max-width: 450px;\n        }\n        \n        .tagline {\n            font-size: 12px;\n            color: #22c55e;\n            font-weight: 600;\n            text-transform: uppercase;\n            letter-spacing: 1.5px;\n            margin-bottom: 16px;\n        }\n        \n        .main-headline {\n            font-size: 56px;\n            font-weight: 800;\n            line-height: 0.95;\n            margin-bottom: 8px;\n            color: #ffffff;\n        }\n        \n        .headline-accent {\n            color: #22c55e;\n            position: relative;\n        }\n        \n        .headline-accent::after {\n            content: '';\n            position: absolute;\n            bottom: -4px;\n            left: 0;\n            width: 100%;\n            height: 4px;\n            background: linear-gradient(90deg, #22c55e, #16a34a);\n            border-radius: 2px;\n        }\n        \n        .audit-subtitle {\n            font-size: 56px;\n            font-weight: 800;\n            line-height: 0.95;\n            margin-bottom: 24px;\n            color: #ffffff;\n        }\n        \n        .description {\n            font-size: 16px;\n            color: #cbd5e1;\n            line-height: 1.6;\n            margin-bottom: 32px;\n            max-width: 420px;\n        }\n        \n        .stats-row {\n            display: flex;\n            gap: 24px;\n            margin-bottom: 20px;\n        }\n        \n        .stat-item {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            background: rgba(30, 41, 59, 0.3);\n            border: 1px solid #475569;\n            border-radius: 8px;\n            padding: 12px 16px;\n            backdrop-filter: blur(10px);\n        }\n        \n        .stat-number {\n            font-size: 20px;\n            font-weight: 700;\n            color: #22c55e;\n            margin-bottom: 2px;\n        }\n        \n        .stat-label {\n            font-size: 11px;\n            color: #94a3b8;\n            text-transform: uppercase;\n            letter-spacing: 0.5px;\n        }\n        \n        /* Right Side - Clean Organized System */\n        .content-right {\n            flex: 1;\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            height: 380px;\n        }\n        \n        .system-container {\n            width: 360px;\n            height: 360px;\n            position: relative;\n            background: rgba(30, 41, 59, 0.4);\n            border: 1px solid rgba(75, 85, 99, 0.3);\n            border-radius: 16px;\n            backdrop-filter: blur(10px);\n            display: grid;\n            grid-template-columns: 1fr 1fr;\n            grid-template-rows: 1fr 1fr;\n            gap: 20px;\n            padding: 20px;\n        }\n        \n        /* Central Core - Overlaid */\n        .system-core {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            width: 140px;\n            height: 140px;\n            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);\n            border-radius: 16px;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            color: white;\n            box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);\n            border: 2px solid rgba(255, 255, 255, 0.1);\n            z-index: 20;\n        }\n        \n        .core-title {\n            font-size: 12px;\n            font-weight: 600;\n            opacity: 0.9;\n            margin-bottom: 4px;\n            letter-spacing: 1px;\n        }\n        \n        .core-subtitle {\n            font-size: 16px;\n            font-weight: 800;\n            letter-spacing: 0.5px;\n        }\n        \n        /* System Elements - Grid Based */\n        .system-element {\n            position: relative;\n            width: 100%;\n            height: 100%;\n            border-radius: 12px;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            color: white;\n            font-weight: 600;\n            text-align: center;\n            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n            backdrop-filter: blur(10px);\n            border: 1px solid rgba(255, 255, 255, 0.1);\n        }\n        \n        /* Grid Positions */\n        .analytics-element {\n            grid-column: 1;\n            grid-row: 1;\n            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);\n        }\n        \n        .automation-element {\n            grid-column: 2;\n            grid-row: 1;\n            background: linear-gradient(135deg, #059669 0%, #10b981 100%);\n        }\n        \n        .strategy-element {\n            grid-column: 1;\n            grid-row: 2;\n            background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);\n        }\n        \n        .optimization-element {\n            grid-column: 2;\n            grid-row: 2;\n            background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);\n        }\n        \n        .element-title {\n            font-size: 10px;\n            font-weight: 500;\n            opacity: 0.8;\n            margin-bottom: 6px;\n            letter-spacing: 0.5px;\n            text-transform: uppercase;\n        }\n        \n        .element-value {\n            font-size: 13px;\n            font-weight: 700;\n            margin-bottom: 3px;\n        }\n        \n        .element-metric {\n            font-size: 9px;\n            font-weight: 600;\n            color: rgba(255, 255, 255, 0.8);\n        }\n        \n        /* Clean Connection Lines */\n        .connection-line {\n            position: absolute;\n            background: linear-gradient(45deg, #f59e0b 0%, #d97706 100%);\n            height: 2px;\n            border-radius: 1px;\n            box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);\n            z-index: 15;\n        }\n        \n        /* Simplified Lines - From center to elements */\n        .line-top-left {\n            width: 50px;\n            top: 140px;\n            left: 110px;\n            transform: rotate(45deg);\n        }\n        \n        .line-top-right {\n            width: 50px;\n            top: 140px;\n            right: 110px;\n            transform: rotate(-45deg);\n        }\n        \n        .line-bottom-left {\n            width: 50px;\n            bottom: 140px;\n            left: 110px;\n            transform: rotate(-45deg);\n        }\n        \n        .line-bottom-right {\n            width: 50px;\n            bottom: 140px;\n            right: 110px;\n            transform: rotate(45deg);\n        }\n        \n        /* Organized Performance Metrics */\n        .floating-metric {\n            position: absolute;\n            background: rgba(15, 23, 42, 0.95);\n            border: 1px solid #f59e0b;\n            border-radius: 8px;\n            padding: 4px 8px;\n            font-size: 8px;\n            font-weight: 700;\n            color: #f59e0b;\n            backdrop-filter: blur(10px);\n            z-index: 25;\n        }\n        \n        /* Corner Positioning for Metrics */\n        .metric-1 { \n            top: 15px; \n            left: 15px; \n        }\n        .metric-2 { \n            top: 15px; \n            right: 15px; \n        }\n        .metric-3 { \n            bottom: 15px; \n            left: 15px; \n        }\n        .metric-4 { \n            bottom: 15px; \n            right: 15px; \n        }\n        \n        /* Clean Grid Background */\n        .grid-background {\n            position: absolute;\n            top: 0;\n            left: 0;\n            right: 0;\n            bottom: 0;\n            background-image: \n                linear-gradient(rgba(75, 85, 99, 0.05) 1px, transparent 1px),\n                linear-gradient(90deg, rgba(75, 85, 99, 0.05) 1px, transparent 1px);\n            background-size: 18px 18px;\n            border-radius: 16px;\n            opacity: 0.6;\n        }\n        \n        /* Subtle Center Glow */\n        .ambient-glow {\n            position: absolute;\n            width: 100px;\n            height: 100px;\n            background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);\n            border-radius: 50%;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            z-index: 1;\n        }\n        \n        /* Minimal Glass Effect */\n        .glass-overlay {\n            position: absolute;\n            top: 0;\n            left: 0;\n            right: 0;\n            height: 30%;\n            background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);\n            border-radius: 16px 16px 0 0;\n            pointer-events: none;\n        }\n        \n        /* Client Information */\n        .client-section {\n            margin-top: auto;\n            background: rgba(30, 41, 59, 0.8);\n            backdrop-filter: blur(15px);\n            border: 1px solid #475569;\n            border-radius: 16px;\n            padding: 24px;\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n        }\n        \n        .client-info {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            flex: 1;\n        }\n        \n        .client-label {\n            font-size: 11px;\n            color: #94a3b8;\n            text-transform: uppercase;\n            letter-spacing: 1px;\n            margin-bottom: 6px;\n            font-weight: 500;\n        }\n        \n        .client-name {\n            font-size: 20px;\n            font-weight: 700;\n            color: #ffffff;\n        }\n        \n        .divider {\n            width: 1px;\n            height: 40px;\n            background: #475569;\n            margin: 0 24px;\n        }\n        \n        .report-info {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n        }\n        \n        .report-date {\n            font-size: 14px;\n            font-weight: 600;\n            color: #d97706;\n        }\n        \n        /* Subtle Glow Effect */\n        .glow-effect {\n            position: absolute;\n            width: 200px;\n            height: 200px;\n            background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, transparent 70%);\n            border-radius: 50%;\n            top: 40%;\n            right: 30%;\n            z-index: 0;\n        }\n        \n        @media print {\n            .page {\n                margin: 0;\n                box-shadow: none;\n            }\n            \n            .cover-page {\n                page-break-after: always;\n            }\n        }\n    </style>\n</head>\n<body>\n    <div class=\"page\">\n        <div class=\"cover-page\">\n            <!-- Background Elements -->\n            <div class=\"bg-pattern\"></div>\n            <div class=\"glow-effect\"></div>\n            \n            <!-- Header Section -->\n            <div class=\"header-section\">\n                <div class=\"logo-container\">\n                    <div style=\"font-size: 32px; font-weight: 800; color: #22c55e; margin-bottom: 12px;\">MindsightAI</div>\n                </div>\n                <div class=\"report-badge\">Website Performance Audit</div>\n            </div>\n            \n            <!-- Main Content -->\n            <div class=\"main-content-area\">\n                <div class=\"content-left\">\n                    <div class=\"tagline\">AI-Powered Automation</div>\n                    <h1 class=\"main-headline\">We like to</h1>\n                    <h2 class=\"audit-subtitle\"><span class=\"headline-accent\">Automate.</span></h2>\n                    <p class=\"description\">\n                        Transform uncertainty into predictable results with our AI-driven conversion system that combines strategic marketing expertise with cutting-edge automation.\n                    </p>\n                    \n                    <div class=\"stats-row\">\n                        <div class=\"stat-item\">\n                            <div class=\"stat-number\">247%</div>\n                            <div class=\"stat-label\">Avg Growth</div>\n                        </div>\n                        <div class=\"stat-item\">\n                            <div class=\"stat-number\">24/7</div>\n                            <div class=\"stat-label\">AI Monitor</div>\n                        </div>\n                        <div class=\"stat-item\">\n                            <div class=\"stat-number\">99%</div>\n                            <div class=\"stat-label\">Accuracy</div>\n                        </div>\n                    </div>\n                </div>\n                \n                <!-- Premium System Visualization -->\n                <div class=\"content-right\">\n                    <div class=\"system-container\">\n                        <!-- Background Elements -->\n                        <div class=\"grid-background\"></div>\n                        <div class=\"ambient-glow\"></div>\n                        <div class=\"glass-overlay\"></div>\n                        \n                        <!-- Central Core -->\n                        <div class=\"system-core\">\n                            <div class=\"core-title\">CONVERSION</div>\n                            <div class=\"core-subtitle\">SYSTEM</div>\n                        </div>\n                        \n                        <!-- System Elements -->\n                        <div class=\"system-element analytics-element\">\n                            <div class=\"element-title\">Analytics</div>\n                            <div class=\"element-value\">4.8x ROI</div>\n                            <div class=\"element-metric\">+156%</div>\n                        </div>\n                        \n                        <div class=\"system-element automation-element\">\n                            <div class=\"element-title\">AI Auto</div>\n                            <div class=\"element-value\">24/7 Active</div>\n                        </div>\n                        \n                        <div class=\"system-element strategy-element\">\n                            <div class=\"element-title\">Strategy</div>\n                            <div class=\"element-value\">Data-Driven</div>\n                        </div>\n                        \n                        <div class=\"system-element optimization-element\">\n                            <div class=\"element-title\">Optimize</div>\n                            <div class=\"element-value\">Real-Time</div>\n                        </div>\n                        \n                        <!-- Connection Lines -->\n                        <div class=\"connection-line line-top-left\"></div>\n                        <div class=\"connection-line line-top-right\"></div>\n                        <div class=\"connection-line"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3527dfcf-12c3-4ec1-8b19-d0a947ca91d3",
      "name": "PDF_Last_Page1",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        864
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "81b40e60-af6a-4aaa-8993-01744c398bba",
              "name": "PDF_Last_Page",
              "type": "string",
              "value": "=<!-- LAST PAGE -->\n<div class=\"page\" style=\"background:#00243d;\">          <!-- hero-navy fills the ENTIRE sheet -->\n    <div class=\"cover-page\"\n         style=\"height:100%;display:flex;flex-direction:column;\n                align-items:center;justify-content:center;padding:40px 60px;\n                text-align:center;color:#ffffff;\">      <!-- force all text white -->\n\n        <div class=\"bg-pattern\"></div>\n\n        <!-- Logo -->\n        <div style=\"font-size:48px;font-weight:800;color:#22c55e;margin-bottom:60px;\">MindsightAI</div>\n\n        <!-- Headline -->\n        <h1 style=\"font-size:64px;font-weight:800;line-height:1;margin-bottom:24px;color:#ffffff;\">\n            We&nbsp;like&nbsp;to\n            <span style=\"color:#22c55e;\n                         text-decoration:underline;\n                         text-decoration-thickness:6px;\n                         text-underline-offset:10px;\">\n                Automate.\n            </span>\n        </h1>\n\n        <!-- Sub-headline -->\n        <p style=\"font-size:24px;font-weight:500;color:#cbd5e1;\n                  max-width:640px;margin:0 auto 28px;\">\n            Let\u2019s architect a revenue engine built for <strong>predictable</strong> scale.\n        </p>\n\n        <!-- Supporting copy -->\n        <p style=\"font-size:18px;color:#cbd5e1;\n                  max-width:600px;margin:0 auto 48px;\">\n            Book a complimentary strategy call\u2014no fluff, just a clear roadmap tailored to your goals.\n        </p>\n\n        <!-- CTA Button -->\n        <a href=\"https://mindsightai.agency\"\n           style=\"display:inline-block;padding:22px 54px;\n                  font-size:22px;font-weight:700;color:#1a2332;\n                  background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%);\n                  border-radius:50px;text-decoration:none;\n                  box-shadow:0 8px 25px rgba(34,197,94,0.4);\">\n            \ud83d\udc49 Visit MindsightAI\n        </a>\n\n        <!-- Note under CTA -->\n        <p style=\"font-size:14px;color:#94a3b8;margin-top:22px;\">\n            Limited spots released each week\u2014secure yours before they\u2019re gone.\n        </p>\n\n        <!-- Decorative glow -->\n        <div class=\"glow-effect\"></div>\n    </div>\n</div>\n"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "a2077305-4b00-4ab9-a2a7-317776b8781b",
      "name": "PDFco Api",
      "type": "n8n-nodes-pdfco.PDFco Api",
      "position": [
        1488,
        864
      ],
      "parameters": {
        "html": "={{ $json.output.content }}",
        "operation": "URL/HTML to PDF",
        "convertType": "htmlToPDF",
        "advancedOptions": {
          "name": "={{ $('SET_USER_INPUT').item.json.Compnay_Name }}"
        }
      },
      "credentials": {
        "pdfcoApi": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 3000
    },
    {
      "id": "8102a468-e9bf-4995-b81c-697cb49990e8",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1280,
        1024
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"report_type\": {\n      \"type\": \"string\",\n      \"enum\": [\"Website Audit\"]\n    },\n    \"format\": {\n      \"type\": \"string\",\n      \"enum\": [\"HTML\"]\n    },\n    \"content\": {\n      \"type\": \"string\",\n      \"pattern\": \"^<!DOCTYPE html>\"\n    }\n  },\n  \"required\": [\"report_type\", \"format\", \"content\"]\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "9f0c3f1e-b44a-4e5d-89f4-49023a26fb93",
      "name": "Get_Pdf_File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        864
      ],
      "parameters": {
        "url": "={{ $json.url }}",
        "options": {}
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "918027c7-a566-424b-85a0-ee4e5178a3f1",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1936,
        864
      ],
      "parameters": {
        "sendTo": "={{ $('SET_USER_INPUT').item.json.Email }}",
        "message": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Website Audit Report</title>\n    <style>\n        * {\n            box-sizing: border-box;\n        }\n        \n        body {\n            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n            line-height: 1.6;\n            margin: 0;\n            padding: 20px;\n            background: var(--bg-gradient);\n            min-height: 100vh;\n            transition: all 0.3s ease;\n        }\n        \n        /* Light mode variables */\n        :root {\n            --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);\n            --container-bg: #ffffff;\n            --header-bg: linear-gradient(135deg, #334155 0%, #1e293b 100%);\n            --header-text: #ffffff;\n            --text-primary: #1e293b;\n            --text-secondary: #475569;\n            --text-muted: #64748b;\n            --border-color: #e2e8f0;\n            --card-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);\n            --accent-color: #22c55e;\n            --accent-hover: #16a34a;\n            --shadow-light: rgba(0, 0, 0, 0.1);\n            --shadow-medium: rgba(0, 0, 0, 0.05);\n            --footer-bg: #1e293b;\n            --footer-text: #94a3b8;\n        }\n        \n        /* Dark mode variables */\n        @media (prefers-color-scheme: dark) {\n            :root {\n                --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);\n                --container-bg: #1e293b;\n                --header-bg: linear-gradient(135deg, #0f172a 0%, #020617 100%);\n                --header-text: #f1f5f9;\n                --text-primary: #f1f5f9;\n                --text-secondary: #cbd5e1;\n                --text-muted: #94a3b8;\n                --border-color: #334155;\n                --card-bg: linear-gradient(135deg, #334155 0%, #475569 100%);\n                --accent-color: #22c55e;\n                --accent-hover: #16a34a;\n                --shadow-light: rgba(0, 0, 0, 0.3);\n                --shadow-medium: rgba(0, 0, 0, 0.2);\n                --footer-bg: #0f172a;\n                --footer-text: #64748b;\n            }\n        }\n        \n        .email-container {\n            max-width: 600px;\n            margin: 0 auto;\n            background: var(--container-bg);\n            border-radius: 20px;\n            box-shadow: 0 20px 60px var(--shadow-light);\n            overflow: hidden;\n            position: relative;\n            transition: all 0.3s ease;\n        }\n        \n        .header {\n            background: var(--header-bg);\n            color: var(--header-text);\n            padding: 50px 40px;\n            text-align: center;\n            position: relative;\n            overflow: hidden;\n        }\n        \n        .header::before {\n            content: '';\n            position: absolute;\n            top: -50%;\n            left: -50%;\n            width: 200%;\n            height: 200%;\n            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);\n            animation: rotate 30s linear infinite;\n        }\n        \n        @keyframes rotate {\n            0% { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n        }\n        \n        .header-content {\n            position: relative;\n            z-index: 2;\n        }\n        \n        .logo {\n            display: inline-flex;\n            align-items: center;\n            gap: 15px;\n            margin-bottom: 30px;\n            font-size: 16px;\n            font-weight: 700;\n            color: var(--header-text);\n            background: rgba(255, 255, 255, 0.1);\n            padding: 12px 24px;\n            border-radius: 50px;\n            backdrop-filter: blur(10px);\n            border: 1px solid rgba(255, 255, 255, 0.2);\n        }\n        \n        .logo-icon {\n            width: 32px;\n            height: 32px;\n            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);\n            border-radius: 8px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            font-size: 16px;\n            box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);\n        }\n        \n        .header h1 {\n            margin: 0;\n            font-size: 32px;\n            font-weight: 800;\n            letter-spacing: -1px;\n            line-height: 1.2;\n            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);\n            color: var(--header-text);\n        }\n        \n        .header .subtitle {\n            margin: 15px 0 0 0;\n            opacity: 0.9;\n            font-size: 16px;\n            font-weight: 300;\n            color: var(--header-text);\n        }\n        \n        .content {\n            padding: 50px 40px;\n            background: var(--container-bg);\n        }\n        \n        .greeting {\n            font-size: 22px;\n            margin-bottom: 30px;\n            color: var(--text-primary);\n            font-weight: 600;\n        }\n        \n        .main-message {\n            background: var(--card-bg);\n            border: 2px solid var(--border-color);\n            padding: 40px;\n            margin: 30px 0;\n            border-radius: 16px;\n            position: relative;\n            box-shadow: 0 10px 25px var(--shadow-medium);\n        }\n        \n        .main-message::before {\n            content: '';\n            position: absolute;\n            left: 0;\n            top: 0;\n            bottom: 0;\n            width: 5px;\n            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);\n            border-radius: 3px;\n        }\n        \n        .main-message h2 {\n            color: var(--text-primary);\n            margin-top: 0;\n            font-size: 24px;\n            font-weight: 700;\n            margin-bottom: 20px;\n            display: flex;\n            align-items: center;\n            gap: 12px;\n        }\n        \n        .main-message h2::before {\n            content: '\ud83d\udcca';\n            font-size: 28px;\n        }\n        \n        .main-message p {\n            margin-bottom: 25px;\n            font-size: 16px;\n            line-height: 1.7;\n            color: var(--text-secondary);\n        }\n        \n        .attachment-section {\n            background: var(--header-bg);\n            border-radius: 16px;\n            padding: 40px;\n            margin: 40px 0;\n            text-align: center;\n            position: relative;\n            overflow: hidden;\n            color: var(--header-text);\n        }\n        \n        .attachment-section::before {\n            content: '';\n            position: absolute;\n            top: -50%;\n            left: -50%;\n            width: 200%;\n            height: 200%;\n            background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);\n            animation: pulse 4s ease-in-out infinite;\n        }\n        \n        @keyframes pulse {\n            0%, 100% { opacity: 0.3; transform: scale(1); }\n            50% { opacity: 0.6; transform: scale(1.02); }\n        }\n        \n        .attachment-icon {\n            width: 80px;\n            height: 80px;\n            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);\n            border-radius: 16px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            font-size: 32px;\n            margin: 0 auto 20px auto;\n            position: relative;\n            z-index: 2;\n            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);\n        }\n        \n        .attachment-section h3 {\n            margin: 0 0 15px 0;\n            font-size: 22px;\n            font-weight: 700;\n            position: relative;\n            z-index: 2;\n            color: var(--header-text);\n        }\n        \n        .attachment-section p {\n            margin: 0 0 30px 0;\n            font-size: 16px;\n            opacity: 0.9;\n            position: relative;\n            z-index: 2;\n            line-height: 1.6;\n            color: var(--header-text);\n        }\n        \n        .cta-section {\n            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);\n            border-radius: 16px;\n            padding: 50px 40px;\n            margin: 40px 0;\n            text-align: center;\n            position: relative;\n            overflow: hidden;\n            color: white;\n            box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);\n        }\n        \n        .cta-section::before {\n            content: '';\n            position: absolute;\n            top: -50%;\n            right: -50%;\n            width: 200%;\n            height: 200%;\n            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);\n            animation: rotate 25s linear infinite reverse;\n        }\n        \n        .cta-content {\n            position: relative;\n            z-index: 2;\n        }\n        \n        .cta-section h3 {\n            margin: 0 0 15px 0;\n            font-size: 26px;\n            font-weight: 800;\n            letter-spacing: -0.5px;\n            color: white;\n        }\n        \n        .cta-section .cta-subtitle {\n            margin: 0 0 30px 0;\n            font-size: 16px;\n            opacity: 0.9;\n            font-weight: 300;\n            color: white;\n        }\n        \n        .cta-button {\n            display: inline-block;\n            background: #ffffff;\n            color: var(--accent-color);\n            padding: 18px 40px;\n            border-radius: 50px;\n            text-decoration: none;\n            font-weight: 700;\n            font-size: 16px;\n            transition: all 0.3s ease;\n            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);\n            border: 2px solid transparent;\n        }\n        \n        .cta-button:hover {\n            transform: translateY(-3px);\n            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);\n            background: rgba(255, 255, 255, 0.95);\n        }\n        \n        .divider {\n            height: 2px;\n            background: linear-gradient(to right, transparent, var(--border-color), transparent);\n            margin: 40px 0;\n            border-radius: 1px;\n        }\n        \n        .team-signature {\n            text-align: center;\n            padding: 40px;\n            background: var(--card-bg);\n            border-radius: 16px;\n            border: 1px solid var(--border-color);\n            margin-top: 30px;\n        }\n        \n        .team-signature h4 {\n            margin: 0 0 10px 0;\n            color: var(--text-primary);\n            font-size: 18px;\n            font-weight: 600;\n        }\n        \n        .team-signature p {\n            margin: 0;\n            color: var(--text-muted);\n            font-size: 14px;\n            line-height: 1.5;\n        }\n        \n        .footer {\n            background: var(--footer-bg);\n            color: var(--footer-text);\n            padding: 30px 40px;\n            text-align: center;\n            font-size: 12px;\n            line-height: 1.5;\n        }\n        \n        .footer a {\n            color: var(--accent-color);\n            text-decoration: none;\n        }\n        \n        /* Mobile Optimizations */\n        @media (max-width: 600px) {\n            body {\n                padding: 10px;\n            }\n            \n            .header {\n                padding: 40px 25px;\n            }\n            \n            .header h1 {\n                font-size: 26px;\n            }\n            \n            .content {\n                padding: 40px 25px;\n            }\n            \n            .greeting {\n                font-size: 20px;\n            }\n            \n            .main-message {\n                padding: 30px 25px;\n            }\n            \n            .main-message h2 {\n                font-size: 20px;\n            }\n            \n            .attachment-section {\n                padding: 30px 25px;\n            }\n            \n            .attachment-icon {\n                width: 60px;\n                height: 60px;\n                font-size: 24px;\n            }\n            \n            .cta-section {\n                padding: 40px 25px;\n            }\n            \n            .cta-section h3 {\n                font-size: 22px;\n            }\n            \n            .team-signature {\n                padding: 30px 25px;\n            }\n            \n            .footer {\n                padding: 25px;\n            }\n        }\n        \n        @media (max-width: 480px) {\n            .logo {\n                font-size: 14px;\n                padding: 10px 20px;\n            }\n            \n            .logo-icon {\n                width: 28px;\n                height: 28px;\n                font-size: 14px;\n            }\n            \n            .header h1 {\n                font-size: 24px;\n            }\n            \n            .content {\n                padding: 30px 20px;\n            }\n            \n            .main-message {\n                padding: 25px 20px;\n            }\n            \n            .attachment-section {\n                padding: 25px 20px;\n            }\n            \n            .cta-section {\n                padding: 35px 20px;\n            }\n            \n            .team-signature {\n                padding: 25px 20px;\n            }\n        }\n    </style>\n</head>\n<body>\n    <div class=\"email-container\">\n        <div class=\"header\">\n            <div class=\"header-content\">\n                <div class=\"logo\">\n                    <div class=\"logo-icon\">\ud83d\ude80</div>\n                    MindSightAI\n                </div>\n                <h1>Website Audit Complete</h1>\n                <p class=\"subtitle\">Your comprehensive analysis is ready</p>\n            </div>\n        </div>\n        \n        <div class=\"content\">\n            <div class=\"greeting\">\n                Hi <strong>{{ $('SET_USER_INPUT').item.json.Full_Name }} Doe</strong>,\n            </div>\n            \n            <div class=\"main-message\">\n                <h2>Your Website Audit is Ready!</h2>\n                <p>We've completed a comprehensive AI-powered analysis of your website. This detailed report reveals key insights and opportunities to improve your site's performance and user experience.</p>\n            </div>\n            \n            <div class=\"attachment-section\">\n                <div class=\"attachment-icon\">\ud83d\udccb</div>\n                <h3>Audit Report Attached</h3>\n                <p>Your personalized website audit report is attached to this email as a PDF file.</p>\n            </div>\n            \n            <div class=\"cta-section\">\n                <div class=\"cta-content\">\n                    <h3>Ready to Implement These Insights?</h3>\n                    <p class=\"cta-subtitle\">Let's discuss how we can help you turn these audit findings into actionable improvements</p>\n                    <a href=\"#\" class=\"cta-button\">\ud83d\udcde Schedule a Consultation</a>\n                </div>\n            </div>\n            \n            <div class=\"divider\"></div>\n            \n            <div class=\"team-signature\">\n                <h4>Best regards,</h4>\n                <p><strong>MindSightAI</strong><br>\n                Professional Website Analysis Services</p>\n            </div>\n        </div>\n        \n        <div class=\"footer\">\n            <p>This audit was generated using advanced analysis tools and methodologies.</p>\n        </div>\n    </div>\n</body>\n</html>",
        "options": {
          "senderName": "1prompt License",
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          },
          "appendAttribution": false
        },
        "subject": "Your Website Audit"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "72bce8e3-0649-4afe-9347-bbaf95cd5ef5",
      "name": "Report_Generator_Agent",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1136,
        864
      ],
      "parameters": {
        "text": "=#Input Data \n\n# Business Overview \n{{ $('Business Research').item.json.message.content }}\n\n# Strategy \n{{ $('Product Strategy').item.json.text }}\n\nWebsite SEO Audit Data:\n{{ JSON.stringify($('Aggregate').item.json.output_data) }}\n\nCurrent Date & Time (Make sure to use this currrent date in the report):\n{{ $now }}\n\nMake sure to keep the report very detailed and cover all aspects. It should be very, very detailed and should have a lot of information. \n\n- Always remember to keep the content pdf optimized and it looks professional\n\n- Now, below is the Code example, which is for your reference to generate the whole website audit. Make sure to use the same structure; you just need to change the content, but make sure to use the same structure. Don't use any first page background colour in generating the audit. Keep the background of the audit page clean, and make sure the data is presented clearly. (Make sure to follow the format below and must include the table of contents)\n\n{{ $json.Sample_Code }}\n\n### Notes:\n- Make sure to use same theme olour accross all the report pages. The colour Theme should be same and make sure don't use colour which can cause readers to not read properly becasue of unclear text casued by colours. We have to follow same colour theme accross all the pages to have better professional report",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "type": "HumanMessagePromptTemplate",
              "message": "=# WEBSITE AUDIT GENERATOR FOR MINDSIGHTAI\n\nYOU ARE A WORLD-CLASS WEBSITE AUDIT GENERATOR AND DIGITAL STRATEGY ANALYSIS EXPERT. YOU SPECIALIZE IN CREATING VISUALLY STUNNING, DEEPLY INSIGHTFUL HTML AUDIT REPORTS FOR TECHNOLOGY COMPANIES. YOUR TASK IS TO GENERATE A PREMIUM-QUALITY WEBSITE AUDIT REPORT FOR **MINDSIGHTAI** USING STRUCTURED HTML + EMBEDDED CSS, PACKAGED INSIDE A JSON OBJECT.\n\n---\n\n## OBJECTIVE\n\nUSE THE PROVIDED INPUT DATA TO:\n\n1. **ANALYZE THE BUSINESS PROFILE & STRATEGY** AND CRAFT A FULLY STRUCTURED HTML WEBSITE AUDIT\n2. **STYLE THE REPORT BEAUTIFULLY** USING MODERN CSS (GRID, FLEXBOX, SHADOWS, ELEGANT FONTS, LIGHT BACKGROUND)\n3. **INCLUDE DETAILED SECTIONS** MAPPED TO THE AUDIT HEADINGS OUTLINED BELOW\n4. **CREATE A VERY DETAILED AND COMPREHENSIVE REPORT** WITH EXTENSIVE INFORMATION AND ANALYSIS\n5. **EMBED THE ENTIRE HTML INTO A JSON OBJECT**, FORMATTED AS:\n\n```json\n{\n  \"report_type\": \"Website Audit\",\n  \"format\": \"HTML\",\n  \"content\": \"<!DOCTYPE html> ... </html>\"\n}\n```\n\n---\n\n## INPUT DATA FIELDS\n\nYou will receive the following input data to analyze:\n\n- **Business Overview & Customer Profile** \u2014 Company's products, audience, geographic focus\n- **Strategy** \u2014 Funnel logic, SEO strategy, and content architecture  \n- **Website SEO Audit Data** \u2014 Technical SEO analysis, page scores, recommendations\n\n---\n\n## CHAIN OF THOUGHTS TO FOLLOW\n\n1. **UNDERSTAND THE INPUT DATA**:\n   - Parse the Business Overview to understand AI services, target industries, and customer profile\n   - Analyze the Strategy to understand SEO approach and content planning\n   - Review the Website SEO Audit Data for technical findings and scores\n\n2. **ANALYZE THE BUSINESS MODEL**:\n   - Identify core services: AI agents, chatbots, voice assistants, workflow automation\n   - Recognize target industries: real estate, healthcare, retail, marketing, finance\n   - Note geographic focus and strategic goals\n\n3. **EXTRACT KEY INSIGHTS**:\n   - Derive insights from the provided strategy and SEO audit data\n   - Identify strengths, weaknesses, and opportunities\n   - Map findings to audit categories\n\n4. **BUILD COMPREHENSIVE SECTIONS**:\n   - Create detailed analysis for each audit category\n   - Include specific data points from the input\n   - Provide informational insights and observations\n\n5. **STRUCTURE THE HTML**:\n   - Use semantic HTML with proper sections and headings\n   - Implement the exact CSS structure provided in reference\n   - Include rating bars, metric cards, and visual elements\n\n6. **ENSURE DETAILED COVERAGE**:\n   - Make each section comprehensive with extensive analysis\n   - Include specific findings from the SEO audit data\n   - Provide detailed insights and observations\n\n---\n\n## REQUIRED SECTION HEADINGS\n\nFollow this exact structure and make each section very detailed:\n\n### Executive Summary\n- Overall audit score with visual metrics\n- Key findings summary\n- Current performance overview\n- Critical insights with rating bars\n\n### Business Summary  \n- Company Overview (from Business Overview input)\n- Services Offered\n- Industry Focus Areas (from input data)\n- Geographic Target\n- Market Positioning Analysis\n\n### Target Audience & Customer Persona\n- Ideal Customer Profile (from input data)\n- Sector-wise Benefit Mapping\n- Customer Pain Points & AI Solution Fit\n- Market Segmentation Analysis\n\n### Strategic Content Architecture\n- Current Funnel Strategy Analysis (from Strategy input)\n- Internal Linking Assessment\n- Topic Cluster Analysis\n- Content Gap Identification\n- SEO Content Opportunities\n\n### Technical SEO & On-Site Audit\n- Use specific data from Website SEO Audit Data input\n- Title & Meta Optimization Analysis\n- H1/H2 Structure Assessment\n- Site Health Metrics\n- Core Web Vitals Analysis\n- Image Optimization Status\n- Technical Issues Identified\n\n### EEAT Signal Analysis\n- Expertise Signals Assessment\n- Authority Factors Analysis\n- Trust Elements Evaluation\n- Current Credibility Status\n\n### Local SEO Assessment\n- Google Business Profile Analysis\n- Local Search Optimization Status\n- Geographic Targeting Analysis\n- Citation Audit\n\n### AI Search Optimization Readiness\n- Entity Mapping Analysis\n- Schema Markup Assessment\n- Voice Search Readiness\n- AI Platform Compatibility\n\n### Conversion Optimization Audit\n- User Experience Analysis\n- CTA Effectiveness Assessment\n- Mobile Optimization Review\n- Lead Generation Analysis\n\n### Key Performance Metrics & KPIs\n- Current Performance Analysis (from audit data)\n- Benchmark Comparisons\n- Performance Insights\n- Metric Tracking Assessment\n\n### Website Insights & Observations\n- Technical Findings Summary\n- Content Analysis Results\n- SEO Performance Insights\n- User Experience Observations\n- Current Strengths and Areas for Improvement\n\n---\n\n## DETAILED REQUIREMENTS\n\n### Data Integration\n- **Use ALL provided input data** - do not create random or placeholder content\n- **Extract specific metrics** from the Website SEO Audit Data\n- **Reference actual strategy elements** from the Strategy input\n- **Include real business details** from Business Overview\n\n### Content Depth\n- **Make each section very comprehensive** with extensive analysis\n- **Include specific findings and data points** from the audit\n- **Provide detailed explanations** for all observations\n- **Add multiple subsections** within each main category\n\n### Visual Elements\n- **Include rating bars** for all metrics with actual percentages\n- **Use metric cards** for key performance indicators\n- **Add alert boxes** for important findings\n- **Implement grid layouts** for organized information display\n\n### Technical Implementation\n- **Follow the exact CSS structure** from the reference template\n- **Use proper semantic HTML** with sections, headings, and lists\n- **Ensure responsive design** with proper breakpoints\n- **Maintain PDF compatibility** with clean layouts\n\n---\n\n## RESTRICTIONS\n\n- DO NOT create random or fake data - use only the provided input\n- DO NOT skip any of the required sections\n- DO NOT modify the first/last page template codes\n- DO NOT use outdated HTML or table layouts\n- DO NOT return HTML outside the JSON object\n- DO NOT make the report superficial - it must be very detailed\n- DO NOT ignore the Website SEO Audit Data - use it extensively\n- DO NOT include sales language or implementation promises\n- DO NOT create action plans or service offerings\n\n---\n\n## QUALITY STANDARDS\n\n- **Correctness is critical** - all data must be accurate\n- **Comprehensive coverage** - each section must be detailed\n- **Professional presentation** - clean, modern design\n- **Informational insights** - objective, analytical observations\n- **Data-driven analysis** - based on provided audit data\n- **Consistent structure** - following the reference template exactly\n- **Pure audit focus** - informational analysis without sales elements\n\n---\n\n## TEMPLATE VARIABLES TO USE\n\n- This is the first PDF page template data (use the exact code for the first page of the PDF):\n\n{{ $('PDF_First_Page').item.json.PDF_First_Page }}\n\n- This is the last PDF page template code for the CTA (use the exact code for the last page of the PDF):\n\n{{ $('PDF_Last_Page1').item.json.PDF_Last_Page }}\n\n- Now, below is the Code example, which is for your reference to generate the whole website audit. Make sure to use the same structure; you just need to change the content, but make sure to use the same structure. Don't use any first page background colour in generating the audit. Keep the background of the audit page clean, and make sure the data is presented clearly. (Make sure to follow below format and must include the table of content):\n\n{{ $json.Sample_Code }}\n\n---\n\n## IMPORTANT GUIDELINES:\n- Don't use random data. Ensure that you provide the details you have as Input.\n- Keep the design PDF-friendly, and ensure it looks clean. Also, create a detailed report based on the available data.\n- Always Remember Correctness is a life-or-death situation, so make sure to create everything correctly\n- Use all the template variables provided above exactly as they are referenced\n\n**REMEMBER**: Create a very detailed, comprehensive audit report using the actual input data provided. Each section should be extensive with thorough analysis and specific observations. Focus purely on providing valuable website audit insights without any sales or implementation elements. Use the exact structure and styling from the reference template, including all the variables as specified."
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "retryOnFail": true,
      "typeVersion": 1.7,
      "waitBetweenTries": 3000
    },
    {
      "id": "4ea59753-8e17-4ed1-ae1e-a808f039d98a",
      "name": "Crawler Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1904,
        480
      ],
      "parameters": {
        "url": "https://api.dataforseo.com/v3/on_page/task_post",
        "method": "POST",
        "options": {},
        "jsonBody": "=[\n  {\n    \"target\": \"{{ $('SET_USER_INPUT').item.json.Website_URL }}\",\n    \"max_crawl_pages\": 4,\n    \"max_crawl_depth\": 5,\n    \"tag\": \"scrapeComplete\"\n  }\n]",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth"
      },
      "credentials": {
        "httpBasicAuth": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "09cc5863-ed15-4c7d-a1b9-c0ac6b04137e",
      "name": "Sample_Code",
      "type": "n8n-nodes-base.set",
      "position": [
        896,
        864
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "fae47f79-2a61-4174-819b-9bd587bc1b73",
              "name": "Sample_Code",
              "type": "string",
              "value": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>Website Audit Report - MindsightAI</title>\n  <style>\n    @import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');\n    :root{--primary: #4361ee;--secondary: #3f37c9;--accent: #7209b7;--background: #f7f9fc;--card-bg: #ffffff;--text-primary: #1a1a1a;--text-secondary: #4a5568;--border: #e2e8f0;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;}\n    *{margin: 0;padding: 0;box-sizing: border-box;}\n    body{font-family: 'Lato', sans-serif;background-color: var(--background);color: var(--text-primary);line-height: 1.6;}\n    header{background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);color: white;padding: 4rem 0;text-align: center;box-shadow: 0 4px 20px rgba(0,0,0,0.1);}\n    header h1{font-size: 2.5rem;font-weight: 700;margin-bottom: 1rem;}\n    header p{font-size: 1.1rem;opacity: 0.9;}\n    .container{max-width: 1200px;margin: 0 auto;padding: 0 2rem;}\n    section{margin: 3rem 0;}\n    .card{background: var(--card-bg);border-radius: 12px;padding: 2rem;box-shadow: 0 4px 15px rgba(0,0,0,0.05);margin-bottom: 2rem;transition: transform 0.3s ease;}\n    .card:hover{transform: translateY(-2px);box-shadow: 0 6px 20px rgba(0,0,0,0.08);}\n    h2{color: var(--primary);font-size: 2rem;margin-bottom: 1.5rem;border-bottom: 3px solid var(--primary);padding-bottom: 0.5rem;}\n    h3{color: var(--secondary);font-size: 1.5rem;margin: 1.5rem 0 1rem;}\n    h4{color: var(--text-primary);font-size: 1.2rem;margin: 1rem 0;}\n    .grid{display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 2rem;}\n    .metric-card{background: linear-gradient(135deg, #edf2ff 0%, #f7f9fc 100%);padding: 1.5rem;border-radius: 8px;border-left: 4px solid var(--primary);}\n    .metric-card h4{color: var(--primary);margin-bottom: 0.5rem;}\n    .rating{display: flex;align-items: center;gap: 0.5rem;margin-top: 0.5rem;}\n    .rating-bar{width: 150px;height: 8px;background: #e0e0e0;border-radius: 4px;overflow: hidden;}\n    .rating-fill{height: 100%;background: var(--primary);transition: width 0.5s ease;}\n    .score{font-weight: 700;color: var(--primary);}\n    .alert{padding: 1rem 1.5rem;border-radius: 8px;margin: 1rem 0;border-left: 5px solid;}\n    .alert-success{background: #d1fae5;border-color: var(--success);color: #065f46;}\n    .alert-warning{background: #fef3c7;border-color: var(--warning);color: #92400e;}\n    .alert-danger{background: #fee2e2;border-color: var(--danger);color: #991b1b;}\n    ul{padding-left: 2rem;margin: 1rem 0;}\n    li{margin: 0.5rem 0;color: var(--text-secondary);}\n    .recommendation-box{background: linear-gradient(135deg, #f3f4f6 0%, #edf2ff 100%);padding: 1.5rem;border-radius: 8px;margin: 1rem 0;border: 1px solid var(--border);}\n    \n    /* Table of Contents Styles */\n    .toc{background: linear-gradient(135deg, #f8fafc 0%, #edf2ff 100%);border: 1px solid var(--border);border-radius: 12px;padding: 2rem;margin: 2rem 0;}\n    .toc h2{color: var(--primary);margin-bottom: 1.5rem;border-bottom: 3px solid var(--primary);padding-bottom: 0.5rem;}\n    .toc-list{list-style: none;padding: 0;}\n    .toc-list li{margin: 0.75rem 0;padding: 0;}\n    .toc-list a{color: var(--text-primary);text-decoration: none;display: flex;justify-content: space-between;align-items: center;padding: 0.5rem 1rem;border-radius: 6px;transition: all 0.3s ease;}\n    .toc-list a:hover{background: var(--primary);color: white;transform: translateX(5px);}\n    .toc-number{background: var(--primary);color: white;border-radius: 50%;width: 24px;height: 24px;display: flex;align-items: center;justify-content: center;font-size: 0.85rem;font-weight: 600;margin-right: 0.75rem;}\n    .toc-title{flex-grow: 1;}\n    \n    @media (max-width: 768px){header h1{font-size: 2rem;}h2{font-size: 1.5rem;}.grid{grid-template-columns: 1fr;}}\n  </style>\n</head>\n<body>\n  <header>\n    <div class=\"container\">\n      <h1>Website Audit Report for MindsightAI</h1>\n      <p>Comprehensive Analysis & Strategic Recommendations for AI Solutions Provider</p>\n    </div>\n  </header>\n  \n  <main class=\"container\">\n    <!-- Table of Contents -->\n    <div class=\"toc\">\n      <h2>Table of Contents</h2>\n      <ul class=\"toc-list\">\n        <li>\n          <a href=\"#executive-summary\">\n            <span class=\"toc-number\">1</span>\n            <span class=\"toc-title\">Executive Summary</span>\n          </a>\n        </li>\n        <li>\n          <a href=\"#business-summary\">\n            <span class=\"toc-number\">2</span>\n            <span class=\"toc-title\">Business Summary</span>\n          </a>\n        </li>\n        <li>\n          <a href=\"#target-audience\">\n            <span class=\"toc-number\">3</span>\n            <span class=\"toc-title\">Target Audience & Customer Persona</span>\n          </a>\n        </li>\n        <li>\n          <a href=\"#content-architecture\">\n            <span class=\"toc-number\">4</span>\n            <span class=\"toc-title\">Strategic Content Architecture</span>\n          </a>\n        </li>\n      </ul>\n    </div>\n    \n    <section id=\"executive-summary\">\n      <div class=\"card\">\n        <h2>Executive Summary</h2>\n        <p>This comprehensive website audit evaluates MindsightAI's digital presence and provides strategic recommendations to enhance online visibility, improve conversion rates, and establish market dominance in the AI solutions space. Our analysis reveals significant opportunities for growth through targeted SEO optimization, content strategy refinement, and enhanced EEAT signals.</p>\n        <div class=\"grid\" style=\"margin-top: 2rem;\">\n          <div class=\"metric-card\">\n            <h4>Overall Site Health</h4>\n            <div class=\"rating\">\n              <div class=\"rating-bar\"><div class=\"rating-fill\" style=\"width: 72%;\"></div></div>\n              <span class=\"score\">7.2/10</span>\n            </div>\n          </div>\n          <div class=\"metric-card\">\n            <h4>SEO Readiness</h4>\n            <div class=\"rating\">\n              <div class=\"rating-bar\"><div class=\"rating-fill\" style=\"width: 65%;\"></div></div>\n              <span class=\"score\">6.5/10</span>\n            </div>\n          </div>\n          <div class=\"metric-card\">\n            <h4>Content Quality</h4>\n            <div class=\"rating\">\n              <div class=\"rating-bar\"><div class=\"rating-fill\" style=\"width: 78%;\"></div></div>\n              <span class=\"score\">7.8/10</span>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n    \n    <section id=\"business-summary\">\n      <div class=\"card\">\n        <h2>Business Summary</h2>\n        <h3>Company Overview</h3>\n        <p>MindsightAI is a Texas-based technology company specializing in cutting-edge artificial intelligence solutions. Headquartered in Garland, Texas, the company focuses on developing AI agents that automate tasks, enhance customer interactions, and streamline workflows to boost business efficiency.</p>\n        <h3>Services Offered</h3>\n        <ul>\n          <li><strong>Custom AI Chatbots:</strong> Intelligent conversational agents providing 24/7 personalized customer interactions</li>\n          <li><strong>Voice AI Agents:</strong> Advanced voice recognition systems for call handling and customer assistance</li>\n          <li><strong>Workflow Automation:</strong> Solutions for automating repetitive tasks and optimizing business processes</li>\n          <li><strong>Support & Maintenance:</strong> Ongoing optimization and updates for AI systems</li>\n        </ul>\n        <h3>Industry Focus Areas</h3>\n        <div class=\"grid\" style=\"margin-top: 1.5rem;\">\n          <div class=\"metric-card\"><h4>Real Estate</h4><p>Client engagement and property management optimization</p></div>\n          <div class=\"metric-card\"><h4>Healthcare</h4><p>Patient interaction enhancement and administrative automation</p></div>\n          <div class=\"metric-card\"><h4>Retail & eCommerce</h4><p>Personalized shopping experiences and customer service</p></div>\n          <div class=\"metric-card\"><h4>Marketing & Advertising</h4><p>Automated client communications and campaign management</p></div>\n          <div class=\"metric-card\"><h4>Financial Institutions</h4><p>Customer support and internal process improvement</p></div>\n        </div>\n        <h3>Geographic Target</h3>\n        <p>Primary focus on Texas market with expansion potential across the United States. The strategic location in Garland positions MindsightAI to serve the thriving Texas tech ecosystem while building national presence.</p>\n      </div>\n    </section>\n    \n    <section id=\"target-audience\">\n      <div class=\"card\">\n        <h2>Target Audience & Customer Persona</h2>\n        <h3>Ideal Customer Profile (ICP)</h3>\n        <p>MindsightAI's ideal customers are forward-thinking businesses seeking to leverage AI technology for competitive advantage. These organizations typically exhibit:</p>\n        <ul>\n          <li>Annual revenue between $1M - $50M</li>\n          <li>Existing digital infrastructure and openness to innovation</li>\n          <li>Customer service or operational efficiency challenges</li>\n          <li>Growth-oriented mindset with budget for technology investments</li>\n          <li>Located primarily in Texas metropolitan areas (Dallas-Fort Worth, Houston, Austin, San Antonio)</li>\n        </ul>\n        <h3>Sector-wise Benefit Mapping</h3>\n        <div class=\"recommendation-box\">\n          <h4>Real Estate Professionals</h4>\n          <ul>\n            <li><strong>Pain Point:</strong> Managing multiple client inquiries and property showings</li>\n            <li><strong>AI Solution:</strong> 24/7 chatbots for instant property information and appointment scheduling</li>\n            <li><strong>Expected ROI:</strong> 40% reduction in response time, 25% increase in qualified leads</li>\n          </ul>\n        </div>\n        <div class=\"recommendation-box\">\n          <h4>Healthcare Organizations</h4>\n          <ul>\n            <li><strong>Pain Point:</strong> Administrative burden and patient communication delays</li>\n            <li><strong>AI Solution:</strong> Voice AI for appointment reminders, prescription refills, and FAQ handling</li>\n            <li><strong>Expected ROI:</strong> 50% reduction in administrative tasks, improved patient satisfaction scores</li>\n          </ul>\n        </div>\n        <div class=\"recommendation-box\">\n          <h4>Retail & eCommerce</h4>\n          <ul>\n            <li><strong>Pain Point:</strong> Cart abandonment and customer service scalability</li>\n            <li><strong>AI Solution:</strong> Intelligent chatbots for product recommendations and order support</li>\n            <li><strong>Expected ROI:</strong> 20% reduction in cart abandonment, 3x customer service capacity</li>\n          </ul>\n        </div>\n      </div>\n    </section>\n    \n    <section id=\"content-architecture\">\n      <div class=\"card\">\n        <h2>Strategic Content Architecture</h2>\n        <h3>Current Funnel Strategy Analysis</h3>\n        <p>MindsightAI employs a reverse funnel linking strategy (BOFU \u2192 MOFU \u2192 TOFU), which demonstrates sophisticated content planning. However, execution gaps exist:</p>\n        <div class=\"alert alert-warning\"><strong>Key Finding:</strong> While the strategy is sound, actual content implementation appears limited. Website analysis shows insufficient TOFU content to capture broad search traffic.</div>\n        <h3>Content Gap Analysis</h3>\n        <ul>\n          <li><strong>BOFU Content (Bottom of Funnel):</strong> Service pages exist but lack depth and conversion optimization</li>\n          <li><strong>MOFU Content (Middle of Funnel):</strong> Limited comparison guides and case studies</li>\n          <li><strong>TOFU Content (Top of Funnel):</strong> Significant gaps in educational content about AI, automation basics, and industry-specific challenges</li>\n        </ul>\n        <h3>Recommended Topic Clusters</h3>\n        <div class=\"grid\">\n          <div class=\"metric-card\">\n            <h4>AI Fundamentals Cluster</h4>\n            <p>Educational content targeting businesses new to AI technology, covering basics, benefits, and implementation strategies.</p>\n          </div>\n          <div class=\"metric-card\">\n            <h4>Industry Solutions Cluster</h4>\n            <p>Sector-specific content addressing unique challenges in real estate, healthcare, retail, and other target industries.</p>\n          </div>\n          <div class=\"metric-card\">\n            <h4>Implementation Guides Cluster</h4>\n            <p>Step-by-step resources for businesses ready to implement AI solutions, including planning and optimization.</p>\n          </div>\n          <div class=\"metric-card\">\n            <h4>ROI & Case Studies Cluster</h4>\n            <p>Proof-of-concept content showcasing successful implementations and quantifiable business results.</p>\n          </div>\n        </div>\n      </div>\n    </section>\n  </main>\n</body>\n</html>"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f151ea50-b5db-4211-afff-25ae34d8a9b2",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1136,
        1024
      ],
      "parameters": {
        "model": "anthropic/claude-opus-4.1",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "02ae15d7-20f5-4cf8-af55-443045f1d340",
      "name": "If https?",
      "type": "n8n-nodes-base.if",
      "position": [
        480,
        1440
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "453bb63a-8b33-49fc-bb62-0973df8a5ecc",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.query }}",
              "rightValue": "http"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5dfd5bc3-ffaa-4d82-a010-93461f06b5bb",
      "name": "Markdown1",
      "type": "n8n-nodes-base.markdown",
      "onError": "continueErrorOutput",
      "position": [
        1360,
        1328
      ],
      "parameters": {
        "html": "={{ $json.tasks[0].result[0].items.html }}",
        "options": {
          "ignore": "img,a"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4bbe33ad-62c8-43ee-bef1-b14a94d3c98a",
      "name": "Edit Fields29",
      "type": "n8n-nodes-base.set",
      "position": [
        704,
        1344
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "0c5e59be-7f22-44b7-ab72-faf5f298598a",
              "name": "site",
              "type": "string",
              "value": "={{ $json.query }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "221a7847-5035-420b-985b-de94a4aef094",
      "name": "Edit Fields30",
      "type": "n8n-nodes-base.set",
      "position": [
        704,
        1536
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "0c5e59be-7f22-44b7-ab72-faf5f298598a",
              "name": "site",
              "type": "string",
              "value": "=https://{{ $json.query }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "99738768-3493-4c06-aa62-70a22f166c9c",
      "name": "Edit Fields31",
      "type": "n8n-nodes-base.set",
      "position": [
        1568,
        1312
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ac53212d-651c-4f0c-9337-9f867d422698",
              "name": "Response",
              "type": "string",
              "value": "={{ $json.data }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "4bc54310-d416-4784-bc0f-87bff5807900",
      "name": "Edit Fields34",
      "type": "n8n-nodes-base.set",
      "position": [
        1360,
        1568
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ac53212d-651c-4f0c-9337-9f867d422698",
              "name": "Response",
              "type": "string",
              "value": "=The website cannot be scraped, also make sure to mention that to remove any confusion.\n\nIf it's for Research Agent skip this.\nIf it's for Business overview, mention that the site cannot be scraped."
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "7467c39b-ca6b-4bf5-b392-1526ba81476e",
      "name": "Execute Workflow",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        640,
        480
      ],
      "parameters": {
        "options": {
          "waitForSubWorkflow": true
        },
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "7pzRKv7IKHvDrXA0",
          "cachedResultName": "SEO Website Audit System"
        },
        "workflowInputs": {
          "value": {
            "query": "={{ $json.Website_URL }}"
          },
          "schema": [
            {
              "id": "query",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "query",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": true
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3351ae32-ed02-4a07-887e-d79e41f52f83",
      "name": "DATA FOR SEO",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        928,
        1440
      ],
      "parameters": {
        "url": "https://api.dataforseo.com/v3/on_page/instant_pages",
        "method": "POST",
        "options": {},
        "jsonBody": "=[\n  {\n    \"url\": \"{{ $json.site }}\",\n    \"enable_javascript\": true,\n    \"store_raw_html\": true,\n    \"enable_browser_rendering\": true\n  }\n]",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBasicAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "9fe9621e-f276-4312-9732-67ecbf9a2786",
      "name": "DATA FOR SEO1",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        1152,
        1440
      ],
      "parameters": {
        "url": "https://api.dataforseo.com/v3/on_page/raw_html",
        "method": "POST",
        "options": {},
        "jsonBody": "=[\n  {\n    \"id\": \"{{ $json.tasks[0].id }}\",\n    \"url\": \"{{ $json.tasks[0].data.url }}\"\n  }\n]",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "781e65f8-a640-4340-bb86-2dd8401fa1a3",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        288,
        1440
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "query"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "366d656b-8867-4f99-8828-54c13aef226f",
      "name": "Business Research",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1104,
        480
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-search-preview",
          "cachedResultName": "GPT-4O-SEARCH-PREVIEW"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=You're an Internet researcher, who loves giving detailed acurate research for the marketing team, you only give data about the site mentioned."
            },
            {
              "content": "={{ $json.userprompt }}"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "74446d9d-9e73-4a4a-852c-9bd6db330a6b",
      "name": "Product Strategy",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1456,
        480
      ],
      "parameters": {
        "text": "=Create a strategic content architecture that dominates both traditional and AI-powered search engines by mapping user intent across the entire buyer journey. Using the business information provided, develop a reverse-hierarchy content strategy that captures high-intent searches and guides users backward through their research journey.\n\nCORE REQUIREMENTS:\n- Language: English\n- Target Location: Optimize for location-specific SERPs where applicable\n\nSTRATEGIC DELIVERABLES:\n\n1. **AI-OPTIMIZED CONTENT STRATEGY PLAN**\n   Develop a concise strategy addressing:\n   - Objective: How this structure captures voice search, conversational queries, and AI-generated answers\n   - Broad TOFU Rationale: Why expansive educational content feeds both traditional and AI search algorithms\n   - Chain Logic: The psychological and search journey from BOFU \u2192 MOFU \u2192 TOFU\n\n2. **SEARCH-INTENT CONTENT FOREST**\n   Create ONE code block showing:\n   - 3 BOFU product pages targeting transactional searches\n   - Each BOFU branches to 3-4 MOFU pieces targeting commercial investigation queries\n   - Each MOFU expands to 3+ TOFU articles targeting informational queries\n\nFORMAT REQUIREMENTS:\n## OVERALL CONTENT STRATEGY PLAN\n1. Objective\n2. Broad TOFU Rationale  \n3. Chain Logic\n---\n```markdown\n| BOFU CONTENT 1: \"[Product] - [Transactional Query Target]\"\n| --- MOFU 1: \"[Comparison/Review Query Target]\"\n| ------ TOFU 1: \"[Educational Query Target]\"\n| ------ TOFU 2: \"[Problem-Aware Query Target]\"\n| ------ TOFU 3: \"[Solution-Unaware Query Target]\"\n...\n```\n\nSEARCH OPTIMIZATION GUIDELINES:\n- BOFU: Target \"buy,\" \"price,\" \"discount,\" product-specific terms\n- MOFU: Target \"vs,\" \"review,\" \"best,\" comparison terms\n- TOFU: Target \"what is,\" \"how to,\" problem-based queries\n\n## BUSINESS OVERVIEW ##\n{{ $json.message.content }}",
        "messages": {
          "messageValues": [
            {
              "message": "=You are an elite Product Content Strategist specializing in creating content architectures that dominate both Google's traditional algorithm and emerging AI search systems. Your expertise spans understanding how ChatGPT, Perplexity, and Google's SGE pull and synthesize information.\n\nYOUR STRATEGIC PHILOSOPHY:\nYou recognize that modern search has evolved beyond keywords\u2014it's about creating interconnected content ecosystems that AI systems recognize as authoritative sources. Your reverse-hierarchy approach (BOFU \u2192 MOFU \u2192 TOFU) mirrors how users actually research: starting with specific products they discover, then stepping back to compare options, and finally understanding the broader problem space.\n\nSEARCH INTELLIGENCE PRINCIPLES:\n- Design content for both human psychology and machine understanding\n- Create clear entity relationships that AI can parse and reference\n- Structure content to appear in featured snippets and AI-generated summaries\n- Use semantic variations that capture voice search and conversational queries\n- Build topical authority through comprehensive coverage at each funnel stage\n\nAI SEARCH OPTIMIZATION:\n- BOFU pages include structured data for rich results and AI extraction\n- MOFU content provides comparative frameworks AI systems love to reference\n- TOFU articles answer fundamental questions that feed AI knowledge bases\n- Internal linking creates clear topical relationships AI can follow\n\nUSER SEARCH BEHAVIOR INSIGHTS:\nYou understand that users search differently at each stage:\n- BOFU: Specific product names, model numbers, \"where to buy,\" pricing queries\n- MOFU: \"Best [solution] for [specific need],\" comparison queries, alternative searches\n- TOFU: Problem-based searches, \"why does,\" \"what causes,\" educational queries\n\nCONTENT ARCHITECTURE EXCELLENCE:\n- Each piece serves dual purpose: user value and search visibility\n- Content clusters reinforce topical authority for both Google and AI systems\n- Strategic internal linking guides both users and crawlers through the journey\n- Meta descriptions written for click-through AND AI summarization\n\nLOCATION OPTIMIZATION:\nWhen applicable, naturally incorporate location-specific elements:\n- Local problem variations and solutions\n- Regional product availability and preferences\n- Location-based search modifiers without keyword stuffing\n\nYour strategy doesn't just rank\u2014it becomes the definitive resource that both search engines and AI systems consistently reference as the authoritative source in the space."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "c6b37bd2-2706-43e9-bd19-520aa8590bbd",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1536,
        608
      ],
      "parameters": {
        "model": "google/gemini-2.5-flash",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ba4c2305-0c06-420a-8e18-03e80442c2b4",
      "name": "SET_USER_INPUT",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        480
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "23f40791-b927-4833-bcb5-a8b89c6902ab",
              "name": "Full_Name",
              "type": "string",
              "value": "={{ $json.body.fullName }}"
            },
            {
              "id": "90c578d2-362e-4ba9-9537-f10180ffc4e3",
              "name": "Email",
              "type": "string",
              "value": "={{ $json.body.email }}"
            },
            {
              "id": "d685947e-4298-4883-a60b-072970ef5051",
              "name": "Phone_Number",
              "type": "string",
              "value": "={{ $json.body.phoneNumber }}"
            },
            {
              "id": "a6fff475-5ca4-4705-aee8-b482510605ac",
              "name": "Compnay_Name",
              "type": "string",
              "value": "={{ $json.body.companyName }}"
            },
            {
              "id": "5e5931cc-7d24-4d88-83d7-6661d06a70c6",
              "name": "Website_URL",
              "type": "string",
              "value": "={{ $json.body.companyWebsite }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e4b7f3fd-b94f-47d1-a980-cd8d1acee610",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        1280
      ],
      "parameters": {
        "color": 3,
        "width": 1612,
        "height": 468,
        "content": "## Scraper Sub-Workflow"
      },
      "typeVersion": 1
    },
    {
      "id": "cf517762-a7b6-478f-8678-0f366fff40ab",
      "name": "Set_Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        480
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "64113609-6adf-4693-8d51-ede088d97d38",
              "name": "userprompt",
              "type": "string",
              "value": "=Conduct comprehensive and detailed investigative research on {{ $('SET_USER_INPUT').item.json.Compnay_Name }} using all available online sources. Go beyond their website to uncover deep business intelligence that will inform our content strategy.\n\nSTARTING POINTS:\nCompany URL: {{ $('SET_USER_INPUT').item.json.Website_URL }}\nLanguage: English\nInitial Site Content: {{ $json.Response }}\n\nRESEARCH REQUIREMENTS:\nUse web search extensively to find:\n- Founder interviews and company origin stories\n- Industry reports mentioning the company\n- Customer reviews and case studies\n- Competitor comparisons and market analysis\n- News articles and press releases\n- Social media insights and community discussions\n- Partnership announcements\n- Product launches and feature updates\n\nDELIVER COMPREHENSIVE ANALYSIS ON:\n\n## 1. Company Overview\n- Founding story, mission, and vision\n- Core values and company culture\n- Market position and competitive advantages\n- Growth trajectory and future direction\n- Awards, recognitions, and credibility markers\n\n## 2. Company Offering Deep Dive\n- Complete product/service ecosystem\n- Unique value propositions for each offering\n- Pricing models and monetization strategy\n- Technology stack and proprietary advantages\n- Integration capabilities and partnerships\n\n## 3. Product Portfolio Architecture\n- How products relate to each other\n- Customer journey through product suite\n- Feature comparison with competitors\n- Product roadmap insights (if available)\n- Most successful/popular products\n\n## 4. Ideal Customer Profile (ICP)\n- Primary customer segments (with specific examples)\n- Company size, industry, and characteristics\n- Pain points each segment faces\n- Why they choose this solution\n- Success stories and use cases\n\n## 5. Target Market Geography & Expansion\n- Current market presence\n- Expansion patterns and priorities\n- Localization strategies\n- Regional product variations\n- Cultural considerations\n\n## 6. Strategic Thesis\n- Why this company is winning (or struggling)\n- Untapped opportunities in their market\n- Content gaps we can exploit\n- How content can accelerate their growth\n- Key themes that resonate with their audience\n\nProvide extremely detailed findings with specific examples, data points, quotes from founders/customers, and actionable insights for content strategy. Research like you're preparing a competitive intelligence report for a Fortune 500 company."
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "913a69b8-d7c2-43d3-812a-c97cd1b960ce",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        336
      ],
      "parameters": {
        "color": 7,
        "width": 684,
        "height": 340,
        "content": "## AI Analysis & Strategic Insights\n\nLLMs via [OpenRouter](https://openrouter.ai/) and [OpenAI](https://openai.com/) analyze market position and competitive landscape. AI agents generate business research and product strategy insights that form the audit report foundation."
      },
      "typeVersion": 1
    },
    {
      "id": "398b6a33-3218-4e78-ba2e-b464cbae095e",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        352
      ],
      "parameters": {
        "width": 460,
        "height": 1616,
        "content": "## Automated SEO Intelligence Platform with DataForSEO and Claude\n\nTransform any company website into a detailed SEO audit report in minutes! This workflow combines real-time web scraping, comprehensive SEO data analysis, and advanced AI reasoning to deliver client-ready reports automatically.\n\nPerfect for digital agencies scaling their audit services, freelance SEO consultants automating research, or SaaS teams analyzing competitor strategies before sales calls.\n\n## The Process\n\n**Discovery Phase:** Input a company name and website URL to kick things off. The system begins with website content extraction.\n\n**Intelligence Gathering:** A dedicated scraper sub-workflow extracts all website content and converts it to structured markdown. \n\n**Strategic Analysis:** LLMs process the scraped content to understand the business model, target market, and competitive positioning. They generate business research insights and product strategy recommendations tailored to that specific company. Once this analysis completes, DataForSEO API then pulls technical metrics, backlink profiles, keyword rankings, and site health indicators.\n\n**Report Assembly:** All findings flow into a master report generator that structures the data into sections covering technical SEO, content strategy, competitive landscape, and actionable next steps. Custom branded cover and closing pages are added.\n\n**Delivery:** The HTML report converts to PDF format and emails directly to your recipient - no manual intervention needed.\n\n## Setup Steps\n\n1. Add API credentials: OpenRouter (for AI), DataForSEO (for scraping/SEO data), and PDFco (for PDF generation)\n2. Configure email sending through your preferred service (Gmail, SendGrid, etc.)\n3. Optional: Upload custom first/last page PDFs for white-label branding\n4. Test with your own website first to see the magic happen!\n\n## Customize It\n\n**Adjust analysis depth:** Modify the AI prompts to focus on specific SEO aspects (local SEO, e-commerce, B2B SaaS, etc.)\n\n**Change report style:** Edit the HTML template in the Sample_Code node for different formatting\n\n**Add integrations:** Connect to your CRM to automatically trigger reports when leads enter your pipeline\n\n**Scale it up:** Process multiple URLs in batch by feeding a Google Sheet of prospects\n\n## What You'll Need\n\n- OpenRouter account (Claude Opus 4.1 recommended for best insights)\n- DataForSEO subscription (handles both scraping and SEO metrics)\n- PDFco account (converts your reports to professional PDFs)\n- Email service credentials configured in n8n\n\n### Need Help?\n\nConnect with me on [LinkedIn](https://www.linkedin.com/in/harsh-agrawal-490138256/) if you have any doubt"
      },
      "typeVersion": 1
    },
    {
      "id": "dea11f15-8e6a-4be3-a51e-7a51a7c10bfe",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        2000
      ],
      "parameters": {
        "color": 5,
        "width": 460,
        "height": 204,
        "content": "## API Rate Limits!\n\nPlease note that DataForSEO API has rate limits depending on your plan. For processing multiple websites in bulk, consider adding delay nodes between requests or upgrading to a higher-tier plan. The workflow includes error handling, but large websites may take 2-5 minutes to fully process."
      },
      "typeVersion": 1
    },
    {
      "id": "4d9eed60-513c-4929-832d-3590f3964a7f",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        336
      ],
      "parameters": {
        "color": 7,
        "width": 300,
        "height": 340,
        "content": "### Scrape & Understand the Business\n\nScrapes website with DataForSEO \u2192 Converts to markdown \u2192 AI analyzes business and creates insights."
      },
      "typeVersion": 1
    },
    {
      "id": "837bac94-26f6-4aab-9976-4639cf763aba",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        464
      ],
      "parameters": {
        "color": 7,
        "width": 412,
        "height": 212,
        "content": "## Collect SEO Metrics\n\nDataForSEO API gathers rankings, backlinks, technical SEO data, and site performance. Wait node ensures complete data collection (1-5 min based on site size).\n\n**API:** [DataForSEO](https://dataforseo.com/)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "408b0ecc-78c7-42cb-8cde-fba2a5899fb0",
  "connections": {
    "Wait5": {
      "main": [
        [
          {
            "node": "Website SEO Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook1": {
      "main": [
        [
          {
            "node": "SET_USER_INPUT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "PDF_First_Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If https?": {
      "main": [
        [
          {
            "node": "Edit Fields29",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields30",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown1": {
      "main": [
        [
          {
            "node": "Edit Fields31",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDFco Api": {
      "main": [
        [
          {
            "node": "Get_Pdf_File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set_Prompt": {
      "main": [
        [
          {
            "node": "Business Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample_Code": {
      "main": [
        [
          {
            "node": "Report_Generator_Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DATA FOR SEO": {
      "main": [
        [
          {
            "node": "DATA FOR SEO1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get_Pdf_File": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DATA FOR SEO1": {
      "main": [
        [
          {
            "node": "Markdown1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields29": {
      "main": [
        [
          {
            "node": "DATA FOR SEO",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields30": {
      "main": [
        [
          {
            "node": "DATA FOR SEO",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF_First_Page": {
      "main": [
        [
          {
            "node": "PDF_Last_Page1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF_Last_Page1": {
      "main": [
        [
          {
            "node": "Sample_Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SET_USER_INPUT": {
      "main": [
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crawler Request": {
      "main": [
        [
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow": {
      "main": [
        [
          {
            "node": "Set_Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Strategy": {
      "main": [
        [
          {
            "node": "Crawler Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Business Research": {
      "main": [
        [
          {
            "node": "Product Strategy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Website SEO Data1": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Report_Generator_Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Product Strategy",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Report_Generator_Agent": {
      "main": [
        [
          {
            "node": "PDFco Api",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Report_Generator_Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "If https?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}