# Connect Data to Gmail and automate your tasks

## Why integrate Data with Gmail

The Data to Gmail 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.

### Send the right email at the right moment

When an order ships, a customer churns, or inventory runs low, MESA triggers the right Gmail message automatically. No missed sends, no manual follow-up queues.

### Keep your team in the loop on what matters

MESA sends internal Gmail alerts when orders hit thresholds, fulfillment stalls, or tasks need attention. Your team acts on real data, not status update requests.

### Log every outbound email as a record

Every Gmail message MESA sends gets written back to your spreadsheet, CRM, or order notes. You always know what was sent, when, and to whom.

## Build any Data and Gmail 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.

###### Receive Email  
Trigger a workflow when an email is received.  
- Thread ID  
- From  
- From Name  
- To  
- Cc  
- Bcc  
- Reply To  
- Subject  
- Message  
- Mime Version  
- X Mailer  
- Message ID  
- Snippet  
- Date  
- ID

###### 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 Label to Email  
Add a label to an email.  
- ID  
- Thread ID  
- Label Ids

###### Archive Email  
Archive an email.  
- ID  
- Thread ID  
- Label Ids

###### Forward Email  
Forward an email.  
- ID  
- Thread ID

###### Get List of Email's Threads  
Obtain a list of an email's threads.  
- ID  
- History ID

###### Get List of Emails  
Obtain a list of emails.  
- ID  
- Thread ID  
- From  
- From Name  
- To  
- Cc  
- Bcc  
- Reply To  
- Subject  
- Message  
- Snippet  
- Date  
- Mime Version  
- X Mailer  
- Message ID

###### Get List of User's Labels  
Obtain a list of a user's labels.  
- ID  
- Name  
- Type  
- Message List Visibility  
- Label List Visibility  
- Messages Total  
- Messages Unread  
- Threads Total  
- Threads Unread

###### Mark Email as Read  
Mark an email as read.  
- ID  
- Thread ID  
- Label Ids

###### Remove Label from Email  
Remove a label from an email.  
- ID  
- Thread ID  
- Label Ids

###### Retrieve User Profile  
Grab all details about a user's profile.  
- Email Address  
- Messages Total  
- Threads Total  
- History ID

###### Send Email  
Send a new email.  
- ID  
- Thread ID

###### 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.  
- Where

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

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

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

## Expert support included

MESA includes hands-on support from automation experts who know how to get things done.

### 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 Gmail today.

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