AI Systems

WhatsApp Shipment Exception Desk

Representative architecture: the bilingual Arabic/English WhatsApp support agent we delivered for an e-commerce retailer, adapted into a shipment-exception desk for delay, damage and wrong-item cases with a clean human handoff. Live tracking lookups are not included.

  • Logistics/3PL
  • WhatsApp WhatsApp
  • n8n n8n
  • Exception Management
  • Arabic/English
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 representative architecture adapts a self-hosted, bilingual (Arabic/English) WhatsApp agent we delivered for an e-commerce retailer. It has per-customer memory, explicit flows for delay, damage, wrong-item and missing-item cases, and a clean handoff to a human.

The original client was a retailer, not a 3PL. Live tracking lookups (AfterShip, carrier APIs) and handoff into a WMS queue were not part of the build.

What the engagement had to achieve

  1. Recognize 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 recognize 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
No live tracking lookup yet

The original build did not include live order-status or tracking lookups. Connecting 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.

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 summarizes the case so the human agent doesn't re-ask. For a 3PL, handoff routes to ops or claims.

Decision 05
What is not included

Tracking data would typically come from Aramex, SMSA, Naqel, Shipox, Quiqup, AfterShip or carrier APIs. Live tracking lookups were not part of the original build.

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 summarizes 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 not included.

Technology

The stack

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

Stack used
n8n

n8n

Stack used
WhatsApp

WhatsApp Business Platform

Stack used

PostgreSQL

Stack used

OpenAI

Outcome

What changed

Representative architecture: there are no shipment-exception results to report yet. The design guarantees below come from the original retail support agent.

Beyond the launch

Lasting improvements

The changes that keep paying off after the engagement ended.

  1. Explicit decision-tree exception flows instead of free-form chat that invents ETAs
  2. Structured human-handoff summary so ops/claims do not re-ask known facts
  3. Customers are not asked twice for reference numbers or photos they already shared
Your system next

Want an outcome like this one?

A short introductory call covers what's holding you up, whether we can help, and the first thing worth building.