Learn about the types of workflows that you can create by reviewing some great examples.
In addition to the examples on this page, you can also find workflows in the following ways:
- Explore templates to find automations that you can use right away or that you can customize for your store.
- View examples on our Connectors page.
- Import and export workflows and share them with other merchants or partners.
- Visit our blog to learn about interesting use cases.
Workflows that run when an order is created
- Tag customers based on whether their order includes discounts:
- Add loyalty tags to customers based on their order amount:
- Easily implement loyalty and retention initiatives by segmenting customers with customer tags based on their lifetime spend amount:
Workflows that run when an order's risk is analyzed by Shopify
Receive an email when an order's risk level is high and tag the order. If the risk level is medium or low, then capture the payment: For the above workflow to work, your store must be set up to manually capture payments.
Workflows that run when an order is paid
- Reward your top customers when they create a large order. If a paid order totals more than $500, then add a customer tag and send a Slack message to your customer service team to send a personal thank you to your customer:
Workflows that run when an order is fulfilled
- Prompt your localized corporate sales representative to initiate an onboarding call when a wholesale order is fulfilled in their region:
Workflows that run when an order is refunded
- Track customers who have refunded items that are over $100:
Workflows that run when the inventory for a product changes
When a product is almost sold out, send a reorder email to the vendor. This type of workflow requires that you check both the amounts before and after the inventory changes. If you check the amount only after the inventory changes, then the reorder email could be sent each time the product is ordered until the product is restocked. In the above example, there are 6 T-shirts in the store. John orders 1 T-shirt. The inventory is now 5, so a reorder email is sent. Later, Karim orders 1 T-shirt. The inventory is now 4, but no reorder email is sent. If you omitted the Product variant inventory quantity prior condition, then another email would be sent after Karim's order.
If a product is out of stock and it has a discontinue tag, then hide the product from the online store and remove it from your manual collections:
Inform your customers when a product is out of stock that it has been reordered. Tag the out of stock product with a coming-soon tag. Edit your theme to display a message in the store that the product will soon be available:
Workflows that run when a product is added
Automatically add tags to newly created products based on the product title. If a product's title contains the word T-shirt, then add a t-shirt product tag and add it to a manual collection:
Workflows that run when a customer is created
Tag customers based on their email addresses. If a customer is created and their email includes .edu, then add your educational discount tag:
The following list contains examples of messages and notes that use template and Liquid variables.
Template variables and Liquid examples
- For example, you have a workflow that sends an email when a customer spends more than $500 on an order.
When a customer, Jeanne Dupont, creates an order for $1000, the following message is sent by the workflow:
- In the following example, the title of the discontinued product appears in the message:
- In the following example, the title of variant appears in the message:
- In the following example, the customer's name and email address along with the total of their last order appears in the message:
- In the following example, the title of the product appears in the message:
- In the following example, the order ID appears in the message:
- In the following example, the order number and the customer's name and email address appears in the message:
- In the following example, the name of the customer, their email address, and the total price of their last order appears in the message along with a link to the order in your Shopify admin:
For Loop examples
When an offer is received, it can be useful to send a message that contains the products ordered. You can do this by using
for loops and the lineItems template variable.
Here's an example that uses a for loop to list the SKUs and quantities in all the lineitems:
When the message is sent, the for loop code is replaced with the list of SKUs:
In this example, the for loop is used to list all the lineitems:
In this example, an
if is used inside the
for loop to list lineitems from a specific vendor: