Open to employment
Built in n8n / Documented implementation2026 · Portfolio engineering

Lead QualificationFrom an enquiry to an accountable next step.

A working n8n demonstration that cleans and validates an enquiry, checks processing rules, extracts structured requirements, scores with visible reasons, and routes to sales, nurture or a review queue before a mock CRM write.

n8n / Lead QualificationWorkflow canvas
Actual n8n editor capture · isolated workflow copy
Select the canvas to view it at full resolution.
46functional nodes
88documented assertions
20published test requests / runs
€0external API spend in this demo

The operational problem

Less repetition.
More accountability.

An incoming lead is not yet an actionable record. Contact details can be incomplete, duplicates create noise, and someone still has to understand the request, qualify it and assign ownership.

My contribution

Workflow architecture, node implementation, deterministic rules, review and recovery paths, test scenarios and operating documentation.

n8nJavaScriptJSON contractsIF branchesWait nodeMock CRMError Trigger

Inside the implementation

The actual workflow.
Every branch has a reason.

Real n8n editor screenshots of isolated, inactive copies of the documented workflows. Credentials, live state and private execution data were not imported.

MiladPortfolioLead01Source: October 2026 workflow export · No live executions altered

Step by step

From input
to a reviewable result.

This is the implemented flow—not a proposed diagram. The exact branch depends on the selected synthetic scenario.

  1. 01

    Validate before enrichment

    Normalize contact details, validate required fields, and check consent and abuse fixtures. Invalid records stop here.

    08–14 · Clean / validate / policy
  2. 02

    Protect the identity

    Look up the synthetic lead identity and return an existing receipt when a duplicate is found.

    15–17 · Identity / duplicate receipt
  3. 03

    Turn text into structured fields

    Enrich from a local company catalogue, extract service and budget, validate the JSON contract, and allow one bounded repair.

    18–24 · Enrich / extract / repair
  4. 04

    Make qualification explainable

    Calculate the weighted score and keep its reasons. Incomplete context enters clarification and a pending review rather than an invented answer.

    25–28 · Score / clarify / review
  5. 05

    Assign the next action

    A score of at least 70 enters the sales route with an owner and illustrative SLA; lower scores enter nurture.

    29–31 · Sales / nurture
  6. 06

    Deliver with a bounded retry

    Attempt the mock CRM write. A transient failure waits two real seconds before one retry; repeated failure becomes a dead letter.

    32–39 · Attempt / wait / commit
  7. 07

    Leave evidence behind

    Prepare the discovery handoff and an unsent follow-up draft, then return an auditable receipt and bound retained demo state.

    40–43 · Handoff / audit / receipt

Explore the decisions

What happens
when things change?

Choose a documented scenario and inspect its expected result. This is an interactive guide to the runbook; it does not execute n8n or re-run the original tests.

Documented scenario 1 / 6

Normal / enterprise

Expected / recorded result

Qualified route, owner and mock CRM receipt

What still needs production validation?

The leads, company catalogue, reviewer and CRM are synthetic. Extraction and scoring use deterministic rules, not an LLM. The two-second wait is real; provider delivery is simulated. Bounded static data is designed for sequential demonstrations, not concurrent production writes.

Read the evidence and limitations ↗

Workflow reference

Follow the implementation.

Browse the shared stages. This is a reference guide, not the execution trace of the selected scenario.

1 / 7
Step 1

Validate before enrichment

Normalize contact details, validate required fields, and check consent and abuse fixtures. Invalid records stop here.

08–14 · Clean / validate / policy

Design decisions

Not just the happy path.

01 / Explainability

Rules you can inspect.

The current implementation uses JavaScript rules and known fixtures. It does not hide a model call behind an “AI” label or present rule scores as calibrated confidence.

02 / Controlled side effects

Permission has a boundary.

Invalid, uncertain or stale inputs cannot silently become business actions. Review and retry gates are explicit parts of the workflow.

03 / Recoverability

Stop after a known budget.

Real Wait nodes make the retry timing visible. Recovery attempts are bounded; exhausted cases remain available for inspection instead of looping forever.

Verification

Evidence over
big promises.

The supplied runbook records 88 assertions across 20 published test requests / executions. These are engineering checks from the documented release, not customer outcomes or a fresh production load test.

Read the boundary as carefully as the passing paths.

ScenarioExpected / documented result
Normal / enterpriseQualified route, owner and mock CRM receipt
Nurture / uncertainNurture segment or explicit review path
Invalid / no-consent / abuseStopped before a business write
Repairable / invalid JSONOne repair attempt, then proceed or block
CRM timeout / downWait and recover once, or retain failed delivery
Repeated identityExisting receipt; no second CRM record

Estimated impact

Make the assumptions
visible.

No time-saving study or client cost data has been supplied. This calculator is an illustrative planning scenario. Change the assumptions to see the arithmetic; it is not a performance claim.

Under these assumptions

6.7net hours / month potentially freed
Illustrative allocation for this workflowHosting budget not supplied
Share of hosting
Not calculated
Optional service usage
€0.00 / month

Production cost drivers
Enrichment lookups, optional model requests and CRM service limits would affect lead-processing costs. No production usage or supplier bill has been supplied.

Net time = volume × (manual − review) ÷ 60 − maintenance hours
Workflow allocation = shared hosting ÷ workflows + volume × service cost

Enter one shared monthly hosting budget, then divide it across the workflows using that budget. Four is an editable allocation assumption for this portfolio. Equal shares are a budgeting method, not measured server usage. Each page is an independent scenario; the full server bill should not be counted again for every workflow. These demonstrations make no paid external API calls. One-time setup, labour, backups and other fees are excluded.

The production roadmap

Built to demonstrate.
A clear path to harden.

The working portfolio implementation is the starting point. These are proposed next steps, not features already delivered.

  1. Phase 1

    Replace local records with a durable database and unique lead identities.

  2. Phase 2

    Connect a real intake channel and CRM through authenticated adapters.

  3. Phase 3

    Add real reviewer identity, permission checks and auditable approvals.

  4. Phase 4

    Measure routing quality and handling time against a labelled baseline.

What this project taught me

Qualification is useful when the next action is explicit and every score can be explained.
Discuss the engineering ↗
Next automation case studyEmail Operations ↗Enlarged n8n workflow canvas