{
  "name": "AccessFix EU EAA & WCAG 2.2 AA — Automated Client Accessibility Audit in n8n",
  "nodes": [
    {
      "parameters": {},
      "id": "b1b2c3d4-0001-4000-8000-000000000001",
      "name": "When clicking Execute Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [220, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "url-1",
              "name": "targetUrl",
              "value": "https://syncforgecloud.com",
              "type": "string"
            },
            {
              "id": "pages-1",
              "name": "maxPages",
              "value": 1,
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "id": "b1b2c3d4-0002-4000-8000-000000000002",
      "name": "Set Website to Audit",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [440, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/syncforgecloud~accessfix-eaa-wcag-auditor-mcp/run-sync-get-dataset-items?maxTotalChargeUsd=2.00",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $env.APIFY_TOKEN }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ startUrls: [{ url: $json.targetUrl }], maxPages: $json.maxPages }) }}",
        "options": {
          "timeout": 120000
        }
      },
      "id": "b1b2c3d4-0003-4000-8000-000000000003",
      "name": "Run AccessFix WCAG 2.2 Auditor",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "jsCode": "return items.map(item => {\n  const d = item.json || {};\n  const violations = Array.isArray(d.violations) ? d.violations : [];\n  const critical = violations.filter(v => String(v.severity || v.impact || '').toLowerCase() === 'critical').length;\n  const topFixes = violations.slice(0, 5).map(v => `- [${v.rule || v.id || 'WCAG'}] ${v.message || v.description || ''}`).join('\\n');\n  return {\n    json: {\n      audited_url: d.url || 'unknown',\n      total_findings: violations.length,\n      critical_findings: critical,\n      client_summary_markdown: `## EU EAA & WCAG 2.2 AA Audit: ${d.url || ''}\\n- Total Findings: ${violations.length}\\n- Critical: ${critical}\\n\\n### Top Recommended Code Fixes\\n${topFixes || 'No critical defects detected.'}`\n    }\n  };\n});"
      },
      "id": "b1b2c3d4-0004-4000-8000-000000000004",
      "name": "Build Client Report Markdown",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [940, 300]
    },
    {
      "parameters": {
        "content": "## AccessFix EU EAA & WCAG 2.2 AA Audit Agency Workflow\n\n**3-Step Setup:**\n1. Set `APIFY_TOKEN` in your n8n environment variables.\n2. Enter any public HTTPS URL in `Set Website to Audit` (1-page test costs ~$0.67 PPE, hard capped at `$2.00`).\n3. Connect `Build Client Report Markdown` to Gmail, Slack, Notion, or Google Docs.\n\n**Actor:** https://apify.com/syncforgecloud/accessfix-eaa-wcag-auditor-mcp\n**1-Click Example:** https://apify.com/syncforgecloud/accessfix-eaa-wcag-auditor-mcp/examples/accessfix-eaa-wcag-auditor-mcp-task",
        "height": 240,
        "width": 520
      },
      "id": "b1b2c3d4-0005-4000-8000-000000000005",
      "name": "Setup Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [220, 40]
    }
  ],
  "connections": {
    "When clicking Execute Workflow": {
      "main": [[{ "node": "Set Website to Audit", "type": "main", "index": 0 }]]
    },
    "Set Website to Audit": {
      "main": [[{ "node": "Run AccessFix WCAG 2.2 Auditor", "type": "main", "index": 0 }]]
    },
    "Run AccessFix WCAG 2.2 Auditor": {
      "main": [[{ "node": "Build Client Report Markdown", "type": "main", "index": 0 }]]
    }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "AccessFix" }, { "name": "WCAG" }, { "name": "Apify" }]
}
