> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.timesact.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Notifications - Shopify Flow

**Build your own branded, multi-step automations on Timesact events using Shopify's free Flow app. Currently available for Back in Stock only. For how this compares to the other channels, see** [Notifications Overview](https://help.timesact.com/en-us/article/notifications-overview-5rpx0c/)

If you do not have it yet, install Flow from the Shopify App Store.

## The triggers Timesact gives you

* Customer signed up for back-in-stock alert — runs when a shopper submits the Notify Me form.
* Back-in-stock notification ready — runs when a restocked variant has someone waiting on it (once per subscriber).

Pre-order triggers are not available yet, so for now send pre-order through [Notifications - Built in](https://help.timesact.com/en-us/article/notifications-built-in-100uera/) or [Notifications - Klaviyo](https://help.timesact.com/en-us/article/notifications-klaviyo-1js0hot/)

## Turning it on

In the customer experience template's Notifications, on the Back in Stock tab, set the channel to Shopify Flow and Save. Timesact then sends the triggers to Flow instead of sending its own built-in emails for that functionality.

## The data each trigger carries

Both triggers carry the same core fields, plus a couple that are specific to one trigger. Copy the value from the first column straight into your workflow's email (the To, Subject, or Body), or insert it from Flow's own variable picker instead of typing it.

| Copy this into your workflow | What it contains | Available on |
| ---- |
| `{{trigger.customerEmail}}` | The shopper's email address | Both triggers |
| `{{trigger.customerName}}` | The shopper's name (empty for now) | Both triggers |
| `{{trigger.productId}}` | Shopify's internal product ID (GID) | Both triggers |
| `{{trigger.variantId}}` | Shopify's internal variant ID (GID) | Both triggers |
| `{{trigger.productTitle}}` | The product's title | Both triggers |
| `{{trigger.variantTitle}}` | The chosen variant, for example size or colour | Both triggers |
| `{{trigger.productHandle}}` | The product's URL handle | Both triggers |
| `{{trigger.productImageUrl}}` | Link to the product image | Both triggers |
| `{{trigger.productUrl}}` | Link to the product page | Both triggers |
| `{{trigger.price}}` | The variant price (text) | Both triggers |
| `{{trigger.inventoryQuantity}}` | Current stock for the variant | Both triggers |
| `{{trigger.subscribeToNewsletter}}` | Whether the shopper ticked the newsletter box (true or false) | Signed Up trigger only |
| `{{trigger.shopName}}` | Your store's name | Notification Ready trigger only |
| `{{trigger.shopDomain}}` | Your store's domain | Notification Ready trigger only |

## Example: a branded restock email

Create a workflow, choose the trigger Back-in-stock notification ready, add a Send email action, and drop `{{trigger.customerEmail}}` in To and `{{trigger.productTitle}}`, `{{trigger.productImageUrl}}`, and `{{trigger.productUrl}}` into the Subject and Body. Then turn the workflow on.
 
## Example: handling newsletter sign-ups

Choose the sign-up trigger, add a Condition (Subscribed to Newsletter equals true), and on the "true" branch update the customer's marketing consent or add a tag for your email tool to pick up.

## Testing and troubleshooting

Use Flow's Test button and its Run history, which shows you the exact data a trigger sent. If a workflow is not running, check three things: the channel is set to Shopify Flow, the workflow is turned on, and the Timesact app extension is enabled. Flow runs in the background, usually within 10 to 60 seconds.
