Competitor price watch
Daily check of competitor product pages: a CSS selector reads the price, Claude steps in when it fails, Slack hears about changes.
Included with Everything
- Tools
- n8nMakeZapier
- Job
- Market watch
- For
- Shops, SaaS, Local services
- Uses
- Google Sheets, Claude, Slack
- Tested
- n8n 2.42.6: ran end to end against mock APIs, 14 nodes, 12 API calls
- Make: blueprint structure and mappings checked
- Zapier: steps, references and code steps checked
What it does
- Runs every day at 07:00 (the n8n instance's time zone).
- Reads the watchlist from a Google Sheet: one row per product page.
- Fetches each page with a normal browser user agent, one every 1.5 seconds. A page that fails is noted, not fatal.
- Reads the price with the row's CSS selector. No match: tries the page's own product data (JSON-LD, price meta tags). Formats like
€1.299,00,$1,299.00and1 299 krall read as 1299. - Still nothing: Claude (Haiku) reads the price from the page text and answers in JSON.
- Compares with
last_price. Moved by more than the threshold either way: a Slack alert with old and new price. - Always updates the row:
last_price,last_checkedandchange(with how the price was read when it was not the selector).
Prerequisites
- Google Sheet with a Watchlist tab (url, selector, last_price, currency, product, competitor, last_checked, change)
- Anthropic API key
- Slack bot with chat:write
Settings
| Placeholder | What | Where it goes |
|---|---|---|
GOOGLE_OAUTH_CLIENT_ID | Google OAuth client ID (self-hosted n8n only) | Google Sheets credential, Client ID |
GOOGLE_OAUTH_CLIENT_SECRET | Google OAuth client secret (self-hosted n8n only) | Google Sheets credential, Client Secret |
ANTHROPIC_API_KEY | Claude API key | Anthropic API credential, header x-api-key |
SLACK_BOT_TOKEN | Slack bot token | Slack bot credential |
Keys stay in your tool's credentials, never in the files.