E-commerce COD Order Automation — Verification, Courier Booking & Review Loop (Bangladesh)
Bangladesh & worldwide · public demo on fake data
Cash on Delivery orders cost Bangladeshi online shops a fortune in fake orders and returns. This four-workflow system scores each COD order for risk, sends a Bangla verification message, books the cheapest reliable courier only after the customer confirms, and closes the loop with a review request and sentiment-based reply.
Role: Solo build: process design, n8n workflows and sub-workflows, prompts, rules engine, rate limiting, hosting and documentation
- 4 n8n workflows
- 3 AI steps
- Free AI models
- Live public demo
What I built
- Main · Order lifecycle (public form): Takes the order, shows the verification page, waits for the customer answer, then books the courier and collects the review. Rate-limited.
- SW1 · COD risk + verification: Rules check phone format, address completeness, order value and simulated return history; a free LLM normalises the address and writes the Bangla verification message and call script.
- SW2 · Courier selection + booking: Compares demo rate cards for Pathao, Steadfast and RedX by zone, weight and COD charge, weights by success rate and books a simulated consignment.
- SW3 · Delivery updates + review loop: Writes dispatch and delivered SMS in Bangla, analyses the review, drafts the public reply and escalates unhappy customers with a recovery offer.
- Courier is booked only after the customer confirms, so fake COD orders cost nothing
- Same verification wording for every order, in Bangla
Free-model demo: This public demo runs on free AI models, so accuracy is limited. With paid, better models the output is much better.
এই ডেমোতে ফ্রি AI মডেল ব্যবহার করা হয়েছে, তাই নির্ভুলতা সীমিত। পেইড ও উন্নত মডেল ব্যবহার করলে আউটপুট অনেক ভালো হবে।
Project status
Live public demo with sample data. Multi-workflow case study built and hosted by me on self-hosted n8n. It runs on free AI models (Groq gpt-oss, OpenRouter free models), uses only fake sample data and is rate-limited. The workflow exports are public on GitHub.
The problem
In Bangladesh most online orders are Cash on Delivery. Fake orders, wrong addresses and refused parcels mean the shop pays the courier twice and earns nothing. Teams verify orders by phone one at a time, compare courier charges by hand and rarely ask for reviews.
Architecture
4 n8n workflows, 3 AI steps (highlighted) and plain rules everywhere else, so the result is predictable and auditable.
The workflows
- Main · Order lifecycle (public form): Takes the order, shows the verification page, waits for the customer answer, then books the courier and collects the review. Rate-limited.
- SW1 · COD risk + verification: Rules check phone format, address completeness, order value and simulated return history; a free LLM normalises the address and writes the Bangla verification message and call script.
- SW2 · Courier selection + booking: Compares demo rate cards for Pathao, Steadfast and RedX by zone, weight and COD charge, weights by success rate and books a simulated consignment.
- SW3 · Delivery updates + review loop: Writes dispatch and delivered SMS in Bangla, analyses the review, drafts the public reply and escalates unhappy customers with a recovery offer.
Try the live demo
No sign-up needed. Use sample or fake data only.
- Place a fake order with a Bangladeshi mobile number and district.
- Play the customer: confirm or cancel the order.
- After the simulated delivery, write a review in Bangla or English and see how it is handled.
What it changes
- Courier is booked only after the customer confirms, so fake COD orders cost nothing
- Same verification wording for every order, in Bangla
- Cheapest reliable courier picked per parcel instead of one courier for everything
- Every customer is asked for a review, unhappy ones reach a human the same day
Tech stack
n8n, Sub-workflows, Groq gpt-oss (free), Cash on Delivery, Pathao, Steadfast, RedX, Bangla SMS
FAQ
Are the courier prices real?
No. The demo uses illustrative rate cards. In production the workflow calls each courier merchant API (Pathao, Steadfast, RedX, Paperfly) for live charges and booking.
How does it verify the customer?
It sends a Bangla SMS or WhatsApp message and, if needed, prepares a call script. The order moves to courier booking only after a confirmation.
Can it work with WooCommerce or Shopify?
Yes. New orders arrive by webhook from WooCommerce, Shopify or a custom store, and statuses are written back to the order.
Does it handle bKash advance payment for outside Dhaka?
Yes. The risk step suggests when to ask for the delivery charge in advance, and the payment reconciliation project can confirm it automatically.
Why is the demo output not perfect?
This public demo runs on free AI models (Groq gpt-oss and OpenRouter free models), so accuracy is limited. With paid, better models the output is much better.