# Tag Orders with the Weather Forecast

5 min setup  
No coding required  
Runs automatically

Stay ahead of shipping delays by tagging new Shopify orders with the 3-day weather forecast, including high and low temperatures for the delivery zip code. Use these insights to adjust fulfillment timelines, optimize shipping, and proactively manage potential weather-related issues for a better customer experience.

## How it works

4 steps to  
get weather forecast tags on orders based on customer shipping locations

### Order Created

App connector: [Shopify](/content/apps/shopify/integrate "View Shopify integration page"/index.html)• Time to complete: 0 minutes (Auto-configured)

**Why this matters:** This trigger captures every new order placed in your Shopify store and extracts the shipping address data needed to fetch location-specific weather information.

### Retrieve Weather Forecast

App connector: [Weather](/content/apps/weather/integrate "View Weather integration page"/index.html)• Time to complete: 2 minutes

**Why this matters:** This step connects to a weather API service to fetch the 3-day forecast for your customer's shipping location, providing the meteorological data that will be converted into order tags.

### Map forecasts to tags

App connector: [Transform](/content/apps/transform/integrate "View Transform integration page"/index.html)• Time to complete: 0 minutes (Auto-configured)

**Why this matters:** This step converts raw weather data into a clean, readable tag format that provides quick weather insights directly on each order without opening external weather apps.

### Order Add Tag

App connector: [Shopify](/content/apps/shopify/integrate "View Shopify integration page"/index.html)• Time to complete: 0 minutes (Auto-configured)

**Why this matters:** This final step applies the formatted weather tag to the original order in Shopify, making weather information visible in your order management interface for shipping and fulfillment decisions.

## Frequently asked questions

### Will weather data be accurate for international orders?

The workflow uses zip codes to fetch weather data, so it works best for US-based shipping addresses. For international orders, you may need to modify the location parameter to use city names or postal codes depending on your weather API provider's coverage.

### What happens if the weather API is unavailable when an order is placed?

If the weather service is down or returns an error, MESA will skip the weather tagging step and process the order normally without the weather tag. The order still gets created successfully - it just won't have weather information attached.

### Can I customize the tag format to show different weather information?

Yes, you can modify the Transform Mapping step to include additional weather data like precipitation chance, humidity, or weather conditions (sunny, rainy, etc.) by adjusting the mapping logic to pull different fields from the weather API response.

## Make this template your own!

Customize this workflow even further:

Set temperature thresholds for special handling  
Create conditional logic that applies different tags or actions based on temperature ranges, such as flagging orders shipping to locations expecting extreme heat or cold for special packaging requirements.

Connect weather data to inventory decisions  
Extend the workflow to automatically adjust product recommendations or inventory alerts based on upcoming weather conditions, like prioritizing winter gear when cold weather is forecasted for customer locations.

Store weather patterns in tables  
Save historical weather data alongside order information in MESA Tables to analyze seasonal buying patterns, optimize marketing campaigns, or predict demand based on weather forecasts.

Deploy AI agents for weather-based recommendations  
Let AI agents evaluate weather conditions and customer purchase history to automatically suggest complementary products or apply weather-appropriate discounts during checkout.
