← Back to directory
Personal Productivity Medium to set up AI workflow Generate from Brief

Weather Reports via API and LLM

Source reviewed Updated 2026-07-07

Delivers daily 9 AM weather summaries via email and Slack, plus answers real-time chat questions using the Open-Meteo API.

What it does

Get a clear weather summary delivered to your email or Slack every day at 9 AM, plus receive instant answers to any real-time weather questions you ask via chat. This workflow pulls live data from the Open-Meteo API and uses an AI model to explain conditions naturally for both scheduled updates and on-demand inquiries.

Step by step

  1. Configure the scheduled trigger to fire at 09:00 AM using a cron expression or platform-specific time setting.
  2. Set up the HTTP request node with the Open-Meteo API endpoint and pass latitude/longitude parameters from user input or fixed config.
  3. Map the JSON response fields from Open-Meteo into a structured template string for the LLM prompt or direct email body.
  4. Connect the Gmail and Slack nodes to their respective authentication services using OAuth2 or API keys.

Where the LLM does the work

  • Generate a natural language summary of raw weather data by crafting a system prompt that defines tone, structure, and key metrics to highlight.
  • Implement intent classification logic in the chat agent to distinguish between casual queries and specific requests for hourly forecasts or alerts.
  • Refine the final response text to ensure it reads conversationally while maintaining accuracy with the fetched numerical data.

Watch out for

Email delivery can fail due to spam filters or invalid addresses, so add error handling that logs failures and notifies an admin via Slack instead of silently dropping the message.
Timezone mismatches between your server and the user's location can cause confusion in daily summaries, so explicitly convert UTC timestamps from the API to local time before formatting.

Tools that fit

Open-Meteo API API Fetching weather data
OpenAI Chat Model LLM Processing natural language queries
Gmail Service Sending email notifications
Slack Service Posting messages to channels

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Weather Reports via API and LLM: Delivers daily 9 AM weather summaries via email and Slack, plus answers real-time chat questions using the Open-Meteo API.

## Specification
- What it does: Get a clear weather summary delivered to your email or Slack every day at 9 AM, plus receive instant answers to any real-time weather questions you ask via chat. This workflow pulls live data from the Open-Meteo API and uses an AI model to explain conditions naturally for both scheduled updates and on-demand inquiries.
- Trigger: On a schedule (Scheduled · daily 9:00 AM or Event · on chat message)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - Open-Meteo API: Fetching weather data
  - OpenAI Chat Model: Processing natural language queries
  - Gmail: Sending email notifications
  - Slack: Posting messages to channels

## Known pitfalls, handle each one explicitly in your implementation
1. Email delivery can fail due to spam filters or invalid addresses, so add error handling that logs failures and notifies an admin via Slack instead of silently dropping the message.
2. Timezone mismatches between your server and the user's location can cause confusion in daily summaries, so explicitly convert UTC timestamps from the API to local time before formatting.

## Reference implementation
https://n8n.io/workflows/10681 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/automated-weather-reports-via-api-and-llm/ via usecasesforagents.com

Frequently asked questions

Can I use a different Niche API than Open-Meteo API?

Yes. Open-Meteo API is only the example niche api in this recipe. The same flow works with Bitly, Google Maps Distance Matrix API, OpenWeatherMap and Philips IntelliVue Devices. Swap the niche api connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Built for anyone who wants this off their own plate, no team or company required.

Developers can adapt this to their own repo or ticket queue with the same trigger and tools.

Seen in the wild

← Back to directory