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 Mailchimp.
Before you start
- Install Shopify Flow, Wysh and the Mailchimp app.
- Connect Mailchimp directly to your Shopify store.
- Enable Shopify inventory tracking for the variants you want to monitor.
- Review whether the built-in threshold of two units suits your stock model.
Install the workflow
- Download the ZIP and extract
wysh_mailchimp_wishlist_item_low_stock.flow. - In Shopify Flow, choose Import workflow.
- Select the extracted
.flowfile. - Review the inventory conditions, customer query and Mailchimp action.
- Save the workflow without switching it 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 Mailchimp action maps the customer ID, last order ID and product ID. Keep the default event name or update the action and any dependent Mailchimp journey together.
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 event.
The template does not continue beyond the first 100 matching subscribed customers in a single run. Review this limit for 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 Flow run passes all three stock checks and finds the customer.
- Check the
Low stock of wishlist itemevent against the expected Mailchimp contact. - 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 Mailchimp event: confirm the Mailchimp connection and inspect the Flow action output.