AI Agents for E-commerce in Morocco: Confirming Cash-on-Delivery Orders and Answering Customers
Unconfirmed orders often end as refused parcels. How a WhatsApp AI agent confirms orders, answers customer questions and alerts your team at the right moment.

In Morocco, a large share of online purchases is paid cash on delivery. Customers like it because it feels safe. For the shop it's a risk: an impulse order, an incomplete address or an unreachable number often ends as a refused parcel, with shipping and return costs paid by the seller. So many teams spend their days calling every customer to confirm. A WhatsApp AI agent can take on much of that work, and answer customer questions at any hour.
What an AI agent does for an online store
Confirming orders
- As soon as an order comes in, it sends a WhatsApp confirmation with the summary: products, size or colour, total, city.
- It understands the reply in French, Arabic or Darija, including short answers like "ok", "wakha" or an emoji.
- It checks the details that are often missing: neighbourhood, a landmark for the courier, a preferred delivery slot.
- It updates the order status in your store (Shopify, WooCommerce, YouCan or a custom build): confirmed, call back, cancelled.
- It flags doubtful orders to your team: no reply, inconsistent address, a major change request.
Answering questions before and after purchase
- Before purchase: whether a size is in stock, delivery time to a given city, the difference between two models, exchange terms. The agent answers from your catalogue and policies, not from memory.
- After purchase: "where's my order?". If your courier provides tracking, the agent gives the exact step instead of a vague answer.
- Exchanges and returns: the agent explains the procedure and opens the request; your team approves it.
What the agent must not do
- Make up stock or delivery times: without current data it says it will check and hands over.
- Offer discounts you haven't planned.
- Push back when a customer cancels: it records the cancellation, may ask why, and stops there.
- Send promotions to customers who haven't opted in.
Setting it up, step by step
- Move to the official WhatsApp API (WhatsApp Business Platform): the free app can't be automated without risking a ban.
- Connect the store to read orders and update their status.
- Write the confirmation templates and get them approved by Meta.
- Load the catalogue and policies (delivery, exchanges, returns) as the agent's source of truth.
- Set hand-over rules: complaints, unhappy customers, high-value orders, questions outside the catalogue.
- Test in Darija on real messages before opening it to every customer. See a WhatsApp chatbot that understands Darija.
- Launch on part of the orders, compare with manual confirmation, then roll out.
What to measure
- Confirmation rate and the average time between order and confirmation.
- Refused or returned parcels, before and after the agent.
- Response time to customer questions, during the day and in the evening.
- Share of conversations handed to the team, and why: that list is your improvement backlog.
Customer data
Names, numbers, addresses: the agent processes personal data. Tell customers, limit what's sent to the AI model, and check where data is hosted. The key points are in AI agents and Morocco's Law 09-08.
Put an agent to work for your store
Our AI agents service builds WhatsApp agents connected to your store, to confirm orders and answer customers in French, Arabic and Darija. If the store itself needs work, see starting an online store in Morocco. Tell us about your volumes.
Frequently asked questions
Can an AI agent confirm cash-on-delivery orders?
Yes. It sends a WhatsApp confirmation after each order, understands the customer's reply, completes the address and updates the status in the store. Doubtful cases go to the team.
Do I need the WhatsApp Business API?
Yes. Automating the free WhatsApp Business app with unofficial tools puts the number at risk of a ban. The official API allows automation with templates approved by Meta.
Does the agent understand Darija?
A well-built agent understands Darija written in Latin or Arabic script, provided it's tested on real conversations from your customers before launch.
Which platforms does it work with?
Any store that lets you read and update orders through an API: Shopify, WooCommerce, YouCan or a custom build.


