When a new order received in WooCommerce, search array for product id using PHP Array, check the response using Filters, and send an email to user with a discount Coupon for next order
On each WooCommerce order, FlowMattic searches the line items for a specific product, filters the result, and emails matching buyers a discount coupon, driving repeat purchases automatically.
WooCommerce
Free · import into FlowMattic in one click
Every step, explained
Import the template and this whole chain runs on autopilot — here's exactly what happens on each run.

Built to own, not to rent
No-code setup
Import the JSON, connect your accounts, and go live in minutes. Every step is pre-mapped — you only add your own credentials.
Runs on your server
Self-hosted on your WordPress install. No per-task fees, no data leaving your infrastructure, no monthly SaaS bill.
Fully customizable
Open it in the visual builder and reshape it — add branches, swap apps, insert filters. A starting point, not a cage.
Ready to automate your WordPress site?
Download this workflow free, or grab FlowMattic and own every automation on your site — no per-task fees, ever.


