# Connect Gmail to Wonderment and automate your tasks

## Why integrate Gmail with Wonderment

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

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

### Trigger post-purchase flows the moment a shipment status changes

When Wonderment detects a delivery update — a shipment in transit, an exception, a delivered confirmation — MESA kicks off the right workflow in Shopify or Klaviyo. Your post-purchase experience runs on what's actually happening with each package, not on a fixed schedule.

### Keep Shopify customer records current with delivery outcomes

When Wonderment logs a delivery event — a successful delivery, a failed attempt, a return to sender — MESA updates the customer's Shopify record with the outcome. Your team and your connected tools always reflect where each order ended up without manual updates.

### Alert your team when shipments need immediate intervention

When Wonderment flags an exception — a stalled shipment, a carrier delay, a missing package — MESA notifies the right person through Slack or email before the customer contacts support. Your team resolves delivery problems while there's still time to act.

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

###### Attempted to Deliver Shipment

Starts when a package can't be delivered and is held by the carrier for re-delivery.

- Topic
- Status
- Token
- Email
- Phone
- Tracking Code
- Tracking U R L
- Order Number
- Order ID
- Carrier Name
- Estimated Package Delivery
- Service Level
- Service Level Friendly Name
- Destination Country Code
- Fulfillment Created Date
- Order Created Date
- Business Days Since Fulfillment Created
- Hours Stalled
- Not Updated Since
- Line Items
- Shipping Address
- Fulfillment Address

###### Carrier Picked Up Shipment

Starts when a shipment is first marked In Transit by the carrier.

###### Delivery Anticipated for Shipment

Starts when a shipment is expected to be delivered.

###### Label Canceled

Starts when a label has been canceled.

###### Shipment Confirmed

Starts when a shipment is confirmed.

###### Shipment Created

Starts when a shipment is created.

###### Shipment Experienced Delivery Error

Starts when a package delivery error occurs.

###### Shipment is Ready for Pickup

Starts when a shipment is ready for pickup.

###### Shipment Returned

Starts when a package has been sent back to the origin facility.

###### Shipment Stalled

Starts when a shipment is stalled.

###### Shipment's Status is Delivered

Starts when a shipment is delivered.

###### Shipment's Status is In Transit

Starts when a shipment is in transit.

###### Shipment's Status is Out for Delivery

Starts when the carrier confirms the package has been handed off for delivery.

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

###### Get List of Order's Shipments

Obtain a list of an order's shipments.

- Name
- Shipments

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