- Home
- Case Studies
- WhatsApp Shipment Exception Desk
WhatsApp Shipment Exception Desk
Representative design for answering a shipment question on WhatsApp and routing an exception to a staff member.
- Logistics/3PL
- n8n
- Exception Management
- Arabic/English
Operational outcome
WhatsApp Shipment Exception Desk
AI Systems
Measured result
Representative bilingual AR/EN WhatsApp shipment-exception architecture adapted from a delivered e-commerce support agent
Recorded results
Pattern adapted Architecture status
Representative 3PL design adapted from a delivered Octacer system; no 3PL-specific client metrics claimed.
Built into flow Failure and review visibility
Explicit validation, fallback, or exception queues prevent silent drops across handoffs.
Explicitly defined Scope boundaries
System-of-record authority and non-claims are documented directly alongside the workflow.
Representative architecture: there are no shipment-exception results to report yet. The design guarantees below come from the original retail support agent.
The challenge
Exceptions arrive on WhatsApp, in two languages
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.
n8n + WAHA keeps conversation data on infrastructure you control. Responses in Arabic and English, with per-customer memory in Postgres so the agent does not re-ask known facts. 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. The agent summarizes the case so the human agent doesn't re-ask. For a 3PL, handoff routes to ops or claims. 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.
What was at risk
-
Message flood across languages
Delay and damage threads arrive as mixed Arabic/English WhatsApp traffic. Generic bots either stall or invent ETAs.
-
No structured exception capture
Free-form chat loses the reference number, photo, and exception type, so the human agent re-asks everything on handoff.
-
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.
- Industry
- Logistics / 3PL
- Project
- WhatsApp AI agent + exception flows
- Octacer's role
- Full development
- Status
- Tested, not yet released
What we built
How the workflow works
Decision-tree exception desk, then human handoff
-
n8n
-
WhatsApp Business Platform
-
PostgreSQL
-
OpenAI
-
Step 1: Handle shipment questions in Arabic or English with Postgres memory
n8nIncoming WhatsApp queries over self-hosted n8n and WAHA preserve per-customer thread memory and answer common tracking questions.
-
Step 2: Escalate delays, damage, and wrong-item cases via explicit handoff
Explicit exception decision-tree branches route unresolved shipment exceptions to staff with full conversation context.
Deliverables
What we delivered
-
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.
Engineering decisions
Two decisions that shaped the build
Use explicit exception decision trees instead of open-ended autonomous replies
Shipment delays, damage, and mis-picks require deterministic escalation paths rather than improvised promises.
Run WhatsApp orchestration on self-hosted n8n, WAHA, and Postgres
Keeps conversation state auditable and repeatable across regression flows prior to go-live.
Validation
What we verified
| Status | What the record shows |
|---|---|
| Tested | Architecture and failure modes adapted directly from an Octacer delivered system and verified against 3PL workflow requirements. |
| Still open | Representative adaptation: client-specific 3PL TMS/WMS integrations are scoped per engagement. |
Outcomes
What changed
- Explicit decision-tree exception flows instead of free-form chat that invents ETAs
- Structured human-handoff summary so ops/claims do not re-ask known facts
- Customers are not asked twice for reference numbers or photos they already shared
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.
Need something like this? See the related service: n8n automation and repair.
Tell us about your project