WyshAttentive

Send a low-stock wishlist event to Attentive

Send an Attentive custom event to subscribed shoppers when a saved variant drops to one or two units.

Shopify Flow template Version 1.0

Workflow facts

Trigger
Shopify inventory quantity changed
Action
Post a Low stock of wishlist item custom event to Attentive
Default behaviour
Continue only when stock crosses from above 2 units to 1 or 2; fetch up to 100 matching subscribed customers
Required apps
Shopify Flow, Wysh, Attentive

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 posts a Low stock of wishlist item custom event to Attentive for each returned customer.

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.
  • Review whether the built-in threshold of two units suits your stock model.

Install the workflow

  1. Download the ZIP and extract wysh_attentive_wishlist_item_low_stock.flow.
  2. In Shopify Flow, choose Import workflow.
  3. Select the extracted .flow file.
  4. Review the inventory conditions, Wysh lookup, customer query, loop and HTTP request.
  5. Save the workflow without switching it on.

Connect Attentive

  1. Open the Send HTTP request step inside the customer loop.
  2. Find the Authorization header.
  3. Enter Bearer YOUR_TOKEN, keeping one space after Bearer.
  4. Leave the Attentive Custom Events endpoint and payload structure in place.

Customise the threshold

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.

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 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

  1. Use a tracked test variant saved by a subscribed test customer.
  2. Set its inventory above two, then reduce it to two or one.
  3. Confirm the Flow run passes all stock checks and returns a successful HTTP response.
  4. Check the Low stock of wishlist item event in Attentive.
  5. Restore the test inventory before activation.

Troubleshooting

  • Workflow does not continue: confirm inventory crossed from above two to one or two.
  • 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.

Ready to install?

Download the clean Shopify Flow package and review its settings before switching it on.

Download ZIP
Wysh

Turn saved products into sales with Wysh

Explore Wysh