{
  "name": "Manage enterprise contract approvals and audit PDFs with HubSpot, Google Drive and Slack",
  "nodes": [
    {
      "id": "00f55833-40d4-4390-8cc0-d27c6700ceb5",
      "name": "Sticky_Approval",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        432
      ],
      "parameters": {
        "width": 420,
        "height": 358,
        "content": "## 🛡️ PHASE 1: Intake & Approval Gating\nTriggers from Salesforce. Fetches ERP/Legal data and determines the approval depth (up to 6 levels). Pauses for manual approval via Webhook Wait nodes before pr"
      }
    },
    {
      "id": "4e584a2e-ae69-42fc-811d-b2c851fcdd3d",
      "name": "Sticky_Assembly",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        416
      ],
      "parameters": {
        "width": 496,
        "height": 374,
        "content": "## 🏗️ PHASE 2: Dynamic Assembly & Compression\nCalculates 'Complexity Score' to set initial compression. Injects live pricing, inventory, and charts into the HTML. If the final PDF exceeds provider lim"
      }
    },
    {
      "id": "185fe3bb-a5e5-455d-9ca6-e00cf3f92878",
      "name": "Sticky_Audit",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        448
      ],
      "parameters": {
        "width": 460,
        "height": 326,
        "content": "## 🚀 PHASE 3: Delivery & Audit Archival\nDelivers via Gmail, SMS, or DocuSign. Monitors for bounces with SendGrid fallback. Finally, generates a 'Compliance Audit PDF' and logs all performance metrics "
      }
    },
    {
      "id": "ad68b94c-f796-4218-9556-08f1d4e696c8",
      "name": "Code: Approval Router",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        624
      ]
    },
    {
      "id": "52483753-4c2b-4b22-9ce4-1035a5f6cbaa",
      "name": "Code: Complexity Engine",
      "type": "n8n-nodes-base.code",
      "position": [
        416,
        624
      ]
    },
    {
      "id": "73533cce-f38e-4bf9-aa10-51a186203447",
      "name": "Code: Size Validator",
      "type": "n8n-nodes-base.code",
      "position": [
        752,
        624
      ]
    },
    {
      "id": "612bd288-4b18-4986-a38b-9badcf3c48d3",
      "name": "Code: Audit Metadata",
      "type": "n8n-nodes-base.code",
      "position": [
        960,
        624
      ]
    },
    {
      "id": "2e3126a9-06bc-49fb-b8cc-a886e2a2891e",
      "name": "Compress PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        576,
        624
      ]
    },
    {
      "id": "6fda11aa-7544-49cd-af2a-8564242e7e26",
      "name": "Sticky_Closure",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        448
      ],
      "parameters": {
        "width": 460,
        "height": 326,
        "content": "## 🏁 PHASE 4: Archival & Closure\nThis final stage uploads the signed contract and the generated Audit PDF to secure storage. It then updates the CRM status to 'Executed' and notifies the Finance/Legal"
      }
    },
    {
      "id": "f553e596-103a-406a-bd0b-b7d9cd1df8d0",
      "name": "Drive: Archive Audit PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1408,
        624
      ]
    },
    {
      "id": "0bb66ef7-8491-421f-9371-8d21d7b120b9",
      "name": "Slack: Finance Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        1712,
        624
      ]
    },
    {
      "id": "80115a65-bfe5-4af3-ae4b-3a38780290bc",
      "name": "Compress PDF1",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        1168,
        624
      ]
    },
    {
      "id": "f278a2ef-d3e9-448a-9bcc-2fdb3a6c0f0c",
      "name": "Update a deal",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1568,
        624
      ]
    },
    {
      "id": "e61d6ee3-02cf-4e01-b17f-a4a847b1cce6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -192
      ],
      "parameters": {
        "width": 416,
        "height": 624,
        "content": "## Enterprise CLM: AI-Optimized Assembly, Multi-Stage Approvals & Audit Governance\n\nEnd-to-end contract automation: Ingestion → Approval → Secure Archival.\n\n### ⚙️ Core Logic\n* **Approvals:** Dynamic "
      }
    }
  ],
  "connections": {
    "Compress PDF": {
      "main": [
        [
          {
            "node": "Code: Size Validator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compress PDF1": {
      "main": [
        [
          {
            "node": "Drive: Archive Audit PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a deal": {
      "main": [
        [
          {
            "node": "Slack: Finance Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Audit Metadata": {
      "main": [
        [
          {
            "node": "Compress PDF1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Size Validator": {
      "main": [
        [
          {
            "node": "Code: Audit Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Approval Router": {
      "main": [
        [
          {
            "node": "Code: Complexity Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Complexity Engine": {
      "main": [
        [
          {
            "node": "Compress PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Drive: Archive Audit PDF": {
      "main": [
        [
          {
            "node": "Update a deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}