How it works
This workflow starts when Shopify inventory changes. It continues only when a variant moves from more than two units to one or two units. Zero stock is excluded.
Wysh finds customers who have saved the variant. Shopify Flow then fetches up to 100 matching customers whose email marketing status is SUBSCRIBED and sends each one a Low stock of wishlist item event in Klaviyo.
Before you start
- Install Shopify Flow, Wysh and Klaviyo.
- Enable Shopify inventory tracking for the variants you want to monitor.
- Connect Klaviyo to Shopify Flow and keep your public API key to hand. The workflow leaves it blank.
- Review whether the built-in threshold of two units suits your stock model.
Install the workflow
- Download the ZIP and extract
wysh_klaviyo_wishlist_item_low_stock.flow. - In Shopify Flow, choose Import workflow.
- Select the extracted
.flowfile. - Add your Klaviyo public API key to the Klaviyo action.
- Review the conditions, customer limit and event properties, then save without switching the workflow on.
Customise the workflow
Change both inventory conditions if you need a different low-stock threshold. The default logic detects the transition from above two units to either one or two units.
The event includes product and variant details such as title, ID, SKU, price, stock, image, URL, collections and vendor. Remove properties you do not need, or rename the event to match your Klaviyo conventions.
How customers are selected
Wysh returns customer IDs for the affected variant. The workflow ignores an empty result, then requests up to 100 matching Shopify customers who are subscribed to email marketing. Each returned customer receives a separate Klaviyo event.
The template does not continue beyond the first 100 matching subscribed customers in a single run. Review this limit before using it with high-volume products.
Enable and test
- Use a tracked test variant saved by a subscribed test customer.
- Set its inventory above two, then reduce it to two or one.
- Confirm the Shopify Flow run passes both stock conditions.
- Check that the Klaviyo event reaches the expected profile with the correct variant data.
- Restore the test inventory before turning the workflow on.
Troubleshooting
- Workflow does not continue: confirm inventory crossed from above two to one or two. A change within the low-stock range will not pass the first condition.
- No customers found: confirm the exact variant is saved in Wysh.
- Customer excluded: check that their Shopify email marketing status is subscribed.
- No Klaviyo event: confirm the API key, customer email and Flow action output.