How it works
When tracked inventory falls from more than two units to one or two units, Shopify Flow looks for Wysh customers who saved that variant. If matches are found, it retrieves up to 100 Shopify customers whose email marketing state is SUBSCRIBED and sends each one a wishlist_item_low_stock event in Ometria.
The workflow does not run when inventory is zero. The supplied event uses the customer's email address as the identity and has an empty properties object by default.
Before you start
- Install and configure Wysh and Shopify Flow.
- Make sure the relevant variants track inventory.
- Prepare an Ometria API key that can use the push endpoint.
- Confirm the
wishlist_item_low_stockcustom event with your Ometria team. - Use test customers with the required email-marketing consent.
Audience limit: each run retrieves up to 100 subscribed Shopify customers. Review whether that limit suits the size of your low-stock audience.
Install the workflow
- Download the ZIP and extract
wysh_ometria_wishlist_item_low_stock.flow. - In Shopify Flow, choose Import workflow.
- Select the extracted
.flowfile. - Review every trigger, condition and action.
- Save the workflow without switching it on.
Connect Ometria
- Open the Send HTTP request action.
- Keep the endpoint as
https://api.ometria.com/v2/pushand the request method asPOST. - Enter your Ometria API key in the blank
X-Ometria-Authheader. - Keep
Content-TypeandAcceptset toapplication/json.
Keep the key private: use a key intended for this store and never paste it into support tickets or screenshots.
Review the event
Confirm that wishlist_item_low_stock is registered as the matching custom event in Ometria. The supplied request identifies the customer by email and sends the event timestamp.
The downloaded workflow intentionally starts with an empty properties object. Add only the properties agreed with your Ometria team, using variables available in Shopify Flow, then map those properties in Ometria.
Enable and test
- Use a subscribed test customer to save a variant with more than two units in Wysh.
- Reduce its tracked inventory to one or two units.
- Confirm that Shopify Flow finds the customer and completes the Ometria request.
- Check that one
wishlist_item_low_stockevent reaches the correct Ometria profile. - Review any properties you added, then enable the workflow when the test passes.
Troubleshooting
-
Ometria returns an authentication error: confirm the
X-Ometria-Authvalue and that the key can use the push endpoint. - No event appears: check the event type, customer email and recent Shopify Flow run history.
-
Expected details are missing: the template ships with an empty
propertiesobject. Add and map the required fields before activation. - Duplicate events: confirm that only one copy of the workflow is enabled.