Dev.to Security 🔐 Cybersecurity 👁 1 📖 21 min read

n8n for Benefits & ERISA SaaS Vendors: 5 Automations for DOL Form 5500, PBGC, ERISA §404, and 408(b)(2) Compliance

If your SaaS platform touches benefit plan administration — 401(k) recordkeeping, pension admin, health benefit management, or third-party administration (TPA) — you are operating inside one of the most legally treachero

If your SaaS platform touches benefit plan administration — 401(k) recordkeeping, pension admin, health benefit management, or third-party administration (TPA) — you are operating inside one of the most legally treacherous compliance environments in the US.

ERISA fiduciaries are personally liable for plan losses under §409. A Form 5500 filing missed by one day costs $250. A prohibited transaction carries a 15% annual excise tax under IRC §4975 that compounds until corrected. A DOL investigation can reach back 6 years. And if your product touches group health plans, HIPAA creates a parallel obligation that runs on the same data.

Here are 5 production-ready n8n workflows your benefits SaaS platform should be running today.

Workflow 1: Customer Onboarding Drip with ERISA Tier + Compliance Flag Injection

Seven customer segments, each with distinct compliance obligations:

Tier Key Obligation
ENTERPRISE_BENEFIT_ADMIN_PLATFORM ERISA §404 fiduciary, PBGC, Form 5500
MID_MARKET_401K_RECORDKEEPER DOL EFAST2, participant fee disclosure §404(a)(5)
HEALTH_BENEFIT_MANAGEMENT_SAAS ERISA Title I + HIPAA dual obligation
PENSION_ADMINISTRATION_SAAS PBGC §4007 variable-rate premium, §412 minimum funding
TPA_THIRD_PARTY_ADMINISTRATOR ERISA §408(b)(2) fee disclosure to plan sponsors
ERISA_COMPLIANCE_CONSULTING_SAAS DOL voluntary correction programs (VCP, VFCP)
WELLBEING_BENEFIT_PLATFORM State mandate benefit laws (IL, MA, NJ, WA)

Day 0 email injects the specific compliance clock relevant to each tier. Day 3 sends integration documentation for DOL/PBGC API endpoints. Day 7 activates the incident pipeline with all 8 scenario types.

{
  "name": "ERISA Benefits SaaS \u2014 Customer Onboarding Drip",
  "nodes": [
    {
      "id": "w1n1",
      "name": "Webhook \u2014 New Customer",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "path": "erisa-new-customer",
        "responseMode": "responseNode"
      }
    },
    {
      "id": "w1n2",
      "name": "Respond OK",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        200,
        0
      ],
      "parameters": {
        "respondWith": "text",
        "responseBody": "OK"
      }
    },
    {
      "id": "w1n3",
      "name": "Set \u2014 Tier & Flags",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        400,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "name": "customer_tier",
              "value": "={{ $json.platform_type === 'enterprise_admin' ? 'ENTERPRISE_BENEFIT_ADMIN_PLATFORM' : $json.platform_type === 'recordkeeper' ? 'MID_MARKET_401K_RECORDKEEPER' : $json.platform_type === 'health' ? 'HEALTH_BENEFIT_MANAGEMENT_SAAS' : $json.platform_type === 'pension' ? 'PENSION_ADMINISTRATION_SAAS' : $json.platform_type === 'tpa' ? 'TPA_THIRD_PARTY_ADMINISTRATOR' : $json.platform_type === 'consulting' ? 'ERISA_COMPLIANCE_CONSULTING_SAAS' : 'WELLBEING_BENEFIT_PLATFORM' }}",
              "type": "string"
            },
            {
              "name": "flag_erisa_title1",
              "value": "={{ $json.erisa_title1_plan === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_pbgc",
              "value": "={{ $json.pbgc_insured === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_efast2",
              "value": "={{ $json.files_form_5500 === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_hipaa",
              "value": "={{ $json.group_health_plan === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_sox",
              "value": "={{ $json.public_company_sponsor === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_dol_audit",
              "value": "={{ $json.prior_dol_audit === true }}",
              "type": "boolean"
            },
            {
              "name": "flag_state_mandate",
              "value": "={{ $json.state_mandate_required === true }}",
              "type": "boolean"
            }
          ]
        }
      }
    },
    {
      "id": "w1n4",
      "name": "Gmail \u2014 Day 0 Welcome",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        600,
        0
      ],
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "subject": "Welcome to FlowKit \u2014 ERISA Compliance Setup & Key Deadlines",
        "emailType": "html",
        "message": "={{ '<h2>Welcome, ' + $json.company + '!</h2><p>Tier: <strong>' + $('Set \u2014 Tier & Flags').item.json.customer_tier + '</strong></p>' + ($('Set \u2014 Tier & Flags').item.json.flag_efast2 ? '<p><strong>DOL Form 5500 (ERISA \u00a7101(b)(1)):</strong> Due 7 months after plan year end (Jul 31 for Dec 31 plans). Late filing: $250/day, up to $150,000. Our deadline tracker fires 90/30/7 days out.</p>' : '') + ($('Set \u2014 Tier & Flags').item.json.flag_pbgc ? '<p><strong>PBGC Premiums (\u00a74007):</strong> Flat-rate + variable-rate premium. Variable rate = 5.2% \u00d7 (unfunded vested benefits). Both tied to Form 5500 due date. PBGC late fee: $1/participant/day.</p>' : '') + ($('Set \u2014 Tier & Flags').item.json.flag_erisa_title1 ? '<p><strong>ERISA \u00a7404 Fiduciary Duty:</strong> Prudent expert standard \u2014 every plan investment decision logged. Routing participant PII through unvetted SaaS creates \u00a7404(a)(1)(B) breach exposure.</p>' : '') + ($('Set \u2014 Tier & Flags').item.json.flag_hipaa ? '<p><strong>HIPAA Health Plan (\u00a7164.308):</strong> Group health plan data requires dual ERISA Title I + HIPAA technical safeguards. Single self-hosted n8n instance satisfies both perimeters.</p>' : '') + ($('Set \u2014 Tier & Flags').item.json.flag_sox ? '<p><strong>SOX \u00a7302/906 Controls:</strong> Benefit plan financials flow into 10-K certifications. Material misstatement in plan assets = SOX criminal liability.</p>' : '') + '<p>\u2014 FlowKit Automation Team | <a href=\\'https://stripeai.gumroad.com\\'>Full Template Library</a></p>' }}"
      }
    },
    {
      "id": "w1n5",
      "name": "Sheets \u2014 Log Onboarding",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4,
      "position": [
        800,
        0
      ],
      "parameters": {
        "operation": "append",
        "documentId": "YOUR_SHEET_ID",
        "sheetName": "erisa_customers",
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "customer_id": "={{ $json.customer_id }}",
            "company": "={{ $json.company }}",
            "email": "={{ $json.email }}",
            "tier": "={{ $('Set \u2014 Tier & Flags').item.json.customer_tier }}",
            "erisa_title1": "={{ $('Set \u2014 Tier & Flags').item.json.flag_erisa_title1 }}",
            "pbgc": "={{ $('Set \u2014 Tier & Flags').item.json.flag_pbgc }}",
            "efast2": "={{ $('Set \u2014 Tier & Flags').item.json.flag_efast2 }}",
            "hipaa": "={{ $('Set \u2014 Tier & Flags').item.json.flag_hipaa }}",
            "sox": "={{ $('Set \u2014 Tier & Flags').item.json.flag_sox }}",
            "dol_audit": "={{ $('Set \u2014 Tier & Flags').item.json.flag_dol_audit }}",
            "state_mandate": "={{ $('Set \u2014 Tier & Flags').item.json.flag_state_mandate }}",
            "onboarded_at": "={{ $now.toISO() }}"
          }
        }
      }
    },
    {
      "id": "w1n6",
      "name": "Wait \u2014 3 Days",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "position": [
        1000,
        0
      ],
      "parameters": {
        "unit": "days",
        "amount": 3
      }
    },
    {
      "id": "w1n7",
      "name": "Gmail \u2014 Day 3 Integration Guide",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        1200,
        0
      ],
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "subject": "Day 3: Configure DOL/PBGC API Health Monitoring",
        "emailType": "html",
        "message": "<h2>Day 3: Connect Your Plan Administration Endpoints</h2><p>Configure 5 endpoints in your n8n Health Monitor:<br/>\u2022 <code>form_5500_api</code> \u2014 DOL EFAST2 \u00a7101(b)(1) filing risk<br/>\u2022 <code>pbgc_reporting_api</code> \u2014 PBGC \u00a74007 premium payment<br/>\u2022 <code>plan_contribution_api</code> \u2014 ERISA \u00a7412 minimum funding obligation<br/>\u2022 <code>benefit_claim_api</code> \u2014 29 CFR \u00a72560.503-1 claims procedure clock<br/>\u2022 <code>participant_data_api</code> \u2014 ERISA \u00a7105 benefit statement obligation</p><p>Full setup guide: <a href='https://stripeai.gumroad.com'>stripeai.gumroad.com</a></p>"
      }
    },
    {
      "id": "w1n8",
      "name": "Wait \u2014 4 Days",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "position": [
        1400,
        0
      ],
      "parameters": {
        "unit": "days",
        "amount": 4
      }
    },
    {
      "id": "w1n9",
      "name": "Gmail \u2014 Day 7 Incident Response",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        1600,
        0
      ],
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "subject": "Day 7: ERISA Incident Pipelines Active \u2014 8 Scenario Types",
        "emailType": "html",
        "message": "<h2>Day 7: Incident Response Active</h2><p>8 pre-configured ERISA incident types:<br/>\u2022 Fiduciary breach alleged \u2014 <strong>immediate</strong> (ERISA \u00a7409 personal liability)<br/>\u2022 Plan asset misappropriation \u2014 <strong>immediate</strong> (DOL EBSA criminal referral)<br/>\u2022 DOL investigation notice \u2014 4h (ERISA \u00a7502(b) enforcement scope)<br/>\u2022 PBGC plan termination notice \u2014 24h (\u00a74041 involuntary termination risk)<br/>\u2022 Prohibited transaction detected \u2014 72h (ERISA \u00a7406 + IRC \u00a74975 10% excise tax)<br/>\u2022 ERISA/HIPAA PHI breach \u2014 60d (HIPAA \u00a7164.400 + fiduciary overlap)<br/>\u2022 DOL EFAST2 filing failure \u2014 72h ($250/day up to $150k)<br/>\u2022 Participant benefit denial appeal \u2014 60d (29 CFR \u00a72560.503-1 clock)</p>"
      }
    }
  ],
  "connections": {
    "Webhook \u2014 New Customer": {
      "main": [
        [
          {
            "node": "Respond OK",
            "type": "main",
            "index": 0
          },
          {
            "node": "Set \u2014 Tier & Flags",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set \u2014 Tier & Flags": {
      "main": [
        [
          {
            "node": "Gmail \u2014 Day 0 Welcome",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail \u2014 Day 0 Welcome": {
      "main": [
        [
          {
            "node": "Sheets \u2014 Log Onboarding",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sheets \u2014 Log Onboarding": {
      "main": [
        [
          {
            "node": "Wait \u2014 3 Days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait \u2014 3 Days": {
      "main": [
        [
          {
            "node": "Gmail \u2014 Day 3 Integration Guide",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail \u2014 Day 3 Integration Guide": {
      "main": [
        [
          {
            "node": "Wait \u2014 4 Days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait \u2014 4 Days": {
      "main": [
        [
          {
            "node": "Gmail \u2014 Day 7 Incident Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Workflow 2: DOL/PBGC/ERISA API Health Monitor (5-Minute Polling with UP→DOWN Dedup)

Five endpoints, each annotated with its ERISA exposure:

Endpoint Annotation
form_5500_api DOL EFAST2 §101(b)(1) — $250/day late filing up to $150k
pbgc_reporting_api PBGC §4007 — flat $101/participant + variable 5.2% × unfunded
plan_contribution_api ERISA §412 minimum funding — 10% excise tax on shortfall
benefit_claim_api 29 CFR §2560.503-1 — 45d initial claim / 60d appeal hard clock
participant_data_api ERISA §105 — annual benefit statement to DC plan participants

$getWorkflowStaticData('global') prevents duplicate alerts on sustained outages. Only the UP→DOWN transition fires the alert.

{
  "name": "ERISA Benefits SaaS \u2014 DOL/PBGC API Health Monitor",
  "nodes": [
    {
      "id": "w2n1",
      "name": "Every 5 Minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 5
            }
          ]
        }
      }
    },
    {
      "id": "w2n2",
      "name": "Check All Endpoints",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        200,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "={{ $json.endpoint_url }}",
        "timeout": 10000,
        "continueOnFail": true
      }
    },
    {
      "id": "w2n3",
      "name": "Evaluate Status",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        400,
        0
      ],
      "parameters": {
        "jsCode": "\nconst endpoints = [\n  { name: 'form_5500_api', url: 'https://your-domain/api/form5500/health', annotation: 'DOL EFAST2 \u00a7101(b)(1) \u2014 late filing $250/day up to $150k' },\n  { name: 'pbgc_reporting_api', url: 'https://your-domain/api/pbgc/health', annotation: 'PBGC \u00a74007 premium \u2014 flat $101/participant + variable 5.2% \u00d7 unfunded' },\n  { name: 'plan_contribution_api', url: 'https://your-domain/api/contributions/health', annotation: 'ERISA \u00a7412 minimum funding \u2014 excise tax 10% on funding shortfall' },\n  { name: 'benefit_claim_api', url: 'https://your-domain/api/claims/health', annotation: '29 CFR \u00a72560.503-1 \u2014 initial claim 45d/appeal 60d hard deadlines' },\n  { name: 'participant_data_api', url: 'https://your-domain/api/participants/health', annotation: 'ERISA \u00a7105 \u2014 annual benefit statement to defined contribution participants' }\n];\nconst prev = $getWorkflowStaticData('global');\nconst alerts = [];\nfor (const ep of endpoints) {\n  const isDown = $input.first().json.status >= 500 || $input.first().json.error;\n  const wasDown = prev[ep.name + '_down'] || false;\n  if (isDown && !wasDown) {\n    alerts.push({ endpoint: ep.name, annotation: ep.annotation, transition: 'UP\u2192DOWN' });\n    prev[ep.name + '_down'] = true;\n  } else if (!isDown && wasDown) {\n    prev[ep.name + '_down'] = false;\n  }\n}\nreturn alerts.map(a => ({ json: a }));\n"
      }
    },
    {
      "id": "w2n4",
      "name": "Slack \u2014 #erisa-ops Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        600,
        -80
      ],
      "parameters": {
        "channel": "#erisa-ops",
        "text": "={{ '\ud83d\udd34 ENDPOINT DOWN: ' + $json.endpoint + '\\nAnnotation: ' + $json.annotation + '\\nTransition: ' + $json.transition + '\\nTime: ' + $now.toISO() }}"
      }
    },
    {
      "id": "w2n5",
      "name": "Gmail \u2014 CCO + ERISA Counsel",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        600,
        80
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "subject": "={{ 'ERISA API DOWN: ' + $json.endpoint + ' \u2014 ' + $json.annotation }}",
        "emailType": "html",
        "message": "={{ '<p><strong>Endpoint:</strong> ' + $json.endpoint + '</p><p><strong>Compliance annotation:</strong> ' + $json.annotation + '</p><p><strong>Time:</strong> ' + $now.toISO() + '</p><p>Immediate investigation required \u2014 plan administration obligations may be impacted.</p>' }}"
      }
    }
  ],
  "connections": {
    "Every 5 Minutes": {
      "main": [
        [
          {
            "node": "Check All Endpoints",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check All Endpoints": {
      "main": [
        [
          {
            "node": "Evaluate Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate Status": {
      "main": [
        [
          {
            "node": "Slack \u2014 #erisa-ops Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Gmail \u2014 CCO + ERISA Counsel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Workflow 3: ERISA/DOL/PBGC Compliance Deadline Tracker (12 Types)

Running weekdays at 8 AM against your Postgres erisa_deadlines table:

Deadline Type Fastest Clock Penalty
DOL_FORM_5500_ANNUAL Jul 31 (Dec 31 plan year) $250/day, $150k cap
PBGC_FLAT_RATE_PREMIUM Same as Form 5500 $1/participant/day
PBGC_VARIABLE_RATE_PREMIUM Same as Form 5500 5.2% × unfunded/year
ERISA_SUMMARY_ANNUAL_REPORT 9 months after plan year ERISA §502(c)(1)
ERISA_SUMMARY_PLAN_DESCRIPTION_5YR Every 5 years (amended plan) §502(c)(1) $110/day
DOL_QDIA_NOTICE_ANNUAL 30 days before plan year ERISA §404(c)(5) safe harbor loss
ERISA_408B2_FEE_DISCLOSURE Before plan fiduciary retention §408(b)(2) exemption loss
DOL_PARTICIPANT_FEE_DISCLOSURE_ANNUAL Annually + quarterly §404(a)(5) fiduciary breach
SECURE_ACT_AUTO_ENROLLMENT_NOTICE Annual (SECURE 2.0 §101) Plan qualification risk
SOC2_TYPE2_RENEWAL Per audit schedule Plan sponsor contract
ISO27001_SURVEILLANCE Per certification Contract/RFP requirement
STATE_MANDATE_BENEFIT_ANNUAL Varies by state IL BIPA, MA, NJ, WA
{
  "name": "ERISA Benefits SaaS \u2014 Compliance Deadline Tracker",
  "nodes": [
    {
      "id": "w3n1",
      "name": "Weekdays 8AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 8 * * 1-5"
            }
          ]
        }
      }
    },
    {
      "id": "w3n2",
      "name": "Postgres \u2014 Query Deadlines",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2,
      "position": [
        200,
        0
      ],
      "parameters": {
        "operation": "executeQuery",
        "query": "\nSELECT deadline_type, plan_name, due_date, status,\n  EXTRACT(DAY FROM due_date - NOW()) AS days_remaining,\n  CASE\n    WHEN due_date < NOW() THEN 'OVERDUE'\n    WHEN due_date < NOW() + INTERVAL '7 days' THEN 'CRITICAL'\n    WHEN due_date < NOW() + INTERVAL '30 days' THEN 'URGENT'\n    WHEN due_date < NOW() + INTERVAL '90 days' THEN 'DUE_SOON'\n    ELSE 'OK'\n  END AS urgency\nFROM erisa_deadlines\nWHERE status NOT IN ('FILED', 'PAID', 'COMPLETED')\n  AND deadline_type IN (\n    'DOL_FORM_5500_ANNUAL',\n    'PBGC_FLAT_RATE_PREMIUM',\n    'PBGC_VARIABLE_RATE_PREMIUM',\n    'ERISA_SUMMARY_ANNUAL_REPORT',\n    'ERISA_SUMMARY_PLAN_DESCRIPTION_5YR',\n    'DOL_QDIA_NOTICE_ANNUAL',\n    'ERISA_408B2_FEE_DISCLOSURE',\n    'DOL_PARTICIPANT_FEE_DISCLOSURE_ANNUAL',\n    'SECURE_ACT_AUTO_ENROLLMENT_NOTICE',\n    'SOC2_TYPE2_RENEWAL',\n    'ISO27001_SURVEILLANCE',\n    'STATE_MANDATE_BENEFIT_ANNUAL'\n  )\nORDER BY due_date ASC\n"
      }
    },
    {
      "id": "w3n3",
      "name": "Filter \u2014 Actionable",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2,
      "position": [
        400,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.urgency }}",
              "rightValue": "OK",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              }
            }
          ]
        }
      }
    },
    {
      "id": "w3n4",
      "name": "Slack \u2014 Deadline Digest",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        600,
        -80
      ],
      "parameters": {
        "channel": "#erisa-compliance",
        "text": "={{ ($json.urgency === 'OVERDUE' ? '\ud83d\udea8' : $json.urgency === 'CRITICAL' ? '\ud83d\udd34' : $json.urgency === 'URGENT' ? '\ud83d\udfe0' : '\ud83d\udfe1') + ' [' + $json.urgency + '] ' + $json.deadline_type + ' \u2014 ' + $json.plan_name + ' \u2014 Due: ' + $json.due_date.substring(0,10) + ' (' + $json.days_remaining + ' days)' }}"
      }
    },
    {
      "id": "w3n5",
      "name": "Gmail \u2014 CCO + CFO Alert",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        600,
        80
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "subject": "={{ '[' + $json.urgency + '] ERISA Deadline: ' + $json.deadline_type + ' \u2014 ' + $json.plan_name }}",
        "emailType": "html",
        "message": "={{ '<p><strong>Deadline type:</strong> ' + $json.deadline_type + '</p><p><strong>Plan:</strong> ' + $json.plan_name + '</p><p><strong>Due:</strong> ' + $json.due_date.substring(0,10) + ' (' + $json.days_remaining + ' days)</p><p><strong>Status:</strong> ' + $json.urgency + '</p>' }}"
      }
    }
  ],
  "connections": {
    "Weekdays 8AM": {
      "main": [
        [
          {
            "node": "Postgres \u2014 Query Deadlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres \u2014 Query Deadlines": {
      "main": [
        [
          {
            "node": "Filter \u2014 Actionable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter \u2014 Actionable": {
      "main": [
        [
          {
            "node": "Slack \u2014 Deadline Digest",
            "type": "main",
            "index": 0
          },
          {
            "node": "Gmail \u2014 CCO + CFO Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Workflow 4: ERISA Incident & DOL Investigation Pipeline (8 Types)

Incident Type SLA Legal Exposure
ERISA_FIDUCIARY_BREACH_ALLEGED Immediate §409 personal liability for plan losses
PLAN_ASSET_MISAPPROPRIATION Immediate DOL EBSA criminal referral + FBI Financial Crimes
DOL_INVESTIGATION_NOTICE 4 hours ERISA §502(b) — 6-year lookback
PBGC_PLAN_TERMINATION_NOTICE 24 hours §4062 employer liability for unfunded vested benefits
PROHIBITED_TRANSACTION_DETECTED 72 hours IRC §4975 — 15%/yr excise tax until corrected
ERISA_HIPAA_PHI_BREACH 60 days HIPAA §164.400 + ERISA fiduciary overlap
DOL_EFAST2_FILING_FAILURE 72 hours $250/day ERISA + $250/day IRC §6652(e)
PARTICIPANT_BENEFIT_DENIAL_APPEAL 60 days §502(a)(1)(B) suit without administrative exhaustion

The ERISA_FIDUCIARY_BREACH_ALLEGED and PLAN_ASSET_MISAPPROPRIATION paths trigger immediately — these are the two scenarios that carry personal criminal and civil liability for plan fiduciaries. The switch node routes each incident type to a purpose-built response action.

{
  "name": "ERISA Benefits SaaS \u2014 Incident & DOL Investigation Pipeline",
  "nodes": [
    {
      "id": "w4n1",
      "name": "Webhook \u2014 Incident Report",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "path": "erisa-incident",
        "httpMethod": "POST",
        "responseMode": "responseNode"
      }
    },
    {
      "id": "w4n2",
      "name": "Respond 202",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        200,
        0
      ],
      "parameters": {
        "respondWith": "text",
        "responseBody": "Accepted"
      }
    },
    {
      "id": "w4n3",
      "name": "Route by Incident Type",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        400,
        0
      ],
      "parameters": {
        "mode": "rules",
        "rules": {
          "values": [
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "ERISA_FIDUCIARY_BREACH_ALLEGED",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "FIDUCIARY_BREACH"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "PLAN_ASSET_MISAPPROPRIATION",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "ASSET_MISAPPROPRIATION"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "DOL_INVESTIGATION_NOTICE",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "DOL_INVESTIGATION"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "PBGC_PLAN_TERMINATION_NOTICE",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "PBGC_TERMINATION"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "PROHIBITED_TRANSACTION_DETECTED",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "PROHIBITED_TRANSACTION"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "ERISA_HIPAA_PHI_BREACH",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "HIPAA_PHI_BREACH"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "DOL_EFAST2_FILING_FAILURE",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "EFAST2_FAILURE"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.incident_type }}",
                    "rightValue": "PARTICIPANT_BENEFIT_DENIAL_APPEAL",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              },
              "renameOutput": true,
              "outputKey": "BENEFIT_APPEAL"
            }
          ]
        }
      }
    },
    {
      "id": "w4n4",
      "name": "Slack \u2014 IMMEDIATE (Fiduciary Breach)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        700,
        -350
      ],
      "parameters": {
        "channel": "#erisa-critical",
        "text": "\ud83d\udea8 IMMEDIATE: ERISA_FIDUCIARY_BREACH_ALLEGED\n\nERISA \u00a7409 personal liability \u2014 breaching fiduciary is personally liable for plan losses. DOJ/FBI referral risk if asset diversion involved.\n\nAction: Preserve all records, engage ERISA counsel, notify plan sponsor board within 1 hour.\n\nSelf-hosting note: fiduciary breach investigation records must remain in attorney-client privileged environment \u2014 not cloud SaaS."
      }
    },
    {
      "id": "w4n5",
      "name": "Slack \u2014 IMMEDIATE (Asset Misappropriation)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        700,
        -250
      ],
      "parameters": {
        "channel": "#erisa-critical",
        "text": "\ud83d\udea8 IMMEDIATE: PLAN_ASSET_MISAPPROPRIATION\n\nDOL EBSA criminal referral risk. ERISA \u00a7412 bonding requirement may be implicated. FBI Financial Crimes unit may open parallel investigation.\n\nAction: Lock affected accounts, notify fidelity bond carrier, engage ERISA counsel immediately."
      }
    },
    {
      "id": "w4n6",
      "name": "Gmail \u2014 DOL Investigation (4h SLA)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        700,
        -150
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "subject": "[4h SLA] DOL_INVESTIGATION_NOTICE \u2014 ERISA \u00a7502(b) Enforcement",
        "emailType": "html",
        "message": "<p><strong>DOL investigation notice received.</strong></p><p>ERISA \u00a7502(b) enforcement scope: DOL Employee Benefits Security Administration (EBSA) investigates fiduciary violations, prohibited transactions, ERISA \u00a71001 criminal violations.</p><p>4-hour SLA to acknowledge and preserve records. Voluntary compliance response reduces civil penalty exposure under ERISA \u00a7502(l).</p><p>Incident data: {{ JSON.stringify($json) }}</p>"
      }
    },
    {
      "id": "w4n7",
      "name": "Slack \u2014 PBGC Termination (24h)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        700,
        -50
      ],
      "parameters": {
        "channel": "#erisa-legal",
        "text": "\u26a0\ufe0f 24h: PBGC_PLAN_TERMINATION_NOTICE\n\nPBGC \u00a74041 involuntary plan termination initiated. Insufficient funding triggers PBGC trusteeship. Unfunded vested benefit liability becomes PBGC claim \u2014 employer liable under ERISA \u00a74062.\n\nAction: Actuarial assessment + legal counsel within 24 hours."
      }
    },
    {
      "id": "w4n8",
      "name": "Slack \u2014 Prohibited Transaction (72h)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        700,
        50
      ],
      "parameters": {
        "channel": "#erisa-compliance",
        "text": "\ud83d\udd34 72h: PROHIBITED_TRANSACTION_DETECTED\n\nERISA \u00a7406 prohibited transaction. IRC \u00a74975 excise tax: 15% of transaction amount per year until corrected; 100% if not corrected. DOL voluntary correction available via VFCP (closes $406 liability).\n\nAction: Reverse transaction, file VFCP with DOL within 72 hours."
      }
    },
    {
      "id": "w4n9",
      "name": "Gmail \u2014 HIPAA PHI Breach (60d)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        700,
        150
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "subject": "[60d SLA] ERISA_HIPAA_PHI_BREACH \u2014 Dual ERISA/HIPAA Obligation",
        "emailType": "html",
        "message": "<p>Group health plan PHI breach triggers dual obligation:</p><ul><li><strong>HIPAA \u00a7164.400:</strong> 60-day breach notification to HHS + affected participants</li><li><strong>ERISA Title I fiduciary:</strong> Plan sponsor board must be notified \u2014 PHI is plan asset under ERISA</li></ul><p>Incident data: {{ JSON.stringify($json) }}</p>"
      }
    },
    {
      "id": "w4n10",
      "name": "Gmail \u2014 EFAST2 Failure (72h)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        700,
        250
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "subject": "[72h] DOL_EFAST2_FILING_FAILURE \u2014 $250/day Penalty Clock Running",
        "emailType": "html",
        "message": "<p><strong>EFAST2 Form 5500 filing failure detected.</strong></p><p>DOL penalty: $250/day, capped at $150,000 per plan per year (ERISA \u00a7502(c)(2)). IRS parallel penalty: $250/day up to $150,000 (IRC \u00a76652(e)).</p><p>72-hour action: (1) Identify filing failure root cause, (2) Submit via EFAST2 immediately, (3) If late, file for penalty abatement via DOL Delinquent Filer Voluntary Compliance (DFVC) program \u2014 reduces penalty to $10/day cap $2k per plan.</p>"
      }
    },
    {
      "id": "w4n11",
      "name": "Slack \u2014 Benefit Appeal (60d)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        700,
        350
      ],
      "parameters": {
        "channel": "#erisa-claims",
        "text": "\u23f1\ufe0f 60d: PARTICIPANT_BENEFIT_DENIAL_APPEAL\n\n29 CFR \u00a72560.503-1 full and fair review. Pension plan: 60-day clock. Health plan: 60-day expedited appeal available. Missing deadline = deemed exhaustion \u2014 participant may sue under ERISA \u00a7502(a)(1)(B) without further administrative steps.\n\nAction: Route to benefits counsel, document denial reason, clock starts now."
      }
    }
  ],
  "connections": {
    "Webhook \u2014 Incident Report": {
      "main": [
        [
          {
            "node": "Respond 202",
            "type": "main",
            "index": 0
          },
          {
            "node": "Route by Incident Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Incident Type": {
      "main": [
        [
          {
            "node": "Slack \u2014 IMMEDIATE (Fiduciary Breach)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Slack \u2014 IMMEDIATE (Asset Misappropriation)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gmail \u2014 DOL Investigation (4h SLA)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Slack \u2014 PBGC Termination (24h)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Slack \u2014 Prohibited Transaction (72h)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gmail \u2014 HIPAA PHI Breach (60d)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gmail \u2014 EFAST2 Failure (72h)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Slack \u2014 Benefit Appeal (60d)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Workflow 5: Weekly ERISA KPI Dashboard (CEO + CFO, BCC ERISA Counsel)

Monday morning Postgres rollup covering 8 metrics: active plan count, total AUM, fiduciary incidents (7d), open DOL investigations, Form 5500 deadlines due in 30 days, overdue deadlines, open benefit appeals, and prohibited transactions detected (7d). CEO/CFO subject line flags [DOL OPEN] or [OVERDUE] when there is actionable urgency.

ERISA counsel receives BCC on every weekly digest — their visibility into the metrics satisfies the plan sponsor's fiduciary oversight documentation requirement.

{
  "name": "ERISA Benefits SaaS \u2014 Weekly KPI Dashboard",
  "nodes": [
    {
      "id": "w5n1",
      "name": "Monday 8AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 8 * * 1"
            }
          ]
        }
      }
    },
    {
      "id": "w5n2",
      "name": "Postgres \u2014 ERISA KPIs",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2,
      "position": [
        200,
        0
      ],
      "parameters": {
        "operation": "executeQuery",
        "query": "\nSELECT\n  (SELECT COUNT(*) FROM erisa_plans WHERE status = 'ACTIVE') AS active_plans,\n  (SELECT SUM(plan_assets_usd) FROM erisa_plans WHERE status = 'ACTIVE') AS total_aum_usd,\n  (SELECT COUNT(*) FROM erisa_incidents WHERE created_at >= NOW() - INTERVAL '7 days' AND incident_type = 'ERISA_FIDUCIARY_BREACH_ALLEGED') AS fiduciary_incidents_7d,\n  (SELECT COUNT(*) FROM erisa_incidents WHERE status = 'OPEN' AND incident_type = 'DOL_INVESTIGATION_NOTICE') AS open_dol_investigations,\n  (SELECT COUNT(*) FROM erisa_deadlines WHERE status NOT IN ('FILED','PAID','COMPLETED') AND due_date < NOW() + INTERVAL '30 days' AND deadline_type = 'DOL_FORM_5500_ANNUAL') AS form_5500_due_30d,\n  (SELECT COUNT(*) FROM erisa_deadlines WHERE status NOT IN ('FILED','PAID','COMPLETED') AND due_date < NOW()) AS overdue_deadlines,\n  (SELECT COUNT(*) FROM erisa_claims WHERE status = 'APPEAL_OPEN') AS open_benefit_appeals,\n  (SELECT COUNT(*) FROM erisa_incidents WHERE created_at >= NOW() - INTERVAL '7 days' AND incident_type = 'PROHIBITED_TRANSACTION_DETECTED') AS prohibited_transactions_7d\n"
      }
    },
    {
      "id": "w5n3",
      "name": "Format KPI Report",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        400,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "name": "report_html",
              "value": "={{ '<h2>Weekly ERISA KPI \u2014 ' + $now.toFormat('MMM d, yyyy') + '</h2>' + '<table border=\"1\" cellpadding=\"6\"><tr><th>Metric</th><th>Value</th></tr>' + '<tr><td>Active Plans</td><td>' + $json.active_plans + '</td></tr>' + '<tr><td>Total AUM</td><td>$' + Number($json.total_aum_usd || 0).toLocaleString() + '</td></tr>' + '<tr><td>Fiduciary Incidents (7d)</td><td style=\"color:' + ($json.fiduciary_incidents_7d > 0 ? 'red' : 'green') + '\">' + $json.fiduciary_incidents_7d + '</td></tr>' + '<tr><td>Open DOL Investigations</td><td style=\"color:' + ($json.open_dol_investigations > 0 ? 'red' : 'green') + '\">' + $json.open_dol_investigations + '</td></tr>' + '<tr><td>Form 5500 Due in 30d</td><td style=\"color:' + ($json.form_5500_due_30d > 0 ? 'orange' : 'green') + '\">' + $json.form_5500_due_30d + '</td></tr>' + '<tr><td>Overdue Deadlines</td><td style=\"color:' + ($json.overdue_deadlines > 0 ? 'red' : 'green') + '\">' + $json.overdue_deadlines + '</td></tr>' + '<tr><td>Open Benefit Appeals</td><td>' + $json.open_benefit_appeals + '</td></tr>' + '<tr><td>Prohibited Transactions (7d)</td><td style=\"color:' + ($json.prohibited_transactions_7d > 0 ? 'red' : 'green') + '\">' + $json.prohibited_transactions_7d + '</td></tr>' + '</table>' }}",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "w5n4",
      "name": "Gmail \u2014 CEO + CFO (BCC ERISA Counsel)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        600,
        0
      ],
      "parameters": {
        "sendTo": "[email protected]",
        "cc": "[email protected]",
        "bcc": "[email protected]",
        "subject": "={{ 'Weekly ERISA KPI \u2014 ' + ($json.open_dol_investigations > 0 ? '[DOL OPEN] ' : '') + ($json.overdue_deadlines > 0 ? '[OVERDUE] ' : '') + $now.toFormat('MMM d') }}",
        "emailType": "html",
        "message": "={{ $json.report_html }}"
      }
    }
  ],
  "connections": {
    "Monday 8AM": {
      "main": [
        [
          {
            "node": "Postgres \u2014 ERISA KPIs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres \u2014 ERISA KPIs": {
      "main": [
        [
          {
            "node": "Format KPI Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format KPI Report": {
      "main": [
        [
          {
            "node": "Gmail \u2014 CEO + CFO (BCC ERISA Counsel)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Why self-hosted n8n for ERISA benefit plan data?

Risk Self-hosting argument
ERISA §404 fiduciary duty Routing plan participant PII through Zapier/Make creates §404(a)(1)(B) prudent expert standard exposure — routing unvetted cloud processors into the fiduciary decision chain
PBGC variable-rate premium Premium calculation requires plan asset valuation data — in cloud iPaaS = uncontrolled PBGC audit risk
DOL EFAST2 credentials Plan-specific access credentials shared through vendor cloud = unauthorized access exposure under ERISA §502(l) civil penalty
HIPAA group health plan Dual ERISA Title I + HIPAA §164.308 technical safeguards obligation — single perimeter in self-hosted n8n satisfies both simultaneously
SOC 2 CC9.2 Plan sponsor contract typically requires full subprocessor disclosure; self-hosted n8n = zero subprocessor chain for benefit administration data

All 5 workflows are available as production-ready templates in the FlowKit n8n Automation Template Library — import, configure your Postgres connection, swap in your Gmail credentials, and deploy.

Questions or edge cases? Drop a comment below.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.