Send regulatory incident emails from webhook payloads and Gotenberg PDF reports
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Config Parameters (Edit Fields (Set)): sets 10 fields: config_webhook_secret, config_batch_size, config_wait_seconds…
- If: checks a condition and branches into true / false
- Parse and Validate Notification Data (Code): runs custom JavaScript code
- Send Unauthorized Response (Respond to Webhook): sends the response back to the webhook caller
- Check Notification File Type (If): checks a condition and branches into true / false
- Extract CSV Recipients (Extract from File): extracts data from a file
- Extract Excel Recipients (Extract from File): extracts data from a file (xlsx)
- Validate and Deduplicate Emails (Code): runs custom JavaScript code
- Send Accepted Response (Respond to Webhook): sends the response back to the webhook caller
- Batch Process Recipients (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 9 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - Extract from File
n8n-nodes-base.extractFromFile - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Send Email
n8n-nodes-base.emailSend - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives a regulatory notification request via webhook, validates a CSV/XLSX recipient file, sends personalized notification emails in throttled batches, then generates a branded PDF delivery report using Gotenberg and emails the…