#
High-Speed E-Commerce Competitor Price & Stock Tracker → Telegram Alerts (Apify + n8n)
Hi everyone! ![]()
I built a production-ready **n8n workflow + Apify Actor** setup designed to track competitor e-commerce price drops and out-of-stock events across **Shopify, WooCommerce, Salesforce Commerce Cloud, Magento, and D2C brand stores**, sending instant formatted Markdown alerts directly to Telegram (or Discord/Slack).
Traditional SaaS tools like Prisync cost $200+/month, and heavy Puppeteer scrapers consume massive RAM. This setup uses a **lightweight HTTP/JSON-LD engine (consuming only ~90 MB RAM)**, making it ultra-fast and extremely cost-effective.
-–
##
What This Workflow Does
1. **Monitors E-Commerce URLs:** Tracks price drops, price increases, and stock status changes (In Stock ↔ Out of Stock).
2. **Stateful Diffing:** Only triggers alerts when an actual price or stock change occurs (ignores redundant runs).
3. **Instant Telegram Alerts:** Sends beautiful Markdown messages complete with emojis, old vs. new price deltas, and direct product links.
-–
##
Copy-Paste n8n Workflow Template
Copy the JSON code below and paste it directly into your n8n workflow canvas (`Ctrl+V` or `Cmd+V`):
```json
{
“name”: “E-Commerce Price & Stock Monitor to Telegram”,
“nodes”: [
{
"parameters": {
"httpMethod": "POST",
"path": "ecommerce-price-alert",
"options": {}
},
"name": "Apify Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": \[250, 300\]
},
{
"parameters": {
"conditions": {
"boolean": \[
{
"value1": "={{ $json.body.totalAlerts > 0 }}",
"value2": true
}
\]
}
},
"name": "Has Price/Stock Alerts?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": \[470, 300\]
},
{
"parameters": {
"chatId": "YOUR_TELEGRAM_CHAT_ID",
"text": "={{ $json.body.formattedText }}",
"additionalFields": {
"parse_mode": "Markdown"
}
},
"name": "Send Telegram Alert",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": \[690, 200\]
}
],
“connections”: {
"Apify Webhook Trigger": {
"main": \[
\[
{
"node": "Has Price/Stock Alerts?",
"type": "main",
"index": 0
}
\]
\]
},
"Has Price/Stock Alerts?": {
"main": \[
\[
{
"node": "Send Telegram Alert",
"type": "main",
"index": 0
}
\]
\]
}
}
}
```
-–
##
3-Step Setup Guide
### Step 1: Import Workflow into n8n
1. Create a new workflow in n8n.
2. Copy the JSON snippet above and paste (`Ctrl+V`) into your n8n editor.
3. Save the workflow and **toggle the Active switch to ON** (Crucial: ensure you use the Production Webhook URL, not the test one!).
### Step 2: Configure Apify Actor
1. Open the [Smart E-Commerce Price & Stock Monitor Actor on Apify]( Smart E-Commerce Price & Stock Monitor · Apify ).
2. Paste the e-commerce product URLs you want to track in **Product URLs to Monitor**.
3. Copy your n8n Production Webhook URL and paste it into **Webhook Target URL**.
### Step 3: Connect Telegram
1. Replace `YOUR_TELEGRAM_CHAT_ID` in the n8n Telegram node with your actual Telegram Chat ID or Channel ID.
2. Hit **Start** in Apify or schedule it to run every 6-12 hours!
-–
##
Tech Stack & Features
- **Engine:** `got-scraping` + `CheerioCrawler` (No heavy Chrome/Puppeteer overhead).
- **Auto-Detection:** Schema.org JSON-LD microdata parsing + 25+ CSS fallback selectors.
- **Security:** Built-in Anti-SSRF private IP protection & optional HMAC-SHA256 request signatures.
Hope this workflow helps agency owners and e-commerce managers automate competitor tracking! Let me know if you have any questions or feedback.