Use case · E-commerce

E-commerce automation in Morocco — the 10 workflows that pay

TL;DR — Moroccan e-commerce has specifics that make automation unusually profitable: high-return COD, local carrier integrations, and WhatsApp-dominant support. The 10 workflows below typically save 30–80 hours/week at a 500-order/month operation.

Why e-commerce automation is more profitable in Morocco than elsewhere

Three factors amplify ROI in Morocco: (1) COD is 60–80% of orders, which creates operational chains (phone confirmation, follow-up, return) absent in Europe; (2) multi-carrier logistics (Amana, CTM, Speedaf, local couriers) require manual coordination; (3) WhatsApp dominates support and is hard to industrialize without automation.

The 10 workflows to automate first

1. Auto COD confirmation by WhatsApp + IVR to cut return rate from 25–40% to 10–15%. 2. Auto creation of Amana/CTM waybills from Shopify/WooCommerce. 3. Proactive parcel tracking pushed to the customer (WhatsApp template). 4. Abandoned-cart recovery in darija via WhatsApp Business API. 5. Multi-channel stock sync (site + Jumia + Glovo + physical store). 6. DGI-compliant invoice generation. 7. WhatsApp ticket routing to the right agent by category. 8. Auto negative-review detection and alert. 9. Customer-segment product recommendations (LLM + history). 10. Unified live sales/delivery/return dashboard.

Typical technical stack

E-commerce platform: Shopify or WooCommerce. Orchestration: self-hosted n8n (CNDP compliance). Messaging: WhatsApp Business API via 360dialog or Twilio. AI: GPT-4o for customer-message NLU, self-hosted model for sensitive data. Storage: PostgreSQL via Supabase (EU region, low-latency).

Results observed on our clients

Across 7 Moroccan e-commerce operators in 2025 (volumes 200 to 4,000 orders/month): -65% on per-order processing time, -52% on COD return rate, +18% on average basket after recovery, and average payback of 3.5 months.

Questions fréquentes

What minimum order volume makes this worthwhile?+
From 100 orders/month, auto COD confirmation alone justifies the investment. Below that, ROI stays positive but payback exceeds 12 months — you have to enjoy the topic.
Do we have to leave Shopify to automate?+
No. Shopify integrates natively with n8n via webhooks and its REST/GraphQL API. Same for WooCommerce. Automations sit on top of the site without touching it.
Does AI in darija actually work?+
GPT-4o and Claude 3.5 understand written and spoken darija with high accuracy. For darija-generated replies, we combine a system prompt with few-shot examples or a light fine-tune on 500–1,000 real Q/A pairs.
How much does a full deployment cost?+
Free scoping. An MVP with 3–4 critical workflows typically costs 35–80 kMAD depending on complexity. Monthly operations (infra + maintenance + WhatsApp BSP) run between 1,200 and 4,000 MAD/month.

/ À lire ensuite

Un brief technique sur ce sujet ?

Atelier de cadrage gratuit. Un fondateur, pas un commercial.