WooCommerce + n8n: Automate Order Processing and Customer Emails

WooCommerce's plugin ecosystem covers a lot of ground, but stacking plugins for every automation need adds maintenance overhead and potential conflicts on a WordPress site that's often already running a dozen other plugins. Connecting WooCommerce directly to n8n through its native webhooks and REST API gives you the same automation without adding another plugin to keep updated and compatible.
This builds on n8n for e-commerce — read that first for the broader operational picture before diving into WooCommerce-specific setup.
Connecting n8n to WooCommerce
WooCommerce exposes both webhooks (configurable in WooCommerce Settings → Advanced → Webhooks) and a REST API for on-demand queries. Webhooks are the right choice for anything that should react immediately to an event — a new order, a status change. The REST API, called from n8n's HTTP Request node with API key authentication, fits workflows that need to look something up or push a change outside of a triggered event.
Step 1: Set up the order webhook
In WooCommerce, create a webhook for the "Order created" topic, pointing at your n8n workflow's webhook URL. Every new order now triggers your n8n workflow with the full order payload — line items, customer details, totals — available immediately for the next steps.
Step 2: Route the order to the right systems
From the order webhook, a typical workflow branches to: writing the order to accounting or a spreadsheet, checking whether any line items are low-stock, and notifying whoever handles fulfillment — all from the single trigger instead of someone checking the WooCommerce admin dashboard. See n8n for e-commerce for this same pattern applied across any storefront platform.
Step 3: Automate customer status emails
WooCommerce's default emails are functional but generic. A workflow triggered on order status changes ("processing," "completed," "on-hold") can send more tailored notifications — referencing the specific products ordered, adding a personalized note, or including a support contact for a specific product category — without touching WooCommerce's email templates directly.
Step 4: Sync inventory if you sell elsewhere too
If you sell the same products anywhere besides your WooCommerce store, a webhook on stock changes that pushes the updated count to your other channels prevents the overselling that happens when inventory only updates in one place. If Shopify is one of those other channels, Shopify automation with n8n covers the same sync from that side.
Step 5: Handle failed and refunded orders
A webhook on the "Order refunded" or "Order cancelled" topics should trigger the reverse of your order-processing workflow — reversing any inventory decrement, notifying accounting, and flagging the order for review if the cancellation reason needs a human look. Treating cancellations as an afterthought is a common gap: many WooCommerce automation setups only build the happy path and leave refunds handled manually.
Common WooCommerce automation pitfalls
WordPress hosting environments vary widely in reliability, and a webhook that fires from a WooCommerce site on shared hosting during a traffic spike can arrive late or fail silently. Build in a periodic reconciliation check — a scheduled workflow that compares recent WooCommerce orders against what actually landed in your downstream systems — so a missed webhook gets caught within hours, not discovered a month later during a bookkeeping review.
Tracking the bigger picture
Order automation handles the day-to-day flow, but tracking overall store performance — inventory, profitability, and orders across every platform you sell on, not just WooCommerce — is a separate need. Our Digital Product Business OS is a Notion-based command center built for exactly that, and pairs well with the workflows above.
Where to go next
If you're running both WooCommerce and Shopify, or considering a move between the two, Shopify automation with n8n covers the equivalent workflows on that platform. Otherwise, browse n8n workflow templates for tested starting points, or see our complete guide to n8n workflows for the bigger picture.
Build this with
More from the lab
View all posts →n8n Workflows: The Complete Guide to Automating Your Business
What n8n workflows actually are, when to build vs. import one, and how to use them to automate social media, lead generation, e-commerce and more.
n8n Workflow Templates: Where to Find Free, Ready-to-Use Automations
Where to find free n8n workflow templates, how to evaluate one before importing it, and when a paid workflow pack saves more time than a free template.
7 n8n Workflow Mistakes That Break Your Automations (and How to Fix Them)
The most common n8n workflow mistakes — from missing error handling to hardcoded credentials — and the specific fix for each one.

