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

Email OperationsPermission before delivery.

A stateful n8n demonstration that cleans synthetic messages, classifies with evidence, retrieves an approved policy, validates the draft and parks an exact version for review. Only that approved version can reach a local mock outbox.

n8n / Email OperationsWorkflow canvas
Actual n8n editor capture · isolated workflow copy
Select the canvas to view it at full resolution.
52functional nodes
152documented assertions
35published test requests / runs
€0external API spend in this demo

The operational problem

Less repetition.
More accountability.

Reading, classifying and drafting email is repetitive—but sending the wrong answer is worse than being slow. A draft can become stale, recipients can change, and retrying a delivery can create duplicates.

My contribution

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

n8nJavaScriptPolicy catalogueRevision checksWait nodeMock outboxFlowGuard

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.

MiladPortfolioEmail02Source: 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

    Clean the envelope

    Normalize the sender and text; reject invalid or oversized inputs. Stop autoresponder loops and inspect known attachment metadata without opening files.

    13–18 · Intake and validation
  2. 02

    Classify with visible evidence

    Billing, sales and support rules retain their matched evidence. Mixed intent, unknown requests and sensitive fixtures escalate.

    Classification lane
  3. 03

    Draft inside an approved policy

    Build a constrained response with a policy reference, then check recipient, nonempty content and prohibited promises.

    Policy / draft / validation
  4. 04

    Save the exact review artifact

    Store the recipient, body, policy, version and 24-hour expiry. The intake execution ends with a pending record.

    Pending draft store
  5. 05

    Authorize a specific revision

    Approve or reject using the message key and expected revision. Missing, stale or expired drafts cannot be sent.

    04–12 · Decision gates
  6. 06

    Retry without multiplying sends

    Only approved drafts enter delivery. A timeout waits two seconds before one retry; a second failure retains a dead letter. Recheck authorization after the wait.

    Delivery and preflight
  7. 07

    Commit once, retain the receipt

    Successful local delivery clears pending state. Repeated decisions return the existing receipt instead of sending twice.

    Outbox / audit / deduplication

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 / sales / support

Expected / recorded result

Awaiting approval with policy and draft

What still needs production validation?

There is no connected mailbox, SMTP, paid AI provider or real email sending. Reviewers and the outbox are simulated. HTML cleanup and sensitive-data checks cover known fixtures, not universal MIME parsing or antivirus. Static-data checks are not safe concurrent transactions.

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

Clean the envelope

Normalize the sender and text; reject invalid or oversized inputs. Stop autoresponder loops and inspect known attachment metadata without opening files.

13–18 · Intake and validation

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 152 assertions across 35 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 / sales / supportAwaiting approval with policy and draft
Auto-replySuppressed; no reply loop
Mixed intent / sensitive / injectionEscalated and not approvable
Bad draftProhibited refund promise blocked
Stale revision / expiredApproval blocked
Timeout / down / repeated approvalTimed recovery, dead letter or duplicate prevention

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

10.0net 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
Mailbox service limits, optional classification or drafting calls and message retention would affect email-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

    Use durable draft and delivery tables with transactional idempotency.

  2. Phase 2

    Integrate mailbox ingestion and MIME parsing with real access controls.

  3. Phase 3

    Build an authenticated review interface tied to the exact recipient and revision.

  4. Phase 4

    Add provider delivery receipts, retention rules and quality measurements.

What this project taught me

Approval is not a vague yes. It belongs to a specific recipient, exact content and current revision.
Discuss the engineering ↗
Next automation case studyCustomer Support ↗Enlarged n8n workflow canvas