Create replay-safe client report Gmail drafts with webhooks and Data Tables
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate Client Report Intake Token (Code): runs custom JavaScript code
- Client Report Intake Authorized? (If): checks a condition and branches into true / false
- Normalize Client Report Batch (Code): runs custom JavaScript code
- Build Client Report Unauthorized Response (Code): runs custom JavaScript code
- Valid Reports Present? (If): checks a condition and branches into true / false
- Respond Client Report Batch (Respond to Webhook): sends the response back to the webhook caller
- Expand Valid Report Lookups (Code): runs custom JavaScript code
- Build Client Report Batch Response (Code): runs custom JavaScript code
- Find Existing Report Rows (Data table): get (row)
- Resolve Report Scopes (Code): runs custom JavaScript code
…plus 10 more steps. See the full node list below.
Services it uses
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 (6)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Gmail
n8n-nodes-base.gmail - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview Validate a multi-client report batch, render deterministic tenant-branded HTML, and create replay-suppressed Gmail drafts without sending them. How it works 1. Receives one authenticated webhook batch of one to 20 client reports from your…