Overview
A notification flow is everything that happens after a notification's trigger: the steps that decide who receives a message, when it arrives, and which channel delivers it.
Learn how to build a complete notification flow, using a delayed shipment notification as a worked example. This guide walks you through choosing a trigger, filtering and branching with conditions, timing the message, choosing the channel, and testing before you go live. Once live, each shopper gets the message that fits their situation, and shoppers whose problem has already resolved hear nothing.
Before You Begin
Requirements
A trigger chosen for your notification. Checkout Choose what triggers a notification for more details
Limitations
Not every trigger offers every step, so the panel you see depends on the trigger
Status unchanged appears only on some triggers
Available conditions depend on the trigger, so a return condition doesn't appear on a shipment notification
A few triggers support no filtering or branching at all
How the Editor Is Organized
The trigger decides when a notification starts. Every step after it decides who receives a message, when it reaches them, and how it's sent.
In the editor, the steps you can add sit in a panel on the left, arranged in 3 groups:
Group | Steps |
Logic | Conditional split, A/B Test |
Timing | Time delay, Status unchanged |
Actions | Send email, Send SMS, Send internal email, Send internal SMS |
The canvas starts with the trigger card and finishes at an End node. Your flow is whatever you place between those two.
The notification editor: the step panel on the left, and the flow running from the trigger to End on the canvas
The Example Used in This Guide
Throughout this guide, you build one notification: a message for shipments marked as delayed.
A delay isn't always worth a message. Many shipments pause for a day and then start moving again. If you email the shopper the moment a delay appears, you often worry them about a problem that fixes itself. So this notification checks whether the delay is real before saying anything:
Trigger: The notification starts when a shipment is marked as delayed.
Timing: The notification waits 3 days. If the shipment starts moving again during that time, the run stops and the shopper hears nothing.
Action: If the shipment still hasn't moved after 3 days, the notification emails the shopper.
Logic: For high-value orders, the notification also sends an SMS, so your most valuable shoppers get a second, faster alert.
Here's what each shopper receives once the flow is live:
After 3 days | Standard order | High-value order |
Shipment is moving again | No message | No message |
Shipment hasn't moved | Email and SMS |
Each step below adds one piece of this flow and explains why it's there.
Build the Shipment Notification Flow
Step 1: Create the notification and choose the trigger
The trigger sets the starting moment for the whole flow. For this example, that moment is a shipment being marked as delayed. The trigger also decides which steps appear in the panel, so choose it first.
Go to Customer experience > Notifications in your AfterShip Platform admin.
Click Create a notification.
Choose the trigger for a delayed shipment under Exceptions category.
Note: If a step you need is missing from the panel, the trigger doesn't support it. See Choose what triggers a notification for to understand what each trigger offers.
Step 2: Narrow who enters with trigger filters (optional)
The trigger is broad by design and implementation. In this example, the trigger card reads When shipment status is Exception, so every shipment that hits an exception could start the notification. Trigger filters narrow that group down, so only the shipments you care about enter the flow. A shipment that doesn't match the filters never enters, and the shopper receives nothing from this notification.
Each filter has 3 parts: a property, a comparison, and one or more values. Filters sit inside filter groups, and each group starts with Where. You can add more filters to a group, or add a separate group and choose how the groups combine.
The screenshot shows 2 filter groups:
Group 1: Sub status is any of Exception, Delayed (Customs clearance), Delayed (External factors), Delayed (Processing issue), Delayed (Extreme weather), and Delayed (Late flight). This keeps the flow focused on delays and exceptions rather than every possible sub status.
Group 2: Source is any of
shopify. This targets shipments from your Shopify store.
The 2 filter sets are joined with Or, so a shipment needs to match only one group to enter. A shipment with the sub status Delayed (Late flight) enters. A Shopify shipment also enters, even if its sub status isn't on the list. Choose the combination that matches the shoppers you want to reach.
Click the trigger card on the canvas to open its settings panel.
Under Trigger filters, choose a property, such as Sub status.
Choose a comparison, such as is any of, and select the values.
To add another filter to the same group, click + Add filter.
To add a separate group, click + Add filter group, then choose how the groups combine.
The Trigger filters panel for the Shipment delayed notification, with the same filters summarized on the trigger card
Note: The trigger card on the canvas summarizes every filter you add. Check the summary to confirm the flow starts for the right shipments.
Step 3: Stop runs that no longer apply with exit conditions
Trigger filters check a shipment once, when it enters the flow. Exit conditions keep checking while the run is under way. If a shopper meets an exit condition at any point, they leave the flow and receive no further messages from it. The panel describes this as: a customer exits the flow if the conditions are met.
Exit conditions support the same filters as trigger filters, and you build them the same way: a property, a comparison, and a value, inside filter groups.
The difference is timing. A trigger filter decides who starts the flow. An exit condition decides who leaves part way through.
This matters most in flows that wait. In this example, the flow waits 3 days before sending anything, and a lot can change in 3 days. If the shopper cancels the order during that time, they shouldn't receive an email about a delayed shipment they no longer want. An exit condition for canceled orders ends the run before the email goes out.
In the screenshot below, the exit condition is Total spent in 30 days is $50. If the shopper's total spend in the last 30 days matches that value during the run, the shopper exits the flow. The value 50 is this demo store's setting, so enter the value that fits your store.
In the trigger card's settings panel, scroll to Exit conditions.
Choose a property, such as Total spent in 30 days.
Choose a comparison, such as is, and enter a value.
To add more conditions, click + Add filter or + Add filter group.
The Exit conditions section, with the condition summarized under Exit condition on the trigger card
Note: Any filter you can use under Trigger filters is also available under Exit conditions.
Step 4: Wait for the delay to prove real with Status unchanged
This step is what makes the example work. The Timing group gives you 2 ways to wait, and they behave differently:
Time delay holds the notification for a set period, then always continues. It suits follow-ups, and letting a situation settle before you comment on it.
Status unchanged continues only if the shipment's status stays the same for the whole waiting period. If the status changes, the shipment doesn't continue to the next step.
A Time delay here would wait 3 days and then email every shopper, including those whose shipments started moving again. Status unchanged only lets the stuck shipments through. That's how you send "your shipment hasn't updated in 3 days" without sending it to shipments that are progressing normally.
When you add the step, the canvas shows it as Shipment status remains unchanged for, and clicking it opens the Trigger status unchanged panel. The panel has 2 parts: Basic configuration, which sets how long to wait, and Advanced configuration, which sets what counts as a change.
Set how long to wait
The settings under Basic configuration work together to decide the exact moment the next step runs:
Delay duration is the length of the wait. In this example, it's 3 days.
Time zone decides whose clock the wait follows. Here, it uses your organization's time zone.
Use specific time of day makes the next step run at a set time once the wait ends. Here, that's 12:00 am. Choose a time that suits when you want shoppers to receive the message.
Count business days only skips the days you don't select. Here, only Monday through Friday count, so weekends don't use up the waiting period.
Here's how those settings combine. If a shipment enters this step on a Monday, the wait counts Tuesday, Wednesday, and Thursday. If the status still hasn't changed, the email goes out on Thursday at 12:00 am. If the shipment enters on a Thursday, the weekend doesn't count. The wait covers Friday, Monday, and Tuesday, so the email goes out on Tuesday at 12:00 am.
The top of the panel summarizes your choices in one line, under Trigger next step if.
From the Timing group, add a Status unchanged step after the trigger.
Under Delay duration, enter
3and select days.Under Time zone, choose the time zone the wait follows.
Select Use specific time of day, and choose the time the next step runs.
Select Count business days only, and choose the days that count.
Decide whether a sub-status change counts
A sub status is a more detailed state under the main status. For example, Delayed (Customs clearance) and Delayed (Late flight) are both sub statuses. A shipment can change sub status without changing its main status.
Under Advanced configuration, Treat sub-status changes as status changes decides how the step reacts to that. When you select it, the next step runs only if both the main status and the sub status stay the same. A shipment that moves from Delayed (Customs clearance) to Delayed (Late flight) counts as changed, so the shopper doesn't receive this email. Select this setting when a new sub status means the situation has changed enough that your message no longer fits.
The Trigger status unchanged panel, with the step shown on the canvas as Shipment status remains unchanged for, followed by Send email
Important: Status unchanged is the step most often unavailable. Check that your trigger supports it before you plan a flow around it.
Step 5: Email the shopper
Every shipment that reaches this point has been stuck for 3 days. Each of these shoppers should hear from you, so the email goes before any branching.
From the Actions group, add a Send email step after Status unchanged.
Choose an existing template or compose new content.
For help with templates and content, see Design emails: editors, templates and dynamic sections.
Step 6: Branch by order value with a conditional split
A conditional split sends shipments down one branch or another part way through the flow. Both branches continue. They receive different treatment.
This is different from a trigger filter. A trigger filter decides whether a shipment enters at all. A split decides which path it takes once inside. In this example, every shopper with a stuck shipment has already received the email. The split decides who also gets an SMS. Use a split whenever everyone should hear from you, but not with the same message.
From the Logic group, add a Conditional split after Send email.
Set the property to
Total spent in the last 30 daysChoose the comparison, and enter the amount that counts as high value for your store.
Step 7: Add an SMS for high-value orders
Now give each branch its outcome. The high-value branch gets an SMS. The standard branch gets no further action, so its run ends after the email. A branch with no action sends nothing and ends there. That's a valid way to say "in this case, say nothing", but make sure it's deliberate.
On the high-value split branch, add a Send SMS step.
Compose the message text.
Turn on quiet hours for the step.
Leave the standard branch without an action.
SMS has its own constraints and compliance requirements. Quiet hours stop SMS from arriving at unsociable times in the shopper's region. You set quiet hours once in Settings and turn them on for each SMS step. This lets you allow a truly urgent message through. Leave quiet hours on unless the message is time-critical.
You can also add an internal action on the high-value branch. Send internal email and Send internal SMS alert people in your organization, such as your support team, and never reach the shopper. Some events deserve your team's attention more than a message to the shopper, like a delivery exception on a high-value order.
Tip: Another effective pattern: send the email first, then follow it 2 days later with an SMS only if the shipment still hasn't moved.
Step 8: Compare two versions with an A/B test (optional)
An A/B Test, in the Logic group, divides shoppers between 2 paths. This lets you compare wording, timing, or channel on real traffic. In this example, you could test 2 versions of the email's wording to see which one leads to fewer support tickets.
From the Logic group, add an A/B Test where the paths should differ.
Set up each path with one difference between them.
Change one thing at a time, so you know what caused the result. Leave the test running long enough for the results to be worth reading.
Step 9: Limit how often the notification runs
Some triggers can fire more than once for the same record. A shipment can hit an exception, start moving, and hit another exception a week later. Without a limit, the shopper gets the same delay messages each time. Trigger frequency controls this. It sits on the trigger card's settings panel, between Trigger filters and Exit conditions, and only some triggers offer it.
When you turn on Trigger frequency, you choose between 2 options:
Never re-trigger: The same shipment won't trigger the flow again. The shopper hears about a delayed shipment once, no matter how many times its status changes.
Re-trigger after duration: The same shipment can trigger the flow again, but only after the period you set.
In this example, Never re-trigger is selected, and the trigger card confirms it under Frequency control: the same shipment won't trigger this flow again.
The record the limit counts against depends on the trigger: an order, a fulfillment, a shipment, or a return request. This notification counts per shipment. Other triggers count differently. For example, Processing counts per fulfillment, so an order split into 3 fulfillments runs that notification 3 times unless you limit it.
In the trigger card's settings panel, turn on Trigger frequency.
Select Never re-trigger or Re-trigger after duration.
If you chose Re-trigger after duration, set the waiting period.
The Trigger frequency setting, summarized under Frequency control on the trigger card
Step 10: Save and test the notification
Before shoppers see anything, confirm that the flow behaves as you planned.
Save the notification.
Check that both branches of the split lead to End.
Send a test.
Turn on the notification.
What Your Shoppers Will Experience
After completing these steps:
Shoppers whose shipments start moving again within 3 days receive no message.
Shoppers whose shipments stay stuck for 3 days receive an email.
Shoppers with high-value orders receive an email and an SMS.
Shoppers who cancel during the waiting period receive no message.
Your team receives an alert if you added an internal action.
FAQs
1. What's the difference between a trigger filter and a conditional split?
A trigger filter decides whether a record enters the notification at all. A conditional split decides which path it takes once inside. If a shopper should hear nothing, filter at the trigger.
2. Why is Status unchanged missing from my panel?
Your trigger doesn't support it. The panel only offers steps that the trigger allows.
3. What happens if a branch has no action?
Nothing is sent on that branch, and the run ends there. This is a valid way to send nothing in a specific case, so check that it's deliberate.
4. Can an internal notification go to someone outside my organization?
No. Send internal email and Send internal SMS reach members of your organization only.
5. Do quiet hours delay an SMS or cancel it?
Quiet hours prevent sending during the restricted window. Leave them on unless a message is time-critical.
Key Takeaways
Steps sit in 3 groups (Logic, Timing, and Actions), and the canvas runs from the trigger to End
Trigger filters exclude, splits branch, and exit conditions stop runs that no longer apply
Status unchanged makes proactive messages possible but isn't available on every trigger
Trigger frequency counts per entity, which isn't always the order
Internal email and SMS are steps inside the notification, not a separate setting







