Xunodus
All outcomes
Operations Lead · Freight & fulfilment

Self-healing order pipeline for a freight network

A regional freight and fulfilment network was running on copy-paste. We replaced it with a self-healing pipeline that reconciles every order across systems — and only asks a person when a decision is needed.

Representative engagement. This case combines patterns from comparable engagements. Client names, figures and interfaces are illustrative.

Sector
Freight & fulfilment
Timeline
14 days to production
Scope
Order intake, reconciliation, carrier booking, exception alerts
Stack
n8n · Docker · PostgreSQL · Redis
Illustrative interfaceThe pipeline: orders, quoting, reconciliation, accounting and carrier dispatch, with a self-healing dead-letter queue.
01

The situation

Orders arrived from the online store, the ERP and email. Coordinators re-typed each one into two or three carrier portals, then reconciled invoices against shipments at the end of the day.

It worked — until volume doubled. One typo meant a misrouted pallet, a missed delivery window and an evening on the phone with carriers.

02

Where it broke

  1. 01Five systems and no single source of truth: each held part of the order.
  2. 02Failures were silent. A rejected booking surfaced only when a customer called.
  3. 03Reconciliation was manual, so errors were found days after they happened.
Illustrative interfaceA driver sends a bill of lading on WhatsApp; it is read, verified and synced to the ERP.
03

What we built

An n8n orchestration layer, running in hardened Docker containers on the client's own server, receives every order, validates it and writes one reconciled record to PostgreSQL. From there it books the carrier, generates labels and syncs invoices to the ERP and accounting.

Failures don't disappear: they go to a dead-letter queue, retry automatically, and alert a coordinator — with the fix already suggested — only when a person is genuinely needed. Drivers can send a bill of lading on WhatsApp; it is read, matched to the shipment and filed.

System map
  1. Orders
    From the store, the ERP and email
  2. Reconcile
    Validates and matches every record
  3. Carriers
    Books, labels and tracks automatically
  4. Ops team
    Sees exceptions only — with context
04

How we rolled it out

  1. Days 1–3
    Every system, field and failure mode mapped; one order schema agreed with operations.
  2. Days 4–9
    Pipeline built on staging, with real historical orders replayed through it.
  3. Days 10–12
    Parallel run: pipeline and team processed the same orders, and differences were reviewed daily.
  4. Days 13–14
    Cut-over carrier by carrier, with the manual path kept as a fallback for a week.
Illustrative interfaceQuoting and reconciliation: every order matched, and the rare mismatch flagged for review.
05

What changed

480 h
Team hours returned / month
12×
Faster order processing
99.98%
Records reconciled automatically

Coordinators stopped re-typing data. They now handle exceptions, carrier relationships and customers — and the evening firefighting is gone, because problems are caught when they happen, not when a customer calls.

For the team

Evenings belong to the coordinators again. Exceptions arrive with the fix already suggested.

Representative outcomes from comparable engagements.

06

What we'd tell another team

Reliability is a design decision. Retries, dead-letter queues and clear alerts are what let a team trust automation with real money and real shipments.

Inside the system

Facing the same bottleneck?

Tell us how it works today. You'll get a written architecture sketch — useful even if we never work together.

Message on WhatsApp
Next case study
VP Sales · B2B SaaS & fintech
Lead scoring that books qualified B2B buyers
Read the case study