Route new legal leads with Twilio SMS, email, and Slack alerts
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Twilio.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Format Lead Payload (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Assign Duty Attorney (Code): runs custom JavaScript code
- Prepare Lead SMS Message (Code): runs custom JavaScript code
- Send Confirmation Email (Send Email): sends an email over SMTP
- Email Duty Attorney Alert (Send Email): sends an email over SMTP
- Check SMS Compliance (Execute Sub-workflow): calls another n8n workflow
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Post Slack Alert to Attorney (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. 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.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Twilio
n8n-nodes-base.twilio - Send Email
n8n-nodes-base.emailSend - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives new contact form submissions via webhook, normalizes the lead data, assigns a duty attorney in round-robin order, and sends acknowledgments via Twilio SMS (through a compliance guardrail) and SMTP email, plus optional…