Send Wishlist Item Back in Stock Event to Attentive

Use this Shopify Flow template to automatically fire an event to Attentive whenever an out-of-stock item on a customer's wishlist becomes available again. When a product variant's inventory level increases from zero, this workflow scans your Wysh wishlist data, finds the shoppers who saved that item, and executes a secure HTTP request for each person.

The data payload is completely pre-configured to pass the relevant subscriber profiles and product fields, giving you an immediate hook to trigger back-in-stock 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 increases.

This template relies on a custom API connection rather than a native app block. Once configured, it lets you capture high-intent recovery revenue by letting subscribers know via text exactly when their items return.

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 Wysh data loop check, and the Send HTTP request action block.

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

  1. Log in to your Attentive dashboard and navigate to your integration/developer settings.

  2. Create a new Custom App.

  3. During setup, ensure you grant Write access permissions to Custom Events.

  4. Generate the app and copy the provided API key/token to your clipboard.

2. Update the Shopify Flow 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.

  • Paste your copied Attentive token directly into the Value field right after the word Bearer (make sure to 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 emails and product details. Do not modify the payload code, as doing so may cause the API tracking to fail.

Turn it on

After pasting your token into the header field, save the workflow in Shopify Flow.

Turn the workflow on so it can begin monitoring inventory changes and passing restock events to Attentive.

Find an item saved to a test user's wishlist, set its inventory to 0, then bump it back to 1 or more in your admin. Check your Shopify Flow history to confirm that the HTTP status returns a successful response code.

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 a product variant goes from out-of-stock back into stock. When this restock occurs, 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 you the precise trigger needed to power automated "Wishlist Item Back In Stock" text message alerts.