{
  "name": "Secure and classify legal documents with OpenAI, Airtable and HTML to PDF",
  "nodes": [
    {
      "id": "8bd13260-d29d-4770-9643-def0ca945129",
      "name": "Sticky_Intake_AI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        1904
      ],
      "parameters": {
        "width": 450,
        "height": 408,
        "content": "## 🔍 PHASE 1 & 2: Intake & AI Analysis\nMonitors multi-source triggers. Performs SHA-256 hashing for deduplication. The AI Engine (OpenAI) classifies the document, scores risk (1-100), and identifies j"
      }
    },
    {
      "id": "ba310095-7113-4d0b-ab26-5c9e0dd32fe2",
      "name": "Sticky_Security_Enforcement",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        1824
      ],
      "parameters": {
        "width": 582,
        "height": 568,
        "content": "## 🔐 PHASE 3 & 4: Dynamic Security (HTML to PDF)\nTranslates Airtable Business Rules into encryption. \n- **Tier A:** AES-256 + Print/Copy Blocks (Trade Secrets)\n- **Tier B:** AES-128 + Dynamic Watermar"
      }
    },
    {
      "id": "4906534a-e335-4a18-86ee-2a87f08c85e5",
      "name": "Sticky_Distribution_Lifecycle",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2816,
        1904
      ],
      "parameters": {
        "width": 480,
        "height": 584,
        "content": "## 🏁 PHASE 5 & 6: Distribution & Lifecycle\nPassed docs sync to HubSpot and Dropbox. Failed docs go to Quarantine. A Code node calculates retention dates and sets Google Calendar reminders 90/60/30 day"
      }
    },
    {
      "id": "db9ec6f2-06bb-4d3c-b6c5-10176bb403dc",
      "name": "Trigger: Multi-Source Intake",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1808,
        2128
      ]
    },
    {
      "id": "93fa5426-ff04-4510-b986-7ac7550a27e7",
      "name": "AI Analysis & Fingerprinting",
      "type": "n8n-nodes-base.code",
      "position": [
        2048,
        2128
      ]
    },
    {
      "id": "b612f8f9-fe97-4650-904b-2ee5fc5e3229",
      "name": "Airtable: Fetch Rules",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2224,
        2128
      ]
    },
    {
      "id": "20d73ed0-1431-4512-a17b-75ba39a0dd16",
      "name": "Switch: Security Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        2384,
        2160
      ]
    },
    {
      "id": "be0f9962-a879-40e7-bbda-8ad5d5a7d257",
      "name": "Code: Calculate Retention",
      "type": "n8n-nodes-base.code",
      "position": [
        2928,
        2128
      ]
    },
    {
      "id": "d3da9d3e-ada4-44cd-8a39-2a086526d80e",
      "name": "Google Calendar: Reminder",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        3120,
        2064
      ]
    },
    {
      "id": "19feef5b-dfcc-4fad-94f7-1a3a3d899b00",
      "name": "Lock PDF with password",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        2640,
        2048
      ]
    },
    {
      "id": "d0f47c1b-98e9-4672-ad83-ab884e921cf9",
      "name": "Lock PDF with password1",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        2672,
        2240
      ]
    },
    {
      "id": "2bfc6ae4-4633-4db8-a98a-f74ffed2b740",
      "name": "Create or update a contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        3120,
        2320
      ]
    },
    {
      "id": "15c4f47b-7b65-4a3b-b223-3fbaca72bb60",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        1200
      ],
      "parameters": {
        "width": 416,
        "height": 608,
        "content": "## ⚖️ Enterprise Legal Vault\n\nAutomated DMS for secure document lifecycle management across GDPR/CCPA.\n\n### ⚙️ Core Logic\n* **Security:** Tiered AES encryption via **HTML to PDF (Lock)**.\n* **Intellig"
      }
    }
  ],
  "connections": {
    "Airtable: Fetch Rules": {
      "main": [
        [
          {
            "node": "Switch: Security Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lock PDF with password": {
      "main": [
        [
          {
            "node": "Code: Calculate Retention",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lock PDF with password1": {
      "main": [
        [
          {
            "node": "Code: Calculate Retention",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch: Security Router": {
      "main": [
        [
          {
            "node": "Lock PDF with password",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Lock PDF with password1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Calculate Retention": {
      "main": [
        [
          {
            "node": "Google Calendar: Reminder",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create or update a contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analysis & Fingerprinting": {
      "main": [
        [
          {
            "node": "Airtable: Fetch Rules",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: Multi-Source Intake": {
      "main": [
        [
          {
            "node": "AI Analysis & Fingerprinting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}