Implementation of a marketing automation example with Openweather API and Sendgrid
git clone https://github.com/zenaton-samples/trigger-mails.gitImplementation of a marketing automation example with Openweather API and Sendgrid
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