# Connect Email to Facebook and automate your tasks

## Why integrate Email with Facebook

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

### Trigger customer alerts the moment something changes

When a Shopify event fires, MESA sends a targeted email to the right person — customer, teammate, or vendor — with order details, tracking info, or status updates pulled directly from the workflow.

### Turn inbound emails into workflow triggers

Every email sent to your custom MESA address becomes a workflow trigger. Subject line, sender, and message body pass through as variables, so you can route, log, or respond to inbound email automatically.

### Send personalized transactional emails at scale

Each email MESA sends can include customer names, order details, and product data pulled directly from the workflow. Recipients get accurate, relevant communication without any manual drafting.

### Sync Shopify audiences to Facebook Ads in real time

When a customer's tags, purchase history, or lifecycle stage changes in Shopify, MESA updates the corresponding Facebook Ads audience. Your campaigns always target the right people without manual list exports.

### Launch retargeting audiences from Shopify order events

When a customer abandons checkout, completes a first purchase, or hits a spend threshold, MESA adds them to the right Facebook Ads audience automatically. Your retargeting runs on live customer behavior, not a weekly CSV upload.

### Pause or adjust campaigns when inventory runs low

When stock drops below a threshold in Shopify, MESA triggers a Facebook Ads update — pausing a campaign, adjusting a budget, or flagging it for review. You stop spending on products you can't fulfill without checking ad accounts manually.

## Build any Email and Facebook 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 by sending an email to a custom MESA email address.

- To  
- From  
- From Name  
- From Email  
- Subject  
- Message Text  
- Message HTML  
- Message Stripped Text  
- Message Stripped HTML  
- Stripped Signature

###### Add User to Custom Audience

Add a user to a custom audience based on matching availability.

- Audience ID  
- Num Invalid Entries

###### Create Ad

Create a new ad.

- Name  
- Ad Set ID  
- Campaign ID  
- Creative ID  
- Creative  
- Status

###### Create Ad Account Ad

Create a new Ad within an Ad Account.

- Name  
- Ad Set ID  
- Campaign ID  
- Creative ID  
- Creative  
- Status

###### Create Ad Account Ad Set

Create a new ad set within an Ad Account.

- Name  
- Daily Budget  
- Bid Amount  
- Billing Event  
- Optimization Goal  
- Campaign ID  
- Promoted Object  
- Targeting  
- Status  
- End Time

###### Create Ad Account Campaign

Create a new campaign within an Ad Account.

- Name  
- Special Ad Categories  
- Objective  
- Status

###### Create Ad Set

Create a new Ad Set.

- Name  
- Daily Budget  
- Bid Amount  
- Billing Event  
- Optimization Goal  
- Campaign ID  
- Promoted Object  
- Targeting  
- Status  
- End Time

###### Create Product

Create a new product.

- Name  
- Currency  
- Price  
- Image URL  
- Category  
- Retailer ID  
- URL  
- Description  
- Short Description  
- Brand

###### Delete Ad

Remove an existing ad.

- Success

###### Delete Ad Set

Remove an existing ad set.

- Success

###### Delete Campaign

Remove an existing campaign.

- Success

###### Get Ad Account Insights

Generate a custom report to get statistics for campaigns belonging to an ad account.

- Impressions  
- Ad ID  
- Date Start  
- Date Stop

###### Get Ad Insights

Generate a custom report on the performance of the ad.

- Impressions  
- Ad ID  
- Date Start  
- Date Stop

###### Get Ad Set insights

Generate a custom report on the performance of the ad set.

- Impressions  
- Ad ID  
- Date Start  
- Date Stop

###### Get Campaign Insights

Generate a custom report on the performance of the campaign.

- Impressions  
- Ad ID  
- Date Start  
- Date Stop

###### List Ad Account Campaigns

Obtain a list of campaigns for an ad account.

- ID  
- Name  
- Special Ad Categories  
- Objective  
- Status

###### List Ad Set Ads

Obtain a list of ads belonging to an ad set.

- Name  
- Ad Set ID  
- Campaign ID  
- Creative ID  
- Creative  
- Status

###### List Campaign Ad Sets

Obtain a list of ad sets for a campaign.

- Name  
- Daily Budget  
- Bid Amount  
- Billing Event  
- Optimization Goal  
- Campaign ID  
- Promoted Object  
- Targeting  
- Status  
- End Time

###### List Campaign Ads

Obtain a list of ads for a campaign.

- Name  
- Ad Set ID  
- Campaign ID  
- Creative ID  
- Creative  
- Status

###### List Products

Obtain a list of products.

- Name  
- Currency  
- Price  
- Image URL  
- Category  
- Retailer ID  
- URL  
- Description  
- Short Description  
- Brand

###### Remove User from Custom Audience

Removes a user from a custom audience based on matching availability.

- Audience ID  
- Num Invalid Entries

###### Retrieve Ad

Grab all details about an existing ad.

- Name  
- Ad Set ID  
- Campaign ID  
- Creative ID  
- Creative  
- Status

###### Retrieve Ad Set

Grab all details about an existing ad set.

###### Retrieve Campaign

Grab all details about an existing campaign.

- ID  
- Name  
- Objective  
- Status

###### Update Campaign

Update an existing campaign.

- Name  
- Special Ad Categories  
- Objective  
- Status

## Integrate Email with Facebook today.

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