Workflow automation that triggers promotional emails based on weather conditions using OpenWeatherMap API and Sendgrid. Ideal for marketing teams automating customer outreach.
git clone https://github.com/zenaton-samples/trigger-mails.gitThis skill implements a marketing automation workflow that monitors weather data and sends targeted promotional emails based on temperature conditions. It integrates OpenWeatherMap API to track daily temperatures and Sendgrid to deliver emails, automatically triggering a tropical vacation promotion after three consecutive days below 40°F. The workflow continues monitoring until either the cold weather threshold is met or a specified time period ends, then sends an alternative promotional email. Built on Zenaton's workflow orchestration platform, it demonstrates how to combine external APIs with time-based logic to create condition-triggered marketing campaigns. Agencies and e-commerce businesses can use this pattern to automate seasonal promotions tied to real-world environmental data.
Set up a Zenaton account with your API credentials, configure OpenWeatherMap and Sendgrid API keys as environment variables, then deploy the workflow. The system automatically monitors weather daily and triggers emails when conditions match your defined thresholds. Deploy to Heroku using the included deploy button or run locally with your configured credentials.
Tourism and travel agencies triggering vacation promotions during cold weather seasons
E-commerce retailers sending weather-triggered product recommendations
Marketing teams automating seasonal campaign activation based on temperature thresholds
Agencies demonstrating workflow automation powered by external API data
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/zenaton-samples/trigger-mailsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a marketing automation workflow that sends personalized emails to customers based on weather data. Use the OpenWeather API to fetch weather data for [CITY] and SendGrid to send emails. The email should include a subject line like 'Stay Cozy with [COMPANY] During [WEATHER_CONDITION]' and a body that recommends products based on the weather. For example, if it's cold, recommend warm clothing or if it's sunny, recommend sunglasses.
## Marketing Automation Workflow: Weather-Based Email Campaign ### Step 1: Fetch Weather Data - **API Used**: OpenWeather API - **City**: New York - **Current Weather**: Cloudy, 15°C - **Forecast**: Light rain expected tomorrow ### Step 2: Personalize Email Content - **Subject Line**: Stay Cozy with [COMPANY] During Cloudy Weather - **Body**: - 'Dear [CUSTOMER_NAME],' - 'As the weather turns cloudy and cool, we thought you might appreciate some of our warmest items.' - 'Check out our latest collection of cozy sweaters and jackets to keep you comfortable.' - 'Don't forget to prepare for the light rain expected tomorrow with our waterproof accessories.' - 'Stay warm and dry with [COMPANY]!'
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan