# Monitor competitor price shifts with Apify and Postgres: n8n workflow

> Started by a clock, and works across Apify, Postgres and Slack. It hands the judgement calls to OpenAI. 12 steps: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/monitor-competitor-price-shifts-with-apify-and-postgres (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)

# Monitor competitor price shifts with Apify and Postgres

Started by a clock, and works across Apify, Postgres and Slack. It hands the judgement calls to OpenAI. 12 steps: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-competitor-price-shifts-with-apify-and-postgres)

**12 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 2 Logic 4 Service 5

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

- 1 **Every Morning at 6am** Schedule trigger *Starts it*
- 2 **Select Pages to Monitor** Code *Logic*
- 3 **Run Apify Scraper** Apify *Service*
- 4 **Normalize Product Data** Code *Logic*
- 5 **Save Daily Snapshot to DB** Postgres *Service*
- 6 **Detect Price Changes** Postgres *Service*
- 7 **Collect Price Changes** Code *Logic*
- 8 **Repricing Analysis Agent** Agent *Model*
- 9 **Chat Model** Lm Chat Open Ai *Model*
- 10 **Send Slack Alert** Slack *Service*
- 11 **Check Data Integrity** Code *Logic*
- 12 **Send Slack Warning** Slack *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 12
- **Size:** Medium: a working afternoon
- **Connects to:** Apify, Postgres, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

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

How long does it take to set up?

Plan an afternoon. 12 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 12 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%2Fmonitor-competitor-price-shifts-with-apify-and-postgres)
- **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.

[Apify](https://millionrounds.com/workflows?service=Apify#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.

- [**Analyze stock sentiment with OpenAI and Slack** 12 steps · calls a model · Asana, Slack](https://millionrounds.com/workflow/analyze-stock-sentiment-with-openai-and-slack)
- [**Automate Pokemon card stock monitoring with Apify and Slack** 12 steps · calls a model · Apify, Slack](https://millionrounds.com/workflow/automate-pokemon-card-stock-monitoring-with-apify-and-slack)
- [**Extract key earnings insights from Google News RSS** 12 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/extract-key-earnings-insights-from-google-news-rss)
- [**Gap-time cafe finder with OpenRouter AI and Google Calendar** 12 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/gap-time-cafe-finder-with-openrouter-ai-and-google-calendar)
- [**Monitor & respond to Google Maps reviews with Apify and Slack** 12 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/monitor-and-respond-to-google-maps-reviews-with-apify-and-sl)
- [**Monitor competitor pricing page changes with OpenAI** 12 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-competitor-pricing-page-changes-with-openai)
