Automation library · Lead generation

Route new legal leads with Twilio SMS and Slack

Started by another system calling it, and works across Email and Twilio. 15 steps, 3 branches: a working afternoon to understand properly.

Medium

15 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Logic 10Service 4

The steps in the order they run, from what starts it.

  1. 1When New Lead Form SubmittedWebhookStarts it
  2. 2Format Lead PayloadCodeLogic
  3. 3If Lead Is ValidIfLogic
  4. 4Assign Duty AttorneyCodeLogic
  5. 5Skip Missing Contact InfoNo OpLogic
  6. 6Prepare Lead SMS MessageCodeLogic
  7. 7Send Confirmation EmailEmail SendService
  8. 8Email Duty Attorney AlertEmail SendService
  9. 9Check SMS ComplianceExecute WorkflowLogic
  10. 10If Slack Is ConfiguredIfLogic
  11. 11If SMS Is ApprovedIfLogic
  12. 12Post Slack Alert to AttorneyHttp RequestService
  13. 13Skip Missing Slack ConfigNo OpLogic
  14. 14Send SMS To LeadTwilioService
  15. 15Skip Opted Out ContactNo OpLogic

How it's built

Starts on
Another system calling it
Steps
15, with 3 branches
Size
Medium: a working afternoon
Connects to
Email, Twilio
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Email and Twilio accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 15 steps before you point it at anything that matters.