Drive Repeat Shopify Customers With Personalized Thank You Postcards
Tags: shopify, zapier, tutorial
Published: 2022-05-03 18:04:31

You spend a lot of time and money acquiring customers - so much that there's an acronym for it - CAC or customer acquisition cost. One of the best ways to drive down your customer acquisition costs is to increase repeat customers. How much more valuable are repeat customers to your business? On average, repeat customers spend 3x more than one-time shoppers. 

There are many ways to get repeat customers. You may have started a loyalty program, emailed out special offers or employed retargeting campaigns to encourage customers to return and complete that next purchase. The problem is digital channels are saturated and customers are harder to reach. **Research shows the average consumer receives 88 emails per day. One way to diversify your marketing channels is by incorporating direct mail to reach your existing customers and turn them into repeat customers.**

In this article, we'll show you how to send a follow up email (with Gmail) and a postcard (with [Lob](https://www.lob.com/)) when an order is fulfilled from your [Shopify](https://www.shopify.com/) store. [Zapier](https://www.zapier.com/) the no code tool will help us automate this workflow. Once set up, the emails and postcards will go out automatically.

## What you’ll need to configure the automated workflow

Access to the following accounts:

- Your Shopify store
- Zapier account - [sign up](https://zapier.com/sign-up/) for the starter plan with a 14-day free trial \
- (Shopify is a premium app)
- Lob account - free to [sign up](https://dashboard.lob.com/#/register) and create test postcards
- Gmail account - free to [sign up](https://accounts.google.com/SignUp)

Zachary Swetz, product manager at [Clearbit](https://clearbit.com/) inspired the workflow we’ll use in this blog post.  The workflow is titled [Drive repeat Shopify customers with a personalized thank you email and postcard after they purchase](https://zapier.com/shared/aa586d8688359a082088594e613f28a54d833253).

You can also see the setup in this [10 minute video](https://youtu.be/av2bcKvUV4M).

## Create test order data in Shopify

Let’s start by creating a test order with your email address. As we configure the workflow, we'll retrieve your test order from Shopify and use that customer information to send an email and create a test postcard.  

1. [Login](https://accounts.shopify.com/store-login) to your Shopify account
2. Navigate to Customers and create a new customer with your name and email address
3. Don’t forget to tick the box “Customer agreed to receive marketing emails."
4. Complete the address details and Save.

![shopify2.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735400232/iNNSo3iXJ.png)

Next, click **Create Order** for your newly created customer.

1. Browse products and **Add a product **to the order
2. Collect payment and select **Mark as Paid ** 
3. Click **Save** on the order
4. Click the **Fulfill item** button

![shopify3.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735419011/CAAlukZsM.png)

## Configure the Zap

We are ready to connect Shopify, Gmail and Lob. 

Go to our Zap page: [Drive repeat Shopify customers with a personalized thank you email and postcard after they purchase](https://zapier.com/shared/aa586d8688359a082088594e613f28a54d833253).

Click on the **Try this Zap **button and login to your Zapier account.

## Get order data from Shopify

We are going to trigger our Zap every time we get a new order on Shopify. 

First, **choose a Shopify account or connect a new account** in Zapier.

![shopify4.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735438661/dVz_Cneim.png)

**Run a Test trigger** to confirm you are receiving data from Shopify.

![shopify5.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735448316/Q7GOSrEVv.png)

## Filter orders from Shopify

We don’t want to send postcards to EVERY order in our Shopify store - only under the following conditions.

**DO NOT** continue unless the order status = *Fulfilled*

**DO NOT** continue unless the customer has chosen to *Accept Marketing*

This means Shopify orders whose Lineitems Fulfillment Status equal “fulfilled” and Customer Accepts Marketing equals true.

You can modify these filters to support your specific use case.

The Zap is already configured for you. Click **Filter setup and testing**, then **Continue** to see the test order from Shopify.

![shopify6.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735490142/VMbl9_see.png)

The green banner with the message **Your Zap would have continued**, means your filter worked successfully on the test order from Shopify.

![shopify7.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735500656/ws0Atndu2.png)

## Connect to Gmail to send a personalized email

Click **continue** to select which Gmail account to send an email from.

If you connected your Gmail account previously, choose your email address or click **Connect a new account**.

![shopify8.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735536391/L_yE5V7aG.png)

Click **To continue, finish required fields**.

You’ll see we **populate the To** with the customer email address from our Shopify test order.  Scroll down and update the **From Name **and **Reply To** email address to your own.

![shopify9.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735549132/UcIfy_mDf.png)

Send a test email to the Shopify test customer email address (make sure it’s YOU and not a real customer!).

![shopify99.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735563721/QhGX4wVYG.png)

Check the **Sent folder** in your Gmail Inbox to find the email.

![shopify999.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735575944/yWXc3g7b9.png)

## Send the customer a personal postcard in Lob

Now we move to the Lob action in the Zapier workflow. The Choose app & event section is already configured. No action is required.

![shopify10.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735605721/SmUaATB-b.png)

Next, select **Choose account.** From the Lob account drop down **select an existing Lob account or connect a new account**.

![shopify11.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735613899/vMifItG-h.png)

You’ll be prompted to enter your Lob API keys.

![shopify12.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735624074/FH6AtT8Bh.png)

Login to your Lob.com account and go to [Settings > API Keys](https://dashboard.lob.com/#/settings/keys). Copy your Test Environment API key and paste into Zapier.

![shopify13.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735639525/oP8nwBTSr.png)

Back in Zapier, you can open the **Set up action** tab to see how we’ve configured the postcard. 

- Front File for Postcard points to a PDF image.
- Back File for Postcard is inline HTML you can modify

Choose Lob under **Test action** to confirm your test postcard is created successfully.

![shopify14.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735656084/3TAOeH-qF.png)

Login to Lob.com dashboard and go to the **Postcards ** section to see a preview of your test postcard.

![shopify15.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1648735667473/gnS5L3tFp.png)

That's it! Now, after customers purchase on your store, you automatically:

- Send a thank-you email
- Ask for a review to support my product
- Send a thank-you postcard directly to their shipping address!

When you are ready, to turn on this Zap, upgrade to a paid Lob account and make sure you update your Lob API key from Test to Live.

*To learn more about Lob, visit our [developer portal] (https://www.Lob.com/developers); you can create an account and snag your API keys to try at no cost. You can also dive into our API docs [here](https://docs.lob.com/).