Govind Charpe
Résumé GitHub
A shortcut to the good stuff
↑↓ Explore ↵ Goesc Close
Working demo

LeadFlow

A working orchestration demo that makes qualification, policy, and routing decisions visible rather than hiding them behind a single AI response.

  • n8n
  • JavaScript
  • Webhooks
  • OpenRouter
  • Configuration-driven workflows
Full n8n LeadFlow orchestration canvas with intake, normalization, enrichment, qualification, routing, and failure paths.

LeadFlow overview

01

Overview

LeadFlow is a working orchestration demo for turning inconsistent inbound lead data into a validated and explainable outcome. It makes mode selection, confidence, fallback policy, routing, and dispatch planning visible.

It is not presented as a production SaaS or a source of measured business impact.

Role
System design and workflow implementation
System
Qualification and routing orchestration
Launch state
Working demo
02

Problem

Lead automation becomes difficult to trust when input shape, qualification logic, confidence boundaries, and delivery decisions are hidden inside one workflow. Failures can become silent and a score can be mistaken for an explanation.

LeadFlow treats each boundary as a visible system decision rather than a single black-box output.

03

Intended users

The system is designed as an engineering demo for teams evaluating how to structure qualification and routing automation before operational deployment.

  • An operator reviewing why a lead received a particular outcome.
  • An engineer configuring qualification modes and failure policy.
  • A team separating routing intent from actual dispatcher delivery.
04

System walkthrough

The native diagram explains the five-stage mental model. The full n8n canvas then provides implementation evidence, followed by three carefully distinguished outputs: an executed sample qualification, a routing plan, and a configured reliability policy.

Selected stageIntakeAccept a lead payload and validate required inputs.

Full n8n LeadFlow orchestration canvas with intake, normalization, enrichment, qualification, routing, and failure paths.
Complete orchestration

The real n8n workflow shows the orchestration and its explicit failure branches.

The real n8n workflow shows the orchestration and its explicit failure branches.

Sample LeadFlow qualified result showing a score, confidence, and explicit qualification reasons.
Explainable qualification

Sample qualified result with score, confidence and explicit reasons.

Sample qualified result with score, confidence and explicit reasons.

LeadFlow output showing a qualified result converted into a priority route and webhook destination plan.
Routing plan

A qualified result is converted into an explicit priority route and destination plan.

A qualified result is converted into an explicit priority route and destination plan.

LeadFlow hybrid qualification policy showing versioned rules and fallback-to-rules configuration.
Reliability policy

Hybrid qualification policy with versioned rules and a fallback-to-rules failure policy.

Hybrid qualification policy with versioned rules and a fallback-to-rules failure policy.

05

What I built

I designed the canonical lead model, validation and normalization boundaries, company-context enrichment, qualification modes, policy configuration, routing states, dispatcher interfaces, and audit-oriented result shape.

Input
Validation, normalization, and canonical lead shape
Context
Company enrichment boundary
Decision
Rules-only, AI-only, and hybrid qualification
Safety
Fallback-to-rules and manual-review boundaries
Routing
Qualified, nurture, and disqualified outcomes
Dispatch
Webhook and notification destination planning
06

Architecture

The orchestrator advances through explicit stages and returns structured state at each boundary. Error handlers feed a visible policy decision instead of silently converting an exception into a normal outcome.

01

IntakeAccept a lead payload and validate required inputs.

07

Important decisions

01
Context

Inbound lead payloads are inconsistent and downstream logic needs one stable shape.

Choice

Normalize into a canonical lead model before enrichment and qualification.

Trade-off

The intake layer does more work, but later stages are simpler and more auditable.

02
Context

Teams may need deterministic decisions, AI assistance, or a controlled combination.

Choice

Make rules-only, AI-only, and hybrid modes explicit configuration.

Trade-off

Configuration requires careful validation, but the decision boundary stays visible.

03
Context

A planned route is not proof that an external webhook accepted delivery.

Choice

Represent routing and dispatcher destinations as an explicit plan.

Trade-off

Operational delivery needs separate evidence, but the workflow avoids overstating success.

08

Reliability and testing

The workflow validates inputs, checks stage results, builds failure outputs, and makes the configured fallback policy visible. The supplied policy evidence shows configuration—not a recorded AI failure or a demonstrated manual-review event.

A production deployment would additionally need delivery receipts, secrets management, retries, monitoring, and a broader automated workflow test harness.

  • Input validation and normalization.
  • Explicit failure branches between stages.
  • Versioned rules and fallback policy.
  • Audit-friendly structured orchestration results.
09

Challenges and trade-offs

The main design challenge is separating decision quality from system reliability. A confident qualification does not prove that enrichment was complete, and a routing plan does not prove delivery. The case study therefore labels each artifact by what it actually demonstrates.

10

Current limitations

  • The project is a working demo, not a production client system.
  • The supplied routing output does not prove successful webhook delivery.
  • The policy screenshot does not prove an AI failure or manual-review event occurred.
  • Operational monitoring, delivery receipts, and production-scale retry behaviour are not demonstrated.
11

Next improvements

  • Add a repeatable end-to-end test harness for representative lead outcomes.
  • Persist delivery attempts and external acknowledgement states.
  • Add secrets management and environment-specific dispatcher configuration.
  • Instrument retry, dead-letter, and manual-review queues.
12

Explore the system

Keep exploring / Next case study

GitAnalyzer

Explore the next project