# Real-time oil price crisis detection with Qwq-32b AI: n8n workflow

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

Source: https://millionrounds.com/workflow/real-time-oil-price-crisis-detection-with-qwq-32b-ai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Real-time oil price crisis detection with Qwq-32b AI

Started by a clock, and works across Gmail, Postgres and Slack. It hands the judgement calls to OpenRouter. 20 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freal-time-oil-price-crisis-detection-with-qwq-32b-ai)

**20 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 2 Logic 9 Service 8

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

- 1 **Schedule Every 5 Minutes** Schedule trigger *Starts it*
- 2 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 3 **Workflow Configuration** Set *Logic*
- 4 **AI Trend & Geopolitical Analyzer** Agent *Model*
- 5 **Fetch Oil Price Data (API)** Http Request *Service*
- 6 **Fetch OPEC Reports** Http Request *Service*
- 7 **Fetch Shipping Data** Http Request *Service*
- 8 **Fetch News Feed** Http Request *Service*
- 9 **Calculate Crisis Risk Score** Code *Logic*
- 10 **Merge All Data Sources** Merge *Logic*
- 11 **Route by Alert Level** Switch *Logic*
- 12 **Data Cleaning & Preprocessing** Code *Logic*
- 13 **Format Info Alert** Set *Logic*
- 14 **Format Warning Alert** Set *Logic*
- 15 **Format Critical Alert** Set *Logic*
- 16 **Statistical Anomaly Detection** Code *Logic*
- 17 **Send to Dashboard API** Http Request *Service*
- 18 **Send Email Alert** Gmail *Service*
- 19 **Send Slack Alert** Slack *Service*
- 20 **Store Alert History** Postgres *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 20, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Postgres, Slack
- **Model:** OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Postgres and Slack accounts, and a key for OpenRouter. 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 OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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 20 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%2Freal-time-oil-price-crisis-detection-with-qwq-32b-ai)
- **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.

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

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Automate peer review assignments with Slack** 20 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/automate-peer-review-assignments-with-slack)
- [**Deduplicate security alerts into unified cases with Claude** 20 steps · calls a model · Slack](https://millionrounds.com/workflow/deduplicate-security-alerts-into-unified-cases-with-claude)
- [**Detect Bitcoin price spikes** 20 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/detect-bitcoin-price-spikes)
- [**Monitor ISF-10 filing deadline risk with OpenAI and Telegram** 20 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/monitor-isf-10-filing-deadline-risk-with-openai-and-telegram)
- [**Monitor NASA asteroid threats with OpenAI and Apify** 20 steps · calls a model · Apify, Discord](https://millionrounds.com/workflow/monitor-nasa-asteroid-threats-with-openai-and-apify)
- [**Monitor and auto-heal failed n8n workflow executions** 20 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-and-auto-heal-failed-n8n-workflow-executions)
