Before you start
Before you build the flow itself, prepare the campaign you want to send when the trigger fires.Create an automated campaign
Create an automated campaign in the channel you plan to use: email, SMS, Viber, mobile push, or web push.
How the trigger works
The flow launches on the Viewed Product Changed — Product Returned to Availability event.- The trigger fires every time a product transitions from out of stock back to in stock. If a product cycles in and out of availability, each return to stock can trigger the flow again.
- The trigger fires per product. If several products that a customer viewed come back in stock at the same time, the flow runs separately for each one.
Build the flow
Add the trigger
Set the flow to start on the Viewed Product Changed — Product Returned to Availability event. Apply a per-customer frequency cap so the customer cannot enter the flow multiple times in parallel.
Restrict send times
Add a condition that prevents the campaign from going out at night. If you run other product-availability campaigns in parallel, add a delay so this flow does not collide with them.
Validate the product view and stock
Add filters that confirm:
- The product view happened recently (so you don’t message customers about something they looked at months ago).
- The product is currently in stock at the moment the campaign is about to send.
Check subscription and contact data
Confirm the customer still has an active subscription for the channel you’re using and that you have valid contact information (email address, phone number, push token, etc.) for that channel.
Notes on cost and pacing
Recap
A well-built “Viewed Product Is Back in Stock” flow includes:- An automated campaign prepared in your chosen channel with the viewed product rendered inside it.
- The Viewed Product Changed — Product Returned to Availability trigger with a per-customer frequency cap.
- A nighttime restriction and a delay to coordinate with other availability flows.
- Filters confirming a recent product view and current stock.
- A subscription and contact-data check for the channel.
- The send step, optionally enriched with related products or recommendations.