WooCommerce Trigger
What it does: Fires your workflow when commerce events happen in your WooCommerce store — new orders, status changes, product updates, customer sign-ups, and coupon activity.
In simple terms: Connect your WooCommerce store to automations. When customers buy, orders complete, or products change, your workflow runs automatically — no manual checking required.
When to Use This
- ✅ Send a custom confirmation email when a new order is placed
- ✅ Notify your team when an order is completed or cancelled
- ✅ Update inventory or CRM records when orders change
- ✅ Welcome new customers with an automated email sequence
- ✅ Sync product changes to an external catalog system
- ✅ Alert on coupon creation for discount tracking
Supported Events
Order Events
| Event | Description |
|---|---|
order.created | A new order is placed |
order.updated | An order is modified (status, payment, items) |
order.deleted | An order is deleted |
order.completed | An order status reaches "completed" |
Product Events
| Event | Description |
|---|---|
product.created | A new product is added |
product.updated | A product or variant is updated |
product.deleted | A product is removed |
Customer Events
| Event | Description |
|---|---|
customer.created | A new customer account is registered |
customer.updated | A customer's profile is updated |
customer.deleted | A customer account is deleted |
Coupon Events
| Event | Description |
|---|---|
coupon.created | A new coupon is created |
coupon.updated | A coupon is modified |
Prerequisites
- A WordPress site with WooCommerce installed
- Administrator access to your WordPress/WooCommerce site
- WooCommerce REST API enabled
Setup Guide
Step 1 — Create WooCommerce API Keys
- In your WordPress Admin, go to WooCommerce → Settings → Advanced → REST API
- Click Add key
- Set Description:
InditeAI Integration - Set User: select an admin user
- Set Permissions: Read/Write
- Click Generate API key
- Copy the Consumer Key and Consumer Secret — you won't see them again
Step 2 — Connect Credentials
- Add the WooCommerce Trigger to your workflow
- Click Select Credentials → Create New
- Enter your Store URL (e.g.,
https://mystore.com) - Enter your Consumer Key and Consumer Secret
- Save credentials
Step 3 — Get Your Webhook URL
- In the trigger settings, copy the Webhook URL
Step 4 — Register Webhook in WooCommerce
- In WordPress Admin, go to WooCommerce → Settings → Advanced → Webhooks
- Click Add webhook
- Set Status to Active
- Select the Topic matching your chosen event (e.g.,
Order created) - Paste your Webhook URL as the Delivery URL
- Click Save webhook
Repeat for each event you want to subscribe to.
Step 5 — Select Events
In the trigger settings, check which WooCommerce events should fire this workflow.
Configuration Reference
| Setting | Description |
|---|---|
| Credentials | Your store URL, Consumer Key, and Consumer Secret |
| Events | Which webhook topics trigger this workflow |
| Webhook URL | Paste this in WooCommerce webhook settings |
Output Variables
| Variable | Description |
|---|---|
{{trigger.type}} | Event topic (e.g., order.created, customer.created) |
{{trigger.orderId}} | WooCommerce order ID |
{{trigger.orderStatus}} | Order status (e.g., processing, completed) |
{{trigger.orderTotal}} | Total order amount |
{{trigger.customerEmail}} | Customer email address |
{{trigger.customerId}} | WooCommerce customer ID |
{{trigger.productId}} | Product ID (for product events) |
{{trigger.productName}} | Product name |
{{trigger.timestamp}} | When the event occurred |
{{trigger.rawPayload}} | Full WooCommerce webhook payload |
Common Use Cases
1. Order Confirmation
Events: order.created
Workflow:
- Send Email: Custom confirmation to
{{trigger.customerEmail}} - Slack: Notify #orders channel
- Google Sheets: Log order for reporting
2. Completion + Review Request
Events: order.completed
Workflow:
- Send Email: "Your order is complete! Leave a review: [link]"
- HubSpot: Add customer to post-purchase nurture sequence
3. New Customer Welcome
Events: customer.created
Workflow:
- Send Email: Welcome email with first-purchase discount
- Mailchimp: Add to new customer drip sequence
4. Product Catalog Sync
Events: product.created, product.updated
Workflow:
- HTTP Request: Push update to external inventory system
- Airtable: Sync product catalog database
5. Order Cancellation Handling
Events: order.updated (filtered by status)
Workflow:
- Condition:
{{trigger.orderStatus}}=cancelled - Send Email: Cancellation confirmation + refund timeline
- Slack: Alert fulfillment team
Related Blocks
- WooCommerce Action: Read and manage WooCommerce data within workflows
- Shopify Trigger: Alternative for Shopify stores
- Send Email: Customer communication automation
- Stripe: Cross-reference payment status
Pro Tip: Use order.created for the initial customer communication and order.completed to trigger post-purchase emails (reviews, upsells, loyalty points). Keeping these separate gives you precise control over timing.