Parabola
HomeFeaturesExamplesPricingLearn

Automatically email customers whose orders are delayed in shipment

Consumer expectations when shopping online are high, and a solid email communication plan is table stakes for building trust among your customers and stimulating repeat business.

Order status is a particularly sensitive area for many customers, particularly as average order value increases. Keeping customer apprised of when they can expect their order to arrive is important.

Parabola can add value here by automatically emailing customers whose orders are delayed in shipment. This example shows how you might implement a program like that assuming that you use Shopify as your digital storefront. The example can easily be tweaked to pull from a variety of other ecommerce platforms including Wix, Weebly, Webflow, or Squarespace.

If you get stuck, have a question, or just want to chat (we're pretty fun), feel free to drop us a line on Intercom and say hello!

Get Started With This Template >
1
Checking order status with Parabola

The first step in our delayed-shipment notification flow is pulling in orders from Shopify. Parabola's generic API Import step makes it easy to pull in data from practically any web service. Connecting to Shopify is no different.

You'll want to drag out a new API Import step. Select 'Username & Password' from the authentication menu and supply your account id and password. Next, configure the url as shown below. Note: we are using the 2019-07 version of the Shopify API which should work fine for more than a year. At some point, though, you'll need to update your flow to reflect a more recent version of the API.

https://YOUR_STORE.myshopify.com/admin/api/2019-07/orders.json

For each order you're going to get back a bunch of fields, and you'll want to use Parabola's JSON flattener to extract the contents. The particular column we're interested in is fulfillments. As you'll notice, that includes two fields of interest: tracking_company and tracking_number. We'll keep those aside along with the order information and the customer email for later use.

2
Checking shipping status with the common carriers

The good news for you is that all of the major shipping carriers have well-maintained REST APIs, which means that you can use them in Parabola! If you only ship with one carrier then you're in luck, just register at the corresponding portal and secure your API token:

This example will assume orders are being shipped via the USPS API. To set that up, you'll want to drag out a new API Enrichment step, and hook it up to the rest of your flow. You can set up the URL as follows:

http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML= <TrackRequest USERID="YOUR_USER_ID"> <TrackID ID="{fulfillments.tracking_number}"></TrackID> </TrackRequest>

Now you'll get back the shipping statuses of all your orders, and it's easy to filter just for the ones that are delayed.

3
Email affected customers

Now that we know which customer orders are delayed in shipment, we can send a quick, apologetic note using Parabola's 'send emails' step.

You'll want to drag the Send Emails step out and hook it up to the rest of your flow. Next, you let Parabola know which column contains your customers' emails, and personalize the message. You can use curly braces to customize the messages: simply wrap the column name with curly braces and Parabola will substitute in the value found in that column as it moves through each row in the list.

Get Started With This Template >
Start automating with Parabola
Parabola is free to use for teams of any size. We also offer paid plans with additional features and support.