Back to Blog
n8necommerceshopifywoocommerceautomationorder management
n8n Ecommerce Automation: Shopify and WooCommerce Workflow Guide
n8nautomation TeamApril 6, 2026
# n8n Ecommerce Automation: Shopify and WooCommerce Workflow Guide
Ecommerce operations run on repetitive, time-sensitive workflows: order confirmations within seconds of purchase, inventory alerts before you run out, abandoned cart recovery within the first hour. These are exactly the processes n8n handles best — event-driven, multi-step, with clear business value per execution.
This guide covers the key n8n automations for Shopify and WooCommerce stores, with configuration details for each.
## Connecting Your Store to n8n
**Shopify:** n8n has a native Shopify node with both polling triggers and webhook support. For production, use Shopify webhooks (configured in Shopify Admin → Settings → Notifications → Webhooks) pointing to n8n's Production webhook URL. Alternatively, create a Shopify private app with read/write API access and use the native n8n Shopify node.
**WooCommerce:** n8n has a native WooCommerce node that uses the WooCommerce REST API. Generate API credentials in WooCommerce → Settings → Advanced → REST API. For real-time events, install a WooCommerce webhook plugin or use WooCommerce's built-in webhook support (WooCommerce → Settings → Advanced → Webhooks).
## Automation 1: Order Confirmation + Fulfillment Notification
**Trigger:** Webhook (Shopify `orders/create` or WooCommerce `order.created`)
1. Extract: order ID, customer email, items ordered, shipping address, total
2. Gmail node → send order confirmation email with itemized receipt
3. IF node → order value > $200? (high-value order flag)
4. Slack node → notify #orders channel with order details
5. Google Sheets node → log order to daily sales tracker
## Automation 2: Inventory Reorder Alert
**Trigger:** Schedule Trigger — daily at 7am
1. Shopify/WooCommerce node → get all products
2. Code node → filter products where `inventory_quantity < reorder_threshold`
3. IF node → any low-stock items?
4. Slack node → send inventory alert with product names and current quantities
5. Gmail node → send reorder email to your supplier with a structured order list
## Automation 3: Abandoned Cart Recovery
**Trigger:** Shopify webhook (`checkouts/create`) OR Schedule Trigger + Shopify node query
1. Wait node → wait 1 hour after cart creation
2. HTTP Request → Shopify API: check if order was completed for this checkout
3. IF node → order not completed?
4. Gmail node → send abandoned cart email with cart contents and a discount code
5. Wait node → wait 24 hours
6. IF node → still no order?
7. Gmail node → send second abandoned cart email with urgency and social proof
## Automation 4: Post-Purchase Review Request
**Trigger:** Shopify webhook (`orders/fulfilled`)
1. Wait node → wait 7 days (time for delivery)
2. Gmail node → send review request email: "How was your [product name]? Leave us a review."
3. Airtable node → log review request sent with order ID and date
4. Wait node → wait 14 more days
5. IF node → review not received? (check your review platform's API)
6. Gmail node → send gentle follow-up with incentive (discount code for next purchase)
## Automation 5: Customer Segmentation and Re-Engagement
**Trigger:** Schedule Trigger — first of every month
1. Shopify/WooCommerce node → get all customers with last order > 90 days ago
2. Code node → segment by total lifetime value (LTV):
- High LTV (>$500): VIP re-engagement email with exclusive discount
- Mid LTV ($100–$500): seasonal promotion email
- Low LTV (<$100): win-back email with bold incentive
3. Gmail node (3 branches) → send segment-specific emails
4. Google Sheets node → log re-engagement campaign stats
## Automation 6: Refund → Process and Notify
**Trigger:** Shopify webhook (`refunds/create`) or WooCommerce webhook
1. Extract: customer email, refund amount, reason
2. Gmail node → send refund confirmation email with timeline
3. Airtable node → log refund to your returns tracker
4. IF node → refund reason contains "defective" or "wrong item"?
5. Slack node → alert #operations team to investigate fulfillment issue
6. IF node → customer has placed > 3 previous orders? (loyal customer)
7. Gmail node → send loyalty apology email with a 15% discount on next order
## eCommerce Automation Tips
**Webhook reliability is everything:** Abandoned cart recovery, order confirmations, and refund processing all depend on n8n receiving webhooks reliably. An n8n instance that crashes or has expired SSL drops these events silently — and you lose revenue.
**Idempotency for order workflows:** Shopify can deliver the same webhook event multiple times. Store processed order IDs in Airtable or Postgres and check for duplicates before sending emails or updating records.
**Test with Shopify's event simulator:** Shopify Admin → Settings → Notifications → Webhooks lets you send test payloads to your n8n webhook URL without creating real orders.
[n8nautomation.cloud](https://n8nautomation.cloud) provides managed n8n hosting starting at $15/month. For ecommerce stores where automation drives real revenue, uptime reliability is not optional.