Log and thank legal referrals with webhooks, Google Sheets, and email digests
Ready for 3.0What this workflow does
This workflow has 22 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Referral Data (Code): runs custom JavaScript code
- Read Referral Ledger Data (Google Sheets): read
- If: checks a condition and branches into true / false
- Compute Referral Counts (Code): runs custom JavaScript code
- Append Referral To Ledger (Google Sheets): append
- Filter: keeps only the items that match a condition
- If: checks a condition and branches into true / false
- Aggregate: combines items into one
- Build Thank You Email (Code): runs custom JavaScript code
- Build Reminder Email Content (Code): runs custom JavaScript code
…plus 7 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 (10)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Google Sheets
n8n-nodes-base.googleSheets - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Send Email
n8n-nodes-base.emailSend - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter - Aggregate
n8n-nodes-base.aggregate
From the author
Quick Overview This workflow captures referral form submissions via a webhook, logs them to Google Sheets, sends compliant thank-you emails to referrers via a guardrail sub-workflow, and notifies your firm by email, then runs monthly to analyze the ledger and…