Your first workflow, step by step

This tutorial builds one complete workflow from an empty Shopify Flow canvas: alert the team when a price is marked down by more than 10 percent. It uses Product Variant Price Changed, but every trigger of this app is used the same way, so the five moves below carry over to all of them.

You need the app installed and Product, Variant & Collection Data Access granted. If not, start with Install and set up.

1. Create a workflow and pick the trigger

Open Shopify Flow from your admin (Apps > Flow) and click Create workflow. Flow opens an empty workflow with a prompt field in the middle. For a trigger of this app, click Select a trigger below it.

A new, empty Shopify Flow workflow with a prompt field and the buttons Select a trigger and Browse templates
A new workflow. For a trigger of this app click Select a trigger.

In the panel that opens, open Workflow Trigger Extensions. Every trigger of the app is listed there with a one-line description. You can also type a name into the search field at the top. Pick Product Variant Price Changed.

Flow's Select trigger panel with Workflow Trigger Extensions opened and its triggers listed with a description each
Every trigger of the app, each with a one-line description. The search field filters the list.

The trigger is now the first step of the workflow. Its panel shows what the trigger sends along - that is the data your conditions and actions can use.

The workflow canvas with Product Variant Price Changed as its first step
The trigger is the first step of the workflow.

2. Add a condition

Click the + under the trigger and choose Condition. Click Add criteria: Flow opens the variable picker. Everything under the name of the trigger comes from this app.

For a price change that is priceChange with the old and the new price, the difference (delta), the percentage (percentChange) and the direction. These exist because a Flow condition cannot calculate, and money arrives as text - so the app does the arithmetic and hands you the result as a number.

The plus under the trigger step opened, offering Action and Condition
The plus under a step offers the two things a workflow is made of: a condition and an action.
Flow's variable picker showing oldPrice, newPrice, delta, percentChange and direction under priceChange
What the trigger hands to your workflow: the price before and after, the difference, the percentage and the direction.

Pick percentChange, choose Less than and enter -10. The workflow now continues only for markdowns of more than 10 percent.

A Flow condition: priceChange.percentChange is less than -10
The finished condition.

3. Add an action

Under Then, click + and choose Action. For an alert, Send internal email is the simplest one: it needs no other app. Put variables into the text with Add variable, for example:

{{productVariant.product.title}} / {{productVariant.title}}: {{priceChange.oldPrice.amount}} -> {{priceChange.newPrice.amount}} ({{priceChange.percentChange}} %)

Anything Flow can do works here: add tags, update a metafield, send an HTTP request to Slack or your ERP.

Optional: shape the data with Run code

When the text you want is more than a few variables - rounding, a fallback for an empty value, a calculation - add Flow's Run code step between the condition and the action. It receives the trigger's data as input and returns an object that later steps can use.

Flow's Run code step reading oldPrice, newPrice and percentChange from the trigger
Run code receives the trigger's data as input and returns values for the steps after it.

4. Turn the workflow on

Give the workflow a name and click Turn on workflow. Flow tells the app that a workflow with this trigger is live, and the app does the rest:

  • it switches the trigger on, and
  • for a change trigger it reads the current state of the matching records once (the baseline sync), so that the very first change already has something to compare with.

On a large catalogue the baseline sync can take a few minutes. Until it has finished, the first change of a record may not fire.

The finished workflow: trigger, condition, Run code, with Turn on workflow in the top right
The finished workflow. Turn on workflow is in the top right corner.

5. Make the change and check Event History

Change the price of a test variant by more than 10 percent. Then open Event History in the app: every event the app sent to Flow is listed there with its status. Success means Shopify Flow accepted it.

The app's Event History page listing fired triggers with their status
Event History lists every event the app sent to Shopify Flow.

Click the event to see exactly what was sent - the same values your condition saw. If the workflow did not do what you expected, this is the first place to look: is the event there, and does it carry the values you assumed?

An event opened in Event History: a price change from 89.00 to 69.00 with delta, percentChange and direction
One event, opened: exactly the values your condition saw.