# Route weather-based delivery holds with Open-Meteo and Gemini: n8n workflow

> Started by a clock, and works across Postgres and Slack. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/route-weather-based-delivery-holds-with-open-meteo-and-gemin (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Route weather-based delivery holds with Open-Meteo and Gemini

Started by a clock, and works across Postgres and Slack. It hands the judgement calls to Gemini. 26 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Froute-weather-based-delivery-holds-with-open-meteo-and-gemin)

**26 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 3 Logic 11 Service 10

The steps in the order they run, from what starts it.

- 1 **When Error Occurs** Error trigger *Starts it*
- 2 **Poll Weather Every 15 Min** Schedule trigger *Starts it*
- 3 **Gemini AI Chat** Lm Chat Google Gemini *Model*
- 4 **Parse AI Output** Output Parser Structured *Model*
- 5 **Log Error to Postgres** Postgres *Service*
- 6 **Set Region Configuration** Set *Logic*
- 7 **Delivery Impact Analyzer Agent** Agent *Model*
- 8 **Alert Ops via Slack** Slack *Service*
- 9 **Fetch Weather Data** Http Request *Service*
- 10 **Initiate Incident Creation** Service Now *Service*
- 11 **Set Weather Severity Conditions** Set *Logic*
- 12 **Prepare Affected Stores List** Set *Logic*
- 13 **If Severe Weather Detected** If *Logic*
- 14 **Split Affected Stores** Split Out *Logic*
- 15 **Check for Active Alerts** Postgres *Service*
- 16 **No Severe Weather Action** No Op *Logic*
- 17 **Notify Store Managers** Split In Batches *Logic*
- 18 **If Duplicate Alert Exists** If *Logic*
- 19 **Complete Alert Log Update** Postgres *Service*
- 20 **Summary Notification to Ops** Slack *Service*
- 21 **Suppress Duplicate Alert** No Op *Logic*
- 22 **Log New Alert to Postgres** Postgres *Service*
- 23 **Retrieve Delivery Manifests** Postgres *Service*
- 24 **Aggregate Delivery Manifests** Aggregate *Logic*
- 25 **If Deliveries Are Impacted** If *Logic*
- 26 **Log No Delivery Impact** Postgres *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 26, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Postgres, Slack
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Postgres and Slack accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Froute-weather-based-delivery-holds-with-open-meteo-and-gemin)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI-powered social media ad creation with Pinterest** 26 steps · calls a model · Slack](https://millionrounds.com/workflow/ai-powered-social-media-ad-creation-with-pinterest)
- [**Comprehensive SEO keyword research with OpenAI and DataForSEO** 26 steps · calls a model · NocoDB, Slack](https://millionrounds.com/workflow/comprehensive-seo-keyword-research-with-openai-and-dataforse)
- [**Route and analyze customer feedback with Qwen3-VL and Tally** 26 steps · calls a model · Discord, Postgres](https://millionrounds.com/workflow/route-and-analyze-customer-feedback-with-qwen3-vl-and-tally)
- [**Automated Instagram content creation from trending posts** 27 steps · calls a model · Postgres, Telegram](https://millionrounds.com/workflow/automated-instagram-content-creation-from-trending-posts)
- [**Curate and publish LinkedIn tech posts with NewsData** 27 steps · calls a model · LinkedIn, Slack](https://millionrounds.com/workflow/curate-and-publish-linkedin-tech-posts-with-newsdata)
- [**Generate Instagram content from top trends with OpenAI** 27 steps · calls a model · Postgres, Telegram](https://millionrounds.com/workflow/generate-instagram-content-from-top-trends-with-openai)
