Automation

WhatsApp Shipment Exception Desk

Bilingual AR/EN WhatsApp exception desk on n8n for delay, damage and wrong-item flows. Points at AfterShip-class tracking and Extensiv / NetSuite ops handoff as targets—Origin is retail WhatsApp support applied to shipment exceptions; no invented deflection metrics.

  • Logistics/3PL
  • WhatsApp
  • n8n
  • AfterShip
  • Extensiv
  • NetSuite
WhatsApp Shipment Exception Desk — case study visual

Overview

The project at a glance

"Where's my order?" and "it arrived damaged" messages flood support. This page documents a self-hosted, bilingual (Arabic/English) WhatsApp agent pattern with per-customer memory, explicit flows for delay, damage, wrong-item and missing-item cases, and a clean handoff to a human — applied to 3PL and last-mile exception handling. Sell-side handoff points at AfterShip-class tracking and Extensiv-style WMS ops queues (targets, not delivered lookups).

Origin pattern: Pattern built for a bilingual e-commerce retailer, applied to shipment-exception handling. Not a claim that the original client was a 3PL.

What the engagement had to achieve

  1. Recognise exception types (delay, damage, wrong item, missing item, return, complaint)
  2. Collect the right details once, with bilingual AR/EN responses
  3. Remember the customer across turns (per-customer memory)
  4. Hand off to a human with a structured summary — without inventing delivery dates

The story

Exceptions arrive on WhatsApp, in two languages

What was at risk

The Challenge

In the Gulf especially, customers and consignees don't email, they WhatsApp. A single late or damaged delivery can generate a dozen messages across two languages. The CS team either drowns or bolts on a generic chatbot that confidently invents delivery dates. A 3PL or last-mile operator needs something narrower. It should recognise the exception type, collect the right details once, remember the customer's history and hand off to a person cleanly, without making promises it can't keep.

Failure mode 01
Message flood across languages

Delay and damage threads arrive as mixed Arabic/English WhatsApp traffic. Generic bots either stall or invent ETAs.

Failure mode 02
No structured exception capture

Free-form chat loses the reference number, photo, and exception type — so the human agent re-asks everything on handoff.

Failure mode 03
Live tracking lookup not built

Live order-status / tracking lookup was an upsell in the source project and was not built. Carrier or WMS tracking APIs would be new work.

How we responded

The Solution

Decision 01
Self-hosted WhatsApp stack

n8n + WAHA keeps conversation data on infrastructure you control. "Self-hosted" refers to this stack — not an official Meta partnership.

Decision 02
Bilingual AR/EN with per-customer memory

Responses in Arabic and English, with per-customer memory in Postgres so the agent does not re-ask known facts.

Decision 03
Explicit decision-tree flows

Rather than free-form chat: return/refund, exchange, wrong / missing item, damaged item, delivery delay, complaint. Flow-by-flow regression testing on real customer messages before go-live.

Decision 04
Structured human handoff

The agent summarises the case so the human agent doesn't re-ask. For a 3PL, handoff routes to ops or claims.

Decision 05
Market context (targets, not delivered)

Tracking data would typically come from Aramex, SMSA, Naqel, Shipox, Quiqup-class platforms, AfterShip or carrier APIs. Those are integration targets — live tracking lookups are not claimed.

Deliverables

What we built

The concrete capabilities designed, built, and shipped in this engagement.

Self-hosted WhatsApp stack on n8n + WAHA

Conversation data stays on infrastructure you control. "Self-hosted" refers to this stack — not an official Meta partnership.

Bilingual AR/EN responses

The agent replies in Arabic and English so Gulf WhatsApp-first exception traffic is handled in the customer's language.

Per-customer memory in Postgres

Known facts persist across turns so the agent does not re-ask for reference numbers, photos or prior exception context.

Explicit exception decision-tree flows

Rather than free-form chat: return/refund, exchange, wrong / missing item, damaged item, delivery delay, complaint — mapped here to shipment-exception handling.

Structured human handoff

The agent summarises the case so the human agent does not re-ask. For a 3PL, handoff routes to ops or claims.

Flow-by-flow regression testing before go-live

Each exception flow was regression-tested on real customer messages before go-live. Live tracking lookup was an upsell and was not built.

Technology

The stack

The tools behind the build, and the role each one played.

Orchestration / Actual stack
n8n

n8n

Orchestration / Actual stack

WAHA

Orchestration / Actual stack

PostgreSQL

Orchestration / Actual stack

OpenAI

3PL systems (integration targets)

Extensiv

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

NetSuite

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

AfterShip

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

MercuryGate

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

FreightPOP

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)
QuickBooks

QuickBooks

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

Descartes

Integration target (sell-side) — not claimed as delivered.

3PL systems (integration targets)

Courier POD images

Integration target (sell-side) — not claimed as delivered.

Outcome

What changed

Beyond the launch

Lasting improvements

The changes that keep paying off after the engagement ended.

  1. Outcome metrics: none claimed (no response-time or deflection figures)
  2. Design/process outcome: Explicit decision-tree exception flows instead of free-form chat that invents ETAs
  3. Design/process outcome: Structured human-handoff summary so ops/claims do not re-ask known facts
  4. Design/process outcome: Origin honesty disclosed on-page — retail WhatsApp pattern applied to shipment exceptions; live tracking lookup not claimed
Your system next

Want an outcome like this one?

A short workflow review maps where automation, AI, or a platform would pay off in your operation — and the first system worth building.