n8n for WealthTech & RIA SaaS Vendors: 5 Automations for SEC, FINRA, Reg BI, ERISA, and FinCEN Compliance
n8n for WealthTech & RIA SaaS Vendors: 5 Automations for SEC, FINRA, Reg BI, ERISA, and FinCEN Compliance If your SaaS platform serves registered investment advisers, broker-dealers, wealth managers, or digital asset i
n8n for WealthTech & RIA SaaS Vendors: 5 Automations for SEC, FINRA, Reg BI, ERISA, and FinCEN Compliance
If your SaaS platform serves registered investment advisers, broker-dealers, wealth managers, or digital asset investment firms, your product sits inside one of the most heavily regulated technology stacks in financial services. A single FINRA examination finding can freeze your customer's operations; a Reg BI documentation gap can trigger SEC enforcement; an ERISA fiduciary breach allegation can produce concurrent DOL and SEC investigations. The compliance clock in WealthTech doesn't wait.
This guide shows five n8n automations โ with complete, importable JSON โ that WealthTech SaaS vendors use to manage SEC, FINRA, Reg BI, ERISA, and FinCEN compliance obligations for their platform customers.
Store: FlowKit โ n8n Automation Templates | Bundle ($97)
The WealthTech Regulatory Stack
| Regulation | Scope | Fastest Clock | Self-Hosting Risk |
|---|---|---|---|
| FINRA Rule 4511 / SEA ยง17(a) | Books and records โ broker-dealers | IMMEDIATE | Examiner access obligation โ records in cloud = discovery gap |
| SEC Investment Advisers Act 15 USC ยง80b-1 | RIA registration and material breach | 24 hours | Form ADV Part 2A ยง14 third-party disclosure requirement |
| Reg BI 17 CFR ยง240.15l-1 | Best interest obligation โ every recommendation | IMMEDIATE | ยง240.15l-1(a)(2)(ii) documentation gap if order data transits iPaaS |
| ERISA ยง404 / DOL ยง2550.404a-1 | Fiduciary duty โ plan assets | IMMEDIATE | ยง409 personal liability; plan asset data cannot be in third-party cloud |
| FinCEN 31 CFR ยง1023.320 | SAR filing โ broker-dealers and RIAs | 30 days | Tipping-off prohibition โ SAR workflow data must stay in perimeter |
| CFTC 7 USC ยง6a / 17 CFR ยง15.00 | Large trader reporting โ CPOs, CTAs | Next business day | Form 102 filing data must be auditable and tamper-proof |
The sharpest self-hosting argument in WealthTech: Reg BI ยง240.15l-1(a)(2)(ii) requires that every broker-dealer and RIA document the basis for each recommendation. Routing client order flow, suitability data, and account analytics through a cloud iPaaS like Zapier or Make creates an undocumented data processor in your Form ADV Part 2A ยง14 disclosure โ a direct SEC examination finding. Self-hosted n8n running in your customer's infrastructure means investment decision data never leaves their compliance perimeter.
Customer Tiers
| Tier | Description |
|---|---|
ENTERPRISE_RIA_PLATFORM |
Large registered investment adviser platforms ($1B+ AUM) โ full SEC/FINRA/ERISA exposure |
DIGITAL_WEALTH_MANAGEMENT_SAAS |
Robo-adviser and digital wealth platforms โ Reg BI + SEC + FINRA |
BROKER_DEALER_TECH_VENDOR |
SaaS companies serving FINRA-registered broker-dealers โ Rule 4511 + Reg BI |
CRYPTO_INVESTMENT_SAAS |
Digital asset investment platforms โ SEC (if securities), CFTC (if derivatives), FinCEN |
RETIREMENT_PLAN_SAAS |
401(k)/403(b)/IRA platforms โ ERISA fiduciary obligation + DOL |
ALTERNATIVE_INVESTMENT_SAAS |
Hedge fund / PE / VC platform vendors โ Form PF, CFTC CPO, SEC ยง13F |
WEALTHTECH_STARTUP |
Early-stage platforms entering regulated investment space |
Compliance flags: SEC_REGISTERED_INVESTMENT_ADVISER / FINRA_BROKER_DEALER / REG_BI_SUBJECT / ERISA_PLAN_ADMINISTRATOR / CFTC_CPO_CTA / FINCEN_AML_PROGRAM_REQUIRED / SOC2_REQUIRED
Workflow 1 โ WealthTech Customer Onboarding Drip
Tier-segmented onboarding sequence that injects the correct regulatory context (FINRA Rule 4511, Reg BI, ERISA, FinCEN SAR) based on customer tier and compliance flags. Day 0 email includes the fastest clock (FINRA books and records = IMMEDIATE) and the Reg BI self-hosting argument for platforms with REG_BI_SUBJECT flag.
{
"name": "WealthTech Customer Onboarding Drip",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 9 * * 1-5"
}
]
}
},
"id": "n1",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT customer_id, email, contact_name, tier, flags, product_name, webhook_url, customer_domain,\n flags_summary, days_since_signup\nFROM wealthtech_customers\nWHERE onboarding_status = 'active' AND days_since_signup <= 14"
},
"id": "n2",
"name": "Get Active Customers",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
200,
0
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false
},
"conditions": [
{
"leftValue": "={{ $json.days_since_signup }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "equals"
}
}
]
}
},
"id": "n3",
"name": "Day 0 Check",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
400,
0
]
},
{
"parameters": {
"to": "={{ $json.email }}",
"subject": "Welcome to {{ $json.product_name }} \u2014 Investment Adviser Compliance Clocks Are Live",
"html": "=<p>Hi {{ $json.contact_name }},</p><p>Your {{ $json.tier }} wealth management compliance engine is active. Regulatory clocks now live:</p><ul><li><strong>FINRA_BOOKS_RECORDS_FAILURE:</strong> IMMEDIATE \u2014 books and records deficiency under FINRA Rule 4511 / SEA \u00a717(a) \u2014 fastest clock in the investment advisory compliance stack; SEC or FINRA examiners can request records at any time</li><li><strong>SEC_MATERIAL_BREACH_INVESTMENT_ADVISER:</strong> 24 HOURS \u2014 material breach notification to affected clients under SEC Investment Advisers Act 15 USC \u00a780b-1 / Form ADV Part 2A \u00a714</li><li><strong>REG_BI_BEST_INTEREST_VIOLATION:</strong> IMMEDIATE \u2014 order routing or product recommendation failing best interest obligation under Reg BI 17 CFR \u00a7240.15l-1(a)(1) / SEC Release IA-5248</li><li><strong>ERISA_FIDUCIARY_BREACH_ALLEGED:</strong> IMMEDIATE \u2014 fiduciary breach allegation under ERISA \u00a7404(a)(1) / DOL Reg \u00a72550.404a-1 \u2014 plan asset misappropriation triggers concurrent DOL investigation</li><li><strong>FINCEN_SAR_SUSPICIOUS_ACTIVITY:</strong> 30 DAYS \u2014 Suspicious Activity Report under FinCEN 31 CFR \u00a71023.320 (broker-dealer) / \u00a71024.320 (RIA) \u2014 30-day filing clock from detection</li></ul><p>Flags on your account: {{ $json.flags_summary }}</p><p>Self-hosting note: Reg BI \u00a7240.15l-1(a)(2)(ii) requires documenting the basis for every best-interest recommendation \u2014 routing client order flow and suitability data through a cloud iPaaS creates a third-party data processor disclosure gap in your Form ADV Part 2A \u00a714 and a potential SEC examination finding. Self-hosted n8n keeps investment decision data inside your compliance perimeter.</p>"
},
"id": "n4",
"name": "Day 0 Email",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
600,
-100
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false
},
"conditions": [
{
"leftValue": "={{ $json.days_since_signup }}",
"rightValue": 3,
"operator": {
"type": "number",
"operation": "equals"
}
}
]
}
},
"id": "n5",
"name": "Day 3 Check",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
400,
200
]
},
{
"parameters": {
"to": "={{ $json.email }}",
"subject": "{{ $json.product_name }} \u2014 Connect Your SEC/FINRA/Reg BI Compliance Endpoints",
"html": "=<p>Hi {{ $json.contact_name }},</p><p>Connect your wealth management compliance data endpoints:</p><ul><li>FINRA Rule 4511 books and records API (immediate examiner access obligation)</li><li>Reg BI order routing API (17 CFR \u00a7240.15l-1(a)(2)(ii) best interest documentation)</li><li>SEC Form ADV amendment API (15 USC \u00a780b-4 / Advisers Act \u00a7204 annual review)</li><li>ERISA plan asset monitoring API (\u00a7404(a)(1) prudent investor obligation)</li><li>FinCEN SAR filing API (31 CFR \u00a71023.320 30-day clock from date of detection)</li><li>CFTC CPO/CTA registration API (7 USC \u00a71 / CFTC Reg \u00a74.5 / \u00a74.14 exemptions)</li></ul><p>Webhook for incident pipeline: {{ $json.webhook_url }}</p>"
},
"id": "n6",
"name": "Day 3 Email",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
600,
100
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false
},
"conditions": [
{
"leftValue": "={{ $json.days_since_signup }}",
"rightValue": 7,
"operator": {
"type": "number",
"operation": "equals"
}
}
]
}
},
"id": "n7",
"name": "Day 7 Check",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
400,
400
]
},
{
"parameters": {
"to": "={{ $json.email }}",
"subject": "{{ $json.product_name }} \u2014 Your WealthTech Incident Pipeline Is Live",
"html": "=<p>Hi {{ $json.contact_name }},</p><p>Your WealthTech incident pipeline is monitoring:</p><ul><li>FINRA_BOOKS_RECORDS_FAILURE \u2192 IMMEDIATE (fastest clock \u2014 examiner request)</li><li>SEC_MATERIAL_BREACH_INVESTMENT_ADVISER \u2192 24 HOURS (Form ADV \u00a714 notification)</li><li>REG_BI_BEST_INTEREST_VIOLATION \u2192 IMMEDIATE (17 CFR \u00a7240.15l-1 documentation gap)</li><li>ERISA_FIDUCIARY_BREACH_ALLEGED \u2192 IMMEDIATE (DOL \u00a7404/\u00a7408 concurrent investigation)</li><li>FINCEN_SAR_SUSPICIOUS_ACTIVITY \u2192 30 DAYS (31 CFR \u00a71023.320 / \u00a71024.320 filing clock)</li><li>CFTC_REPORTABLE_POSITION \u2192 next business day (7 USC \u00a76a large trader reporting)</li><li>SEC_FORM_ADV_ANNUAL_AMENDMENT \u2192 90-day annual review (Advisers Act \u00a7204)</li></ul><p>Compliance deadline tracker running daily at 08:00. Weekly KPI dashboard every Monday. Questions? Reply to this email.</p>"
},
"id": "n8",
"name": "Day 7 Email",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
600,
300
]
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Get Active Customers",
"type": "main",
"index": 0
}
]
]
},
"Get Active Customers": {
"main": [
[
{
"node": "Day 0 Check",
"type": "main",
"index": 0
}
]
]
},
"Day 0 Check": {
"main": [
[
{
"node": "Day 0 Email",
"type": "main",
"index": 0
}
],
[
{
"node": "Day 3 Check",
"type": "main",
"index": 0
}
]
]
},
"Day 3 Check": {
"main": [
[
{
"node": "Day 3 Email",
"type": "main",
"index": 0
}
],
[
{
"node": "Day 7 Check",
"type": "main",
"index": 0
}
]
]
},
"Day 7 Check": {
"main": [
[
{
"node": "Day 7 Email",
"type": "main",
"index": 0
}
],
[]
]
}
}
}
Workflow 2 โ SEC/FINRA/Reg BI Compliance API Health Monitor
Runs every 5 minutes. Monitors FINRA Gateway API, SEC EDGAR API, Reg BI order routing API, ERISA DOL API, and FinCEN BSA E-Filing API. Uses $getWorkflowStaticData to deduplicate alerts and only fire once per outage event. When an endpoint goes down, Slack alert includes the applicable regulation and the consequence clock.
{
"name": "WealthTech Regulatory Compliance API Health Monitor",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "*/5 * * * *"
}
]
}
},
"id": "m1",
"name": "Every 5 Minutes",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
0,
0
]
},
{
"parameters": {
"jsCode": "const endpoints = [\n { name: 'finra_gateway_api', url: 'https://api.finra.org/health', regulation: 'FINRA Rule 4511 books and records / SEA \u00a717(a)', deadline: 'IMMEDIATE \u2014 examiner request' },\n { name: 'sec_edgar_api', url: 'https://data.sec.gov/submissions/health', regulation: 'SEC Form ADV \u00a7204 / 15 USC \u00a780b-4 annual amendment', deadline: '90 days \u2014 annual ADV update' },\n { name: 'reg_bi_order_api', url: 'https://api.sec.gov/reg-bi/health', regulation: 'Reg BI 17 CFR \u00a7240.15l-1(a)(2)(ii) best interest documentation', deadline: 'IMMEDIATE \u2014 best interest obligation on every recommendation' },\n { name: 'erisa_dol_api', url: 'https://api.dol.gov/v1/health', regulation: 'ERISA \u00a7404(a)(1) / DOL Reg \u00a72550.404a-1 fiduciary obligation', deadline: 'IMMEDIATE \u2014 fiduciary breach allegation' },\n { name: 'fincen_bsa_api', url: 'https://bsaefiling.fincen.treas.gov/health', regulation: 'FinCEN 31 CFR \u00a71023.320 SAR filing (broker-dealer)', deadline: '30 days \u2014 SAR from date of detection' }\n];\nreturn endpoints.map(e => ({ json: e }));"
},
"id": "m2",
"name": "Define Endpoints",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
200,
0
]
},
{
"parameters": {
"url": "={{ $json.url }}",
"options": {
"timeout": 10000,
"response": {
"response": {
"responseFormat": "json"
}
}
}
},
"id": "m3",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
400,
0
],
"continueOnFail": true
},
{
"parameters": {
"jsCode": "const prev = $getWorkflowStaticData('global');\nconst key = $json.name || 'unknown';\nconst isDown = $json.error !== undefined || ($json.status && $json.status !== 'ok');\nconst wasDown = prev[key + '_down'] === true;\nprev[key + '_down'] = isDown;\n$setWorkflowStaticData('global', prev);\nif (isDown && !wasDown) {\n return [{ json: { ...$json, newly_down: true, alert: true } }];\n}\nreturn [];"
},
"id": "m4",
"name": "Dedup Down Events",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"channel": "#compliance-ops",
"text": "=:rotating_light: *{{ $json.name }}* is DOWN\nRegulation: {{ $json.regulation }}\nDeadline: {{ $json.deadline }}\nTime: {{ $now.toISO() }}"
},
"id": "m5",
"name": "Slack Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
800,
0
]
}
],
"connections": {
"Every 5 Minutes": {
"main": [
[
{
"node": "Define Endpoints",
"type": "main",
"index": 0
}
]
]
},
"Define Endpoints": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Dedup Down Events",
"type": "main",
"index": 0
}
]
]
},
"Dedup Down Events": {
"main": [
[
{
"node": "Slack Alert",
"type": "main",
"index": 0
}
]
]
}
}
}
Workflow 3 โ WealthTech Regulatory Deadline Tracker
Runs daily at 08:00 on weekdays. Pulls from a wealthtech_compliance_deadlines table and categorizes deadlines into OVERDUE / IMMEDIATE / CRITICAL / URGENT / WARNING tiers. Covers 12 deadline types:
| Deadline Type | Regulation | Clock |
|---|---|---|
FINRA_BOOKS_RECORDS_EXAMINATION |
FINRA Rule 4511 / SEA ยง17(a) | IMMEDIATE |
SEC_FORM_ADV_ANNUAL_AMENDMENT |
Advisers Act ยง204 / 17 CFR ยง275.204-1 | 90 days (annual) |
REG_BI_FORM_CRS_ANNUAL_REVIEW |
Reg BI 17 CFR ยง240.15l-1 / Form CRS | Annual |
ERISA_FORM_5500_ANNUAL |
ERISA ยง104(a) / DOL 29 CFR ยง2520.104a-5 | July 31 annual |
FINRA_ANNUAL_COMPLIANCE_REPORT |
FINRA Rule 3120 / 3130 | Annual |
FINCEN_SAR_FILING |
31 CFR ยง1023.320 (broker) / ยง1024.320 (RIA) | 30 days from detection |
CFTC_FORM_102_LARGE_TRADER |
CFTC 17 CFR ยง15.00 | Next business day |
SEC_FORM_PF_QUARTERLY |
SEC Form PF / Advisers Act ยง204(b) | 60 days after quarter |
FINRA_RULE_4370_BCP_ANNUAL |
FINRA Rule 4370 | Annual |
ERISA_PBGC_PREMIUM_ANNUAL |
PBGC ยง4007 | September annual |
SEC_13F_QUARTERLY |
SEA ยง13(f) / 17 CFR ยง240.13f-1 | 45 days after quarter |
SOC2_TYPE2_RENEWAL |
AICPA SOC 2 | Annual |
{
"name": "WealthTech SEC/FINRA/ERISA/CFTC Deadline Tracker",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 8 * * 1-5"
}
]
}
},
"id": "d1",
"name": "Daily 8AM Weekdays",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT obligation_type, description, due_date, owner_email, tier, regulation_cite,\n EXTRACT(DAY FROM (due_date - CURRENT_DATE)) AS days_remaining\nFROM wealthtech_compliance_deadlines\nWHERE due_date >= CURRENT_DATE AND due_date <= CURRENT_DATE + INTERVAL '180 days'\nORDER BY due_date ASC"
},
"id": "d2",
"name": "Get Deadlines",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
200,
0
]
},
{
"parameters": {
"jsCode": "const items = $input.all();\nconst categorized = items.map(item => {\n const d = item.json;\n const days = parseInt(d.days_remaining);\n let urgency, color;\n if (days < 0) { urgency = 'OVERDUE'; color = '#FF0000'; }\n else if (days <= 1) { urgency = 'IMMEDIATE'; color = '#FF0000'; }\n else if (days <= 7) { urgency = 'CRITICAL'; color = '#FF4500'; }\n else if (days <= 30) { urgency = 'URGENT'; color = '#FFA500'; }\n else if (days <= 90) { urgency = 'WARNING'; color = '#FFD700'; }\n else { urgency = 'NOTICE'; color = '#90EE90'; }\n return { json: { ...d, urgency, color, days_remaining: days } };\n});\nreturn categorized.filter(i => i.json.urgency !== 'NOTICE');"
},
"id": "d3",
"name": "Categorize Urgency",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
400,
0
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false
},
"conditions": [
{
"leftValue": "={{ $json.urgency }}",
"rightValue": "OVERDUE",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"leftValue": "={{ $json.urgency }}",
"rightValue": "IMMEDIATE",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"leftValue": "={{ $json.urgency }}",
"rightValue": "CRITICAL",
"operator": {
"type": "string",
"operation": "equals"
}
}
]
},
"combinator": "or"
},
"id": "d4",
"name": "Is Critical?",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"channel": "#regulatory-compliance",
"text": "=:fire: *{{ $json.urgency }}: {{ $json.obligation_type }}*\nDue: {{ $json.due_date }} ({{ $json.days_remaining }}d remaining)\nRegulation: {{ $json.regulation_cite }}\nOwner: {{ $json.owner_email }}\nTier: {{ $json.tier }}"
},
"id": "d5",
"name": "Slack Critical Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
800,
-100
]
},
{
"parameters": {
"to": "={{ $json.owner_email }}",
"subject": "=COMPLIANCE DEADLINE {{ $json.urgency }}: {{ $json.obligation_type }} \u2014 {{ $json.days_remaining }} days",
"html": "=<p>Compliance deadline {{ $json.urgency }}:</p><ul><li><strong>Obligation:</strong> {{ $json.obligation_type }}</li><li><strong>Due:</strong> {{ $json.due_date }} ({{ $json.days_remaining }} days remaining)</li><li><strong>Regulation:</strong> {{ $json.regulation_cite }}</li><li><strong>Tier:</strong> {{ $json.tier }}</li></ul>"
},
"id": "d6",
"name": "Gmail Owner Alert",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
800,
100
]
}
],
"connections": {
"Daily 8AM Weekdays": {
"main": [
[
{
"node": "Get Deadlines",
"type": "main",
"index": 0
}
]
]
},
"Get Deadlines": {
"main": [
[
{
"node": "Categorize Urgency",
"type": "main",
"index": 0
}
]
]
},
"Categorize Urgency": {
"main": [
[
{
"node": "Is Critical?",
"type": "main",
"index": 0
}
]
]
},
"Is Critical?": {
"main": [
[
{
"node": "Slack Critical Alert",
"type": "main",
"index": 0
}
],
[
{
"node": "Gmail Owner Alert",
"type": "main",
"index": 0
}
]
]
}
}
}
Workflow 4 โ WealthTech Regulatory Incident Response Pipeline
Webhook-triggered incident pipeline. Classifies 8 incident types with the correct regulatory clock, required action, and escalation path for each:
| Incident Type | Clock | Regulation |
|---|---|---|
FINRA_BOOKS_RECORDS_FAILURE |
IMMEDIATE | FINRA Rule 4511 / SEA ยง17(a) โ fastest clock |
SEC_MATERIAL_BREACH_INVESTMENT_ADVISER |
24 hours | Advisers Act 15 USC ยง80b-1 / Form ADV Part 2A ยง14 |
REG_BI_BEST_INTEREST_VIOLATION |
IMMEDIATE | Reg BI 17 CFR ยง240.15l-1(a)(1) |
ERISA_FIDUCIARY_BREACH_ALLEGED |
IMMEDIATE | ERISA ยง404(a)(1) / ยง409 personal liability |
PLAN_ASSET_MISAPPROPRIATION |
IMMEDIATE | ERISA ยง403(a) / DOL Prohibited Transactions ยง406 |
FINCEN_SAR_SUSPICIOUS_ACTIVITY |
30 days | FinCEN 31 CFR ยง1023.320 / ยง1024.320 |
CFTC_LARGE_TRADER_REPORTABLE |
Next business day | CFTC 17 CFR ยง15.00 |
DATA_BREACH_CLIENT_INVESTMENT_DATA |
72 hours | SEC Reg S-P / FINRA Rule 4370 |
The tipping-off prohibition in 31 CFR ยง1023.320(e) means SAR workflow data must never transit an untrusted third-party system โ the FinCEN SAR branch of this pipeline must run in your customer's own infrastructure.
{
"name": "WealthTech Regulatory Incident Response Pipeline",
"nodes": [
{
"parameters": {
"path": "wealthtech-incident",
"httpMethod": "POST",
"responseMode": "lastNode"
},
"id": "i1",
"name": "Incident Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
0,
0
]
},
{
"parameters": {
"jsCode": "const inc = $json;\nconst INCIDENT_CONFIG = {\n FINRA_BOOKS_RECORDS_FAILURE: {\n clock: 'IMMEDIATE',\n regulation: 'FINRA Rule 4511 / SEA \u00a717(a)',\n action: 'Preserve all records immediately. FINRA examiner access obligation. Engage compliance counsel \u2014 do not delete or modify any records.',\n escalation: 'CCO + General Counsel + FINRA liaison',\n severity: 'CRITICAL'\n },\n SEC_MATERIAL_BREACH_INVESTMENT_ADVISER: {\n clock: '24 HOURS',\n regulation: 'Investment Advisers Act 15 USC \u00a780b-1 / Form ADV Part 2A \u00a714',\n action: 'Notify affected clients within 24 hours. File Form ADV amendment if material change. Document basis for recommendation under Reg BI \u00a7240.15l-1(a)(2)(ii).',\n escalation: 'CCO + SEC Regional Director + Form ADV amendment team',\n severity: 'CRITICAL'\n },\n REG_BI_BEST_INTEREST_VIOLATION: {\n clock: 'IMMEDIATE',\n regulation: 'Reg BI 17 CFR \u00a7240.15l-1(a)(1) / SEC Release IA-5248',\n action: 'Document the basis for the recommendation immediately. Halt order routing pending review. Client must receive Form CRS disclosure. Best interest obligation applies to every recommendation.',\n escalation: 'CCO + Reg BI compliance officer + client notification team',\n severity: 'CRITICAL'\n },\n ERISA_FIDUCIARY_BREACH_ALLEGED: {\n clock: 'IMMEDIATE',\n regulation: 'ERISA \u00a7404(a)(1) / DOL Reg \u00a72550.404a-1 / ERISA \u00a7409',\n action: 'Preserve plan records immediately. Engage ERISA counsel. DOL concurrent investigation likely. Plan assets must not be co-mingled. ERISA \u00a7409 personal liability for fiduciaries.',\n escalation: 'CCO + DOL Employee Benefits Security Administration + ERISA counsel',\n severity: 'CRITICAL'\n },\n PLAN_ASSET_MISAPPROPRIATION: {\n clock: 'IMMEDIATE',\n regulation: 'ERISA \u00a7403(a) / \u00a7409 / DOL Prohibited Transactions \u00a7406',\n action: 'Freeze affected accounts immediately. Preserve all transaction records. Engage DOL and SEC simultaneously. ERISA \u00a7409 personal liability \u2014 bonding requirement under \u00a7412.',\n escalation: 'CEO + General Counsel + DOL EBSA + SEC Enforcement',\n severity: 'CRITICAL'\n },\n FINCEN_SAR_SUSPICIOUS_ACTIVITY: {\n clock: '30 DAYS',\n regulation: 'FinCEN 31 CFR \u00a71023.320 (broker-dealer) / \u00a71024.320 (RIA)',\n action: 'File SAR within 30 days of detection. Do not tip off subject \u2014 31 CFR \u00a71023.320(e) prohibits disclosure. Preserve transaction records 5 years per BSA \u00a71010.430.',\n escalation: 'BSA/AML Officer + FinCEN BSA E-Filing System + legal hold on records',\n severity: 'HIGH'\n },\n CFTC_LARGE_TRADER_REPORTABLE: {\n clock: 'NEXT BUSINESS DAY',\n regulation: 'CFTC 7 USC \u00a76a / 17 CFR \u00a715.00 large trader reporting',\n action: 'File CFTC Form 102 by next business day. Reportable position thresholds vary by commodity. Failure: up to $1M civil penalty per violation.',\n escalation: 'CCO + CFTC Form 102 filing system + trading compliance team',\n severity: 'HIGH'\n },\n DATA_BREACH_CLIENT_INVESTMENT_DATA: {\n clock: '72 HOURS',\n regulation: 'SEC Reg S-P 17 CFR \u00a7248.30 / FINRA Rule 4370 / state breach notification laws',\n action: 'Notify affected clients within 30 days per Reg S-P. File SEC incident report. FINRA Rule 4370 BCP activation. State breach notification laws may impose shorter 72h window.',\n escalation: 'CISO + CCO + SEC Office of Compliance + state regulators + client notification team',\n severity: 'HIGH'\n }\n};\nconst config = INCIDENT_CONFIG[inc.incident_type] || {\n clock: 'UNKNOWN',\n regulation: 'Unknown',\n action: 'Escalate to CCO immediately',\n escalation: 'CCO',\n severity: 'HIGH'\n};\nreturn [{ json: { ...inc, ...config, ts: new Date().toISOString() } }];"
},
"id": "i2",
"name": "Classify Incident",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
200,
0
]
},
{
"parameters": {
"channel": "#compliance-incidents",
"text": "=:rotating_light: *WEALTHTECH INCIDENT: {{ $json.incident_type }}*\n*Severity:* {{ $json.severity }}\n*Clock:* {{ $json.clock }}\n*Regulation:* {{ $json.regulation }}\n*Action:* {{ $json.action }}\n*Escalation:* {{ $json.escalation }}\n*Customer:* {{ $json.customer_id }}\n*Tier:* {{ $json.tier }}\n*Timestamp:* {{ $json.ts }}"
},
"id": "i3",
"name": "Slack Incident Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
400,
0
]
},
{
"parameters": {
"operation": "appendOrUpdate",
"documentId": {
"__rl": true,
"value": "wealthtech_incidents",
"mode": "name"
},
"sheetName": {
"__rl": true,
"value": "Incidents",
"mode": "name"
},
"columns": {
"mappingMode": "autoMapInputData"
}
},
"id": "i4",
"name": "Log to Sheets",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
400,
200
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify({ status: 'logged', incident_type: $json.incident_type, clock: $json.clock }) }}"
},
"id": "i5",
"name": "Respond OK",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
600,
0
]
}
],
"connections": {
"Incident Webhook": {
"main": [
[
{
"node": "Classify Incident",
"type": "main",
"index": 0
}
]
]
},
"Classify Incident": {
"main": [
[
{
"node": "Slack Incident Alert",
"type": "main",
"index": 0
}
],
[
{
"node": "Log to Sheets",
"type": "main",
"index": 0
}
]
]
},
"Slack Incident Alert": {
"main": [
[
{
"node": "Respond OK",
"type": "main",
"index": 0
}
]
]
}
}
}
Workflow 5 โ Weekly WealthTech Platform KPI Dashboard
Runs every Monday at 08:00. Pulls customer, MRR, and compliance data from two Postgres queries, merges them, calculates week-over-week MRR change using $getWorkflowStaticData, and emails a formatted HTML table to leadership with a one-line Slack summary. Segments MRR by tier (Enterprise RIA / Digital Wealth / Broker-Dealer / Crypto Investment).
{
"name": "Weekly WealthTech Platform KPI Dashboard",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 8 * * 1"
}
]
}
},
"id": "k1",
"name": "Monday 8AM",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT\n COUNT(DISTINCT customer_id) AS active_customers,\n SUM(CASE WHEN created_at >= NOW() - INTERVAL '7 days' THEN 1 ELSE 0 END) AS new_customers_7d,\n SUM(mrr_usd) AS total_mrr,\n SUM(CASE WHEN tier = 'ENTERPRISE_RIA_PLATFORM' THEN mrr_usd ELSE 0 END) AS enterprise_ria_mrr,\n SUM(CASE WHEN tier = 'DIGITAL_WEALTH_MANAGEMENT_SAAS' THEN mrr_usd ELSE 0 END) AS digital_wealth_mrr,\n SUM(CASE WHEN tier = 'BROKER_DEALER_TECH_VENDOR' THEN mrr_usd ELSE 0 END) AS broker_dealer_mrr,\n SUM(CASE WHEN tier = 'CRYPTO_INVESTMENT_SAAS' THEN mrr_usd ELSE 0 END) AS crypto_invest_mrr\nFROM wealthtech_customers\nWHERE status = 'active'"
},
"id": "k2",
"name": "Customer & MRR Metrics",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
200,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT\n COUNT(*) AS total_compliance_events_7d,\n SUM(CASE WHEN urgency = 'CRITICAL' OR urgency = 'IMMEDIATE' THEN 1 ELSE 0 END) AS critical_events,\n SUM(CASE WHEN obligation_type LIKE 'FINRA%' THEN 1 ELSE 0 END) AS finra_open,\n SUM(CASE WHEN obligation_type LIKE 'SEC%' OR obligation_type LIKE 'REG_BI%' THEN 1 ELSE 0 END) AS sec_reg_bi_open,\n SUM(CASE WHEN obligation_type LIKE 'ERISA%' THEN 1 ELSE 0 END) AS erisa_open,\n SUM(CASE WHEN obligation_type LIKE 'FINCEN%' OR obligation_type LIKE 'CFTC%' THEN 1 ELSE 0 END) AS fincen_cftc_open\nFROM wealthtech_compliance_deadlines\nWHERE due_date >= CURRENT_DATE AND due_date <= CURRENT_DATE + INTERVAL '30 days'"
},
"id": "k3",
"name": "Compliance Metrics",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
200,
200
]
},
{
"parameters": {
"mode": "combine",
"combinationMode": "mergeByPosition"
},
"id": "k4",
"name": "Merge Metrics",
"type": "n8n-nodes-base.merge",
"typeVersion": 3,
"position": [
400,
100
]
},
{
"parameters": {
"jsCode": "const prev = $getWorkflowStaticData('global');\nconst cur = $json;\nconst wowPct = (cur, prev) => prev && prev > 0 ? (((cur - prev) / prev) * 100).toFixed(1) + '%' : 'N/A';\nconst mrrWow = wowPct(cur.total_mrr, prev.total_mrr);\nprev.total_mrr = cur.total_mrr;\n$setWorkflowStaticData('global', prev);\nconst html = `<h2>WealthTech Platform KPI \u2014 ${new Date().toISOString().split('T')[0]}</h2><table border='1' cellpadding='6'><tr><th>Metric</th><th>Value</th><th>WoW</th></tr><tr><td>Active Customers</td><td>${cur.active_customers}</td><td>\u2014</td></tr><tr><td>New Customers (7d)</td><td>${cur.new_customers_7d}</td><td>\u2014</td></tr><tr><td>Total MRR</td><td>$${cur.total_mrr?.toLocaleString()}</td><td>${mrrWow}</td></tr><tr><td>Enterprise RIA MRR</td><td>$${cur.enterprise_ria_mrr?.toLocaleString()}</td><td>\u2014</td></tr><tr><td>Digital Wealth MRR</td><td>$${cur.digital_wealth_mrr?.toLocaleString()}</td><td>\u2014</td></tr><tr><td>Broker-Dealer MRR</td><td>$${cur.broker_dealer_mrr?.toLocaleString()}</td><td>\u2014</td></tr><tr><td>Crypto Investment MRR</td><td>$${cur.crypto_invest_mrr?.toLocaleString()}</td><td>\u2014</td></tr><tr><td>Compliance Events (7d)</td><td>${cur.total_compliance_events_7d}</td><td>\u2014</td></tr><tr><td>Critical Events</td><td>${cur.critical_events}</td><td>\u2014</td></tr><tr><td>FINRA Open Items</td><td>${cur.finra_open}</td><td>\u2014</td></tr><tr><td>SEC/Reg BI Open</td><td>${cur.sec_reg_bi_open}</td><td>\u2014</td></tr><tr><td>ERISA Open</td><td>${cur.erisa_open}</td><td>\u2014</td></tr><tr><td>FinCEN/CFTC Open</td><td>${cur.fincen_cftc_open}</td><td>\u2014</td></tr></table>`;\nreturn [{ json: { ...cur, html, mrrWow } }];"
},
"id": "k5",
"name": "Build KPI HTML",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
100
]
},
{
"parameters": {
"to": "[email protected]",
"bcc": "[email protected]",
"subject": "=WealthTech Weekly KPI \u2014 {{ $now.format('YYYY-MM-DD') }}",
"html": "={{ $json.html }}"
},
"id": "k6",
"name": "Email Leadership",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
800,
0
]
},
{
"parameters": {
"channel": "#go-to-market",
"text": "=Weekly WealthTech KPI: {{ $json.active_customers }} customers | MRR ${{ $json.total_mrr?.toLocaleString() }} ({{ $json.mrrWow }} WoW) | {{ $json.critical_events }} critical compliance events"
},
"id": "k7",
"name": "Slack Summary",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
800,
200
]
}
],
"connections": {
"Monday 8AM": {
"main": [
[
{
"node": "Customer & MRR Metrics",
"type": "main",
"index": 0
}
],
[
{
"node": "Compliance Metrics",
"type": "main",
"index": 1
}
]
]
},
"Customer & MRR Metrics": {
"main": [
[
{
"node": "Merge Metrics",
"type": "main",
"index": 0
}
]
]
},
"Compliance Metrics": {
"main": [
[
{
"node": "Merge Metrics",
"type": "main",
"index": 1
}
]
]
},
"Merge Metrics": {
"main": [
[
{
"node": "Build KPI HTML",
"type": "main",
"index": 0
}
]
]
},
"Build KPI HTML": {
"main": [
[
{
"node": "Email Leadership",
"type": "main",
"index": 0
}
],
[
{
"node": "Slack Summary",
"type": "main",
"index": 0
}
]
]
}
}
}
n8n vs Zapier / Make for WealthTech SaaS
| Factor | n8n (self-hosted) | Zapier / Make |
|---|---|---|
| FINRA Rule 4511 records access | โ In your infrastructure | โ Third-party cloud |
| Reg BI ยง240.15l-1(a)(2)(ii) documentation | โ Order data stays in perimeter | โ iPaaS = undisclosed processor |
| ERISA ยง404 plan asset data | โ Plan assets never leave VPC | โ ERISA ยง409 personal liability risk |
| FinCEN SAR tipping-off prohibition | โ SAR data stays in compliance perimeter | โ Cloud routing violates ยง1023.320(e) |
| Form ADV Part 2A ยง14 disclosure | โ No third-party processor to disclose | โ Must add to Form ADV or face exam finding |
| Enterprise contract compliance | โ No subprocessor DPA required | โ Enterprise clients require DPA review |
Get the Complete Workflow Templates
All five workflows โ with complete JSON, setup guides, and compliance notes โ are available in the FlowKit n8n Automation Templates store.
๐ Browse FlowKit Templates
๐ Complete Bundle โ $97 (all templates)
Self-hosted n8n. Full source code. One-time purchase, no subscription.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.