Analytics Advanced

Monitor Competitor Price Shifts with Slack Alerts

Runs every morning to scrape competitor product pages with Apify, stores snapshots in Postgres, flags unusual moves with SQL views, and posts repricing commentary to Slack.

At a glance

Monitor Competitor Price Shifts with Slack Alerts is an advanced-level analytics automation built with n8n. Scrapes competitor pages daily and posts repricing commentary to Slack when prices move.

Tools required
n8n
Tags
#price-monitoring #ecommerce #slack #postgres #openai
Difficulty
Advanced
Published
· 2 min read

How It Works

A scheduled n8n workflow pulls a list of competitor product URLs, hands them to the Apify E-commerce Scraping Tool, stores one row per product per day in Postgres, and compares today against a trailing baseline to flag only the moves that matter. An AI agent writes the recommendation and posts it to Slack, while a second branch reports any URLs that failed to scrape.

Setup Steps

  1. Install the Apify node: Add the @apify/n8n-nodes-apify community node. On n8n Cloud, search for it on the canvas (the instance owner must have verified community nodes enabled); self-hosted, install it under Settings, Community nodes.
  2. Apply the Postgres schema: Run supabase_schema.sql (linked in the sticky note) against Postgres 15 or later. It creates a private schema with RLS enabled, so the table is never exposed through Supabase’s Data API.
  3. Add credentials: Connect Apify, Postgres, a chat model, and Slack.
  4. Set your watchlist: Open the Pages to watch node, replace the example URLs with yours, and point the workflow at your Slack channel.
  5. Confirm the timezone: The schedule says 06:00 and n8n reads it in the instance timezone; adjust the instance or the trigger.
  6. Dry run once: Trigger the workflow manually and confirm a row landed in pricing.price_history.

Automation Workflow

Schedule (06:00)
    ↓
Read competitor URLs
    ↓
Apify E-commerce Scraping Tool
    ↓
Normalize prices, currency, stock
    ↓
Insert into Postgres (pricing.price_history)
    ↓
SQL view: compare to 30-day avg, 90-day low, 14-day baseline gate
    ↓
Branch
    ├→ Moves detected → AI agent writes recommendation → Slack
    └→ Scrape failures → Slack health warning

Benefits

Advanced Features

Use Cases

Related Automations