Send Wishlist Item Low Stock Event to Attentive
Use this Shopify Flow template to automatically fire an event to Attentive whenever a product variant on a shopper's wishlist falls below a safe inventory threshold. When an item's stock drops to 2 units or fewer by default, this workflow instantly cross-references your active Wysh wishlist data to find every subscriber who has saved it, executing an HTTP request for each matching profile.
The data payload is completely pre-populated with customer and variant variables, giving you an immediate hook to trigger high-conversion urgency SMS notifications.
Before you start
Wysh must be installed and active on your Shopify store.
Shopify Flow must be available on your store so you can import and edit the workflow.
An Attentive account with administrator privileges is required to generate custom app credentials.
Inventory tracking must be enabled for your products within Shopify so Shopify Flow can accurately read stock drops.
This template relies on a custom API connection rather than a native app block. Once configured, it pairs your real-time inventory level dips with subscriber intent data to create an automated low-stock text message trigger.
Install the workflow
Download the template, extract the file, and then import it into Shopify Flow.
Download the ZIP folder using the link above, then extract (unzip) it on your computer to get the .flow file.
In your Shopify admin, open Shopify Flow.
Choose the option to import a workflow, then upload the extracted .flow file.
After import, confirm that the workflow includes the inventory trigger, the stock condition check, the Wysh loop block, and the Send HTTP request action.
Customize the workflow
Because this workflow bridges systems using a custom API connection, you must add your Attentive security token to the request headers before activating it.
1. Generate your Attentive API Token
Log in to your Attentive dashboard and navigate to your integration/developer settings.
Create a new Custom App.
During setup, ensure you grant Write access permissions to Custom Events.
Generate the app and copy the provided API key/token to your clipboard.
2. Update the Shopify Flow Settings
Adjust the stock threshold: The workflow triggers when product inventory is less than or equal to 2 by default. You can change this number in the condition block to any minimum threshold that matches your fulfillment speeds.
Update the HTTP Header: Open the Send HTTP request step located inside the loop block of the imported workflow. Locate the Headers section, find the field containing the word
Bearer, and paste your copied Attentive token directly into the Value field right after the wordBearer(leave a single space between "Bearer" and your token string, e.g.,Bearer your_token_here).
Important: The request body and data payload are already fully configured and pre-populated with correct template variables mapping customer profiles and low-stock items. Do not modify the payload code, as doing so may cause the API tracking to fail.
Turn it on
After verifying your stock thresholds and pasting your token into the header field, save the workflow in Shopify Flow.
Turn the workflow on so it can begin monitoring inventory levels and matching low-stock items against customer wishlists.
Find a product currently saved to a test customer's wishlist, manually lower its inventory count to 2 or fewer in your Shopify admin, and confirm the workflow loops through and triggers the HTTP request successfully.
Events can take up to 1 hour to fully process and appear in your Attentive dashboard after Shopify sends them. If you do not see the custom event in Attentive immediately during testing, allow up to 60 minutes for the pipeline to update.
What this workflow does
Once enabled, the workflow watches for an inventory quantity change where stock levels drop down to your chosen minimum (default is 2). When this threshold is crossed, the flow scans active Wysh data to identify every customer who has that exact product saved to a wishlist. It then loops through those customers, running an internal HTTP Post request that transmits the event directly to the Attentive Custom Events API for each subscriber—giving your text engine the precise trigger needed to power automated "Wishlist Item Low Stock" urgency tracks.