# Connect Data to LoyaltyLion and automate your tasks

## Why integrate Data with LoyaltyLion

The Data to LoyaltyLion integration helps you sync data, automate manual tasks, and keep your stack aligned — without writing code.

### Track order history across every workflow run

MESA writes order details to a private table each time one is placed. Any workflow can look up that history — for loyalty checks, repeat purchase detection, or reporting — without querying Shopify directly.

### Build a customer loyalty tracker without a CRM

Data stores a running record of each customer's purchase count, total spend, or tier status. Workflows read that record to decide which emails to send, which tags to apply, or which rewards to trigger.

### Keep a running inventory log across all activity

Each time stock moves — sale, return, or restock — MESA writes the update to a Data table. Your other workflows and BI tools can query that record at any time for accurate, current counts.

### Keep loyalty status current across your marketing tools

When a customer earns or redeems points in LoyaltyLion, MESA updates their record in Klaviyo, Shopify, and connected platforms in real time. Your segments, flows, and CRM always reflect where each customer stands in your program without manual list updates.

### Enroll customers in your loyalty program based on Shopify behavior

When a customer hits a condition in Shopify — a first purchase, a spend threshold, a product category — MESA adds them to LoyaltyLion and sets the right starting tier. Your program grows with your customer base without anyone managing enrollments by hand.

### Trigger loyalty rewards at the moments that drive retention

When a customer reaches a milestone — a repeat purchase, a referral, a VIP threshold — MESA triggers the right LoyaltyLion action and can notify them through your preferred channel. Your program responds to behavior in real time, not on a delayed sync cycle.

## Build any Data and LoyaltyLion automation

MESA helps you connect apps to automate repetitive tasks. A trigger is an event that starts a workflow, and actions are the steps that occur when it's running.

###### Customer Updated  
Starts when a customer account is updated with new information.

###### Email Unsubscribed  
Starts when a customer unsubscribes from an email list.

###### Record Created  
Triggered when a new record is added to a table.

###### Record Updated  
Triggered when a record in a table is created or an existing record is updated.

###### Add Points to Customer  
Increase the amount of points for an existing customer account.

###### Create Activity  
Start a new activity for existing customer accounts.

###### Create Order  
Start a new order when a purchase is made.

###### Get List of Activities  
Obtain a list of activities from existing customer accounts.

###### Get List of Customers  
Obtain a list of existing customer accounts.

###### Get List of Orders  
Obtain a list of orders from existing customer accounts.

###### Remove Points from Customer  
Decrease the amount of points for an existing customer account.

###### Update Activity  
Update an activity for existing customer accounts.

###### Update Order  
Update an order's details for existing customer accounts.

###### Create Record  
Create a new record in a new or existing table.

###### Custom SQL Query  
Run a custom SQL query to fetch a list of records.

###### Delete Record  
Delete one or more records in a table.

###### Query  
Run a query to fetch a specific list of records in a table.

###### Update or Create Record  
Update existing record(s) if found, otherwise create a new record.

###### Update Record  
Update existing record(s) in a table.

## Expert support included

### Free workflow setup

We'll build your first workflow with you live. Most merchants walk away with automation saving 5+ hours/week.

### Fast response times

Average first response: Same day. Critical issues: Immediate escalation. Complex builds: 24-48 hours.

### Managed services available

Personalized workflow reviews, and quarterly check-ins to identify new opportunities as your business grows.

### Real humans, always

Chat with real automation experts (not bots). Email support 9am-5pm PST. Google Meet sessions for complex workflows.

## Integrate Data with LoyaltyLion today.

Enjoy a 7-day free trial. Get your first workflow in minutes.
