How it works
This workflow starts when Shopify marks a product variant as back in stock. Wysh finds customer IDs that have saved the variant, then Shopify Flow fetches up to 100 matching customers whose email marketing status is SUBSCRIBED.
For each returned customer, the workflow posts a Wishlist item back in stock custom event to Attentive with the customer's email address and the current product and variant details.
Before you start
- Install Shopify Flow and Wysh.
- Enable Shopify inventory tracking for the variants you want to monitor.
- Create an Attentive custom app with write access to Custom Events.
- Copy the bearer token. The downloaded workflow leaves the token blank.
Install the workflow
- Download the ZIP and extract
wysh_attentive_wishlist_item_back_in_stock.flow. - In Shopify Flow, choose Import workflow.
- Select the extracted
.flowfile. - Review the inventory trigger, Wysh lookup, customer query, loop and HTTP request.
- Save the workflow without switching it on.
Connect Attentive
- Open the Send HTTP request step inside the customer loop.
- Find the
Authorizationheader. - Enter
Bearer YOUR_TOKEN, keeping one space afterBearer. - Leave the Attentive Custom Events endpoint and payload structure in place.
How customers are selected
Wysh returns customer IDs for the affected variant. The workflow ignores an empty result and requests up to 100 matching Shopify customers whose email marketing status is subscribed. Each returned customer receives a separate Attentive request.
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 variant saved by a subscribed test customer.
- Set its inventory to zero, then increase it above zero.
- Confirm the Flow run finds the Wysh customer and returns a successful HTTP response.
- Check the
Wishlist item back in stockevent in Attentive. - Restore the test inventory before activation.
Troubleshooting
- No workflow run: confirm the variant crossed from out of stock to in stock.
- No customers found: confirm the exact variant is saved in Wysh.
- Customer excluded: check that their Shopify email marketing status is subscribed.
- HTTP request fails: check the bearer token, endpoint and Flow response.