Templates / Validate lead intake and route review outcomes with Code and Switch

Validate lead intake and route review outcomes with Code and Switch

Ready for 3.0

by STL Automate · 2 views · created 2026-10-12 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Generate Synthetic Examples (Code): runs custom JavaScript code
  2. Evaluate Lead Preflight (Code): runs custom JavaScript code
  3. Route by Preflight Status (Switch): routes items into 8 branches
  4. Decision: READY_FOR_REVIEW (Edit Fields (Set)): sets 1 field: route_decision
  5. Decision: REVIEW_PHONE_ONLY (Edit Fields (Set)): sets 1 field: route_decision
  6. Decision: HOLD_MISSING_CONTACT (Edit Fields (Set)): sets 1 field: route_decision
  7. Decision: HOLD_BAD_EMAIL (Edit Fields (Set)): sets 1 field: route_decision
  8. Decision: REVIEW_DUPLICATE_IN_BATCH (Edit Fields (Set)): sets 1 field: route_decision
  9. Decision: REVIEW_SAME_EMAIL_IN_BATCH (Edit Fields (Set)): sets 1 field: route_decision
  10. Decision: HOLD_INVALID_EVENT (Edit Fields (Set)): sets 1 field: route_decision

…plus 2 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.

Nodes used (4)

From the author

Quick overview For sales operations builders and n8n learners, this credential-free educational workflow demonstrates how to diagnose malformed or incomplete lead payloads before designing a CRM handoff. It runs nine fictional examples and produces…

Excerpt from STL Automate's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.