Send Wishlist Item Low Stock Event to Ometria

Use this Shopify Flow template to automatically fire an event to Ometria 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 automated HTTP request for each matching profile.

The data payload is completely pre-populated with customer and product variant variables, giving you an immediate hook to trigger high-conversion urgency emails or cross-channel retail campaigns before an item completely sells out.

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 Ometria account with administrator privileges is required to generate API 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 marketing trigger. You must coordinate with Ometria to register your custom event types and map variables before activating the flow.

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 Ometria security token and verify your custom event endpoints before activating it.

1. Configure Your Ometria API Key Authorization

  1. Log in to your Ometria dashboard and navigate to your integration/settings menu to generate a new API Key.

  2. Open your imported workflow within Shopify Flow and click on the Send HTTP request action block located inside the loop block.

  3. Locate the Headers section. Look for the pre-configured header key named X-Ometria-Auth.

  4. Paste your copied Ometria API key directly into the Value field next to it.

2. Register the Custom Event Type with Your CSM

Ometria requires custom event endpoints to be explicitly registered on your account before they will accept incoming tracking data.

  • Contact your Ometria Customer Success Manager (CSM) and request that they create a new custom event.

  • You can name this event anything you like (for example: wishlist_item_low_in_stock).

  • Once registered, copy that exact text string, return to your Shopify Flow HTTP action block, find the payload body JSON, and update the "event_type" field value to match it perfectly.

3. Update Settings and Map Custom Event Properties

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

  • Map Properties: The template comes pre-packaged with an empty JSON properties block designed to let you pass supplementary data parameters over to Ometria (such as current stock count or product details). If you choose to transmit custom properties, you must inform your Ometria CSM so they can configure those exact matching property data fields on their end. If not, leave the pre-configured "properties" key as an empty object ({}). Do not delete the key entirely.


Turn it on

After updating your authorization headers, adjusting your stock thresholds, and matching the event type string, 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 inside Shopify Flow's activity log that the workflow loops through and triggers the HTTP request successfully.

Ensure that the event name registered by your Ometria CSM matches the "event_type" string inside the Shopify Flow JSON payload text exactly. If there is a typo or a case-sensitivity mismatch, Ometria's API pipeline will drop the data payload entirely.

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 Ometria's data pipeline for each subscriber—giving your retention system the precise trigger needed to power automated "Low Stock" urgency tracks.