One of the best uses for Workflows is to build out an abandoned cart workflow. Use Workflows to remind your customers that they've left items in their cart, and encourage them to check out with additional discounts.
Setup the Workflow
Navigate to the Workflow Builder by clicking Workflows in the navigation sidebar. In the Workflows dashboard, click Create New.
Fill in a name for your Workflow, and head to Continue to setup.
You should have already set up your App Groups and your Global Events. If you haven't yet, follow the guides linked above.
After naming your Workflow, you'll need to select the App Group. Choose the App Group you'd like to target and click Confirm Audience.
Next, you'll need to select an entry event to qualify your users for the Workflow. In the case, we recommend picking your app's equivalent of "added item to cart." This will qualify all users who have added an item to their cart. (In the next step we'll begin segmenting out users who did check out vs. did not.)
When you've chosen your event, click Create Workflow to begin building!
Edit Re-Entry Limit
Before we dive into event listeners or push messages, you'll want to configure re-entry for your Workflow. Since this is a Workflow that can be entered more than once (as opposed to an onboarding workflow), you'll want to configure your Workflow to remove the limit entirely. Do so by clicking the Re-entry Limit button near the head of the page, and selecting Remove Limit.
Build the Workflow Actions
Add an Event Listener - Checkout
The first action you'll want to add to your abandoned cart Workflow is an Event Listener. To add any action to your Workflow, click the + on the page.
Choose Event Listener from the menu. From the drop-down menu, select your checkout event to listen for. We call ours "Localytics Checkout."
Next, choose the amount of time you want to wait for the end user to complete the event—to check out. Keep in mind, the smallest window is 1 hour. If you're unsure where to start, we recommend waiting an hour. You can always adjust this number in the future.
Now that we've added an Event Listener to the Workflow, we've set the user down one of two different paths. After they add an item to their cart, Localytics will listen for the checkout event. If they check out within the 1-hour window, the end user will head down the did path for the Workflow. If they don't check out in that window, they'll head down the Did not path.
We'll first build out the Did not path, before building the Did path.
Add a Message - Items Left in Cart
If a user does not check out within the 1-hour window, give them a little nudge with a push notification to remind them about the items left in their cart.
Click the + icon on the canvas under the Did not path.
Choose the Send push message option from the popup modal. Name the message by clicking on the default name (in this case Untitled Message), next to the blue paper airplane icon. We suggest something like Reminder Message #1.
Next, build your message. In the create modal, you can add:
- a title (optional),
- body,
- rich media (optional),
- deep link (optional)
- and key/value pairs (optional).
For our message we decided to go with:
Don't miss out! Your cart expires soon.
You didn't check out! An order this on point deserves some attention. Take 10% off your purchase 🙌

If you're working with different builds or your apps (iOS vs. Android), we'll copy over the Push title and the body between each creation tab. Since things like rich media, deep links, and key/value Pairs differ in how they're processed for each app, you'll want to make sure you build these in each app tab.
Once you've crafted your messages, click the Add button at the bottom of the modal to add the Push Message to your Workflow.
Now, your users that don't checkout immediately will get this reminder message.
Add an Event Listener - Checked Out
You've built your Workflow so that you send a push to folks who abandon your cart. Now it's time to add an Event Listener to see if they do what you suggested.
Click the + under the Push Message you just added.
Choose Add event listener from the pop-up list. You'll see the Event Listener modal appear, where you can edit your Event Listener. Choose your checkout event from the first drop-down menu—it will be the same event you picked to initially build your Workflow. In the case of our example, it's Localytics Checkout.
Next, select the amount of time you want to listen for the event. If you're not sure, we recommend you go with 1 day. Click the Add button to add the event listener to your Workflow.
The Event Listener we added will listen for a checkout event for 24 hours. If they do not check out with the 24 hour period, we'll send them 1 more push to get them to take action. If they do check out, we'll send them a thank you message.
Add a Message - Items Left in Cart 2
Under the second Did not path (after the push message reminding them to check out), click the + button.
Choose Send push message from the list. Name the message in the text field next to the blue paper airplane (in this case, we chose Reminder Message #2).
Next, add a body to your push message. Title, rich media, deep link, and key/value pair are all optional additions—so feel free to add those if applicable. Again, like when we added the first message, only the title and the body will copy across all of your apps. Make sure if you add any other elements (images, links), you add those for each app within the corresponding tab.
Click the Add button at the bottom of the modal to add your message to the Workflow.
Add a Message - Thank You
If you end user does checkout after they receive the message, why not send them a quick thank you to let them know you appreciate them?
Click the + on the canvas under the Did path. (You can add your thank you to the first Did split, or the second, or both!)
Choose Send push message from the pop-up modal. Name the message by changing Untitled Message (next to the blue paper airplane) to something like Thank You.
Craft your thank you message, remembering to add deep links, rich media, and key/value pairs individually to each app tab. Click the Add button at the bottom of the modal to add the message to your Workflow.
Review and Activate
After you've finished adding all of the elements to your Workflow, you're ready to review and activate it. Make sure everything is accurate in your Workflow (no one likes a tpyo).
When you're ready for the Workflow to greet the masses, hover over the Draft button at the top of the page. You'll see it turn to an Activate? button.
Click the new Activate button, and confirm that you're ready to set things live. Click Yes, I'm sure to go live.
And that's it—you're all set! You've built an abandoned cart workflow to help you increase your app's revenue.