Automation by function

E-commerce automation: from order to delivery on n8n

The four workflows an online shop needs first: orders from every channel in one place, WhatsApp confirmations, the courier hand-off and tracking, the COD check.

By the RinooSol team Published ⁨4⁩ min read

An online shop in this market sells through a platform and through messages at the same time: a Shopify, WooCommerce or Salla storefront on one side, and WhatsApp and Instagram orders typed by staff on the other. Half the work is keeping the two in step; the other half is answering "did my order go through?" and "where is it?". Four workflows cover most of it, and they are built in this order.

Workflow 1: every order in one place

The storefront sends a webhook on each new order; n8n writes it to an order sheet or your order system with the items, the address, the payment method and status, and the channel. Message orders are entered by staff through a short form that writes to the same sheet with the same fields, so the two kinds of order are not two lists. From this point everything downstream treats them the same.

If the storefront is the system of record, the workflow writes the message orders into the storefront through its API instead of beside it, and the sheet becomes a view rather than a second source.

Workflow 2: the confirmation

Within a minute of the order, the customer receives a WhatsApp message: the order number, the items, the total, the expected delivery window and how to reach you. For a storefront order this replaces the email nobody opens; for a message order it is the receipt the customer did not have. The WhatsApp guide covers the API that sends it, and the official-versus-Evolution comparison which route suits a shop of your size.

Workflow 3: cash on delivery, confirmed first

Cash-on-delivery orders fail more often than paid ones, and a failed delivery costs the courier fee twice. So a COD order is confirmed before it is handed over: the confirmation message asks the customer to reply to confirm the order and the address, and the order moves to fulfilment only on a yes. No reply within a set time triggers a reminder, then a call task for staff. The orders that would have failed at the door are caught here, before the courier leaves.

Workflow 4: the courier hand-off and tracking

When an order is marked packed, the workflow sends the shipment to the courier, by API where the courier offers one or by a formatted message or sheet row where they do not, and records the tracking reference. Status changes (shipped, out for delivery, delivered, failed) come back the same way and trigger the customer messages: "on its way" with the courier's name, "delivered" with a thank-you, "could not be delivered" with a reply option to choose a new time. The logistics page shows the driver side of this for a shop with its own delivery team.

The pieces that follow

Once the four are running, the next ones are small:

  • Returns. A reply to the delivered message with a keyword opens a return ticket with the order attached.
  • Stock. A new order reduces the figures in the sheet or reads the storefront's stock; a sold-out item triggers a message to purchasing.
  • Reviews. A message a few days after delivery asking for a rating, with the answer written to the order.
  • The daily summary. Orders per channel, COD confirmed and declined, deliveries completed and failed, in one message each evening.

What to decide before building

  • Which system holds the truth: the storefront or the sheet.
  • Who enters message orders and from which form.
  • The COD rule: confirm every COD order, or only above an amount.
  • The courier's channel: API, message or sheet.
  • The wording of the five customer messages, in Arabic and English.

Where this fits

The order management page shows workflows 1, 2 and 4 for a clothing brand; the logistics page the delivery side; the customer support page the "where is my order" questions that drop by half once the tracking messages exist. A free consultation is where we look at your storefront, your order sheet and your courier and write the first message with you.

Read next

Tell us what you do by hand today

Book a free consultation and we will design the automation with you.

We reply in Arabic or English

Last updated: