Kütüphane / İzleme, Operasyon ve Olaylar
İzleme, Operasyon ve Olaylar
Monitor website uptime and visual drift with Snapshot Site, Google Sheets and Slack
On a schedule, it monitors systems using Google Sheets, Slack, Snapshot Site.
Ne yapar
## Website Uptime & Visual Check → Slack State-Change Alerts ### How it works Every 10 minutes this workflow reads a watchlist from a Google Sheet (url, label, baselineUrl, lastState) and loops over the pages one at a time, running a two-stage gate per page. Stage 1 (cheap) — is it up? One Snapshot Site Analyze call with enableQuality: true and enableSummary: false. The quality bundle reports what a real browser saw — httpStatus, isBlank, hasCaptcha — so Evaluate Availability returns a verdict of up or down with a reason. No AI summary is requested: this is a health check, nobody reads a summary of it, and at 144 runs a day the saved latency and cost are the whole point. Stage 2 (expensive) — does it still look right? The Compare call runs *only* on a page stage 1 proved is up: stored baseline image as beforeUrl, live page as afterUrl. Pixel-comparing a page that is down would burn a Compare call to rediscover a 503 that stage 1 already reported. Detect State Change then compares the computed state (up / down / visual-drift) against the row's lastState and alerts only on a transition — up → down, down → up, up → visual-drift and back. Recoveries are announced too. Every run writes lastState and lastCheckedAt back to the sheet, on both the changed and the unchanged path, so the next sweep has a fresh reference. If a run cannot determine a state (empty quality object, unreadable response) the previous value is kept, never overwritten with a guess. ### Setup steps - Install the n8n-nodes-snapshot-site community node (Settings → Community nodes → Install → n8n-nodes-snapshot-site) — verified by n8n. - Add a Snapshot Site credential, a Google Sheets credential, and a Slack credential. - Create a Watchlist tab and type this header row literally into row 1, one column per cell: url, label, baselineUrl, lastState, lastCheckedAt. Cell A1 must contain the literal text url, not a URL — otherwise Google Sheets' read operation treats that URL as the column name, $json.url is undefined for every row and every call fails with the soft error URL is required (confirmed live). - Fill one row per page: url = the live page, label = a short human name for alerts, baselineUrl = a hosted screenshot of the page as it should look. Leave lastState and lastCheckedAt empty — the workflow fills them in. All URLs need the scheme (https://…); the API rejects bar
Adımlar
- When Every 10 Minutes
- Read Uptime Watchlist
- Loop Over Watched Pages
- All Pages Checked
- Analyze Page Availability
- Check for API Error
- Record Page Down
- Evaluate Availability
- Check Whether Page Is Up
- Compare Page to Baseline
- Check for Compare API Error
- Record Visual Check Failure
- Evaluate Visual Drift
- Detect State Change
Toplam 18 adım.
Benzer otomasyonlar
Veri Senkronizasyonu ve ETLSend nightly staging vs production drift digest from Google Sheets with Snapshot Site and12 adımCRM ve Satış HattıDrift'te kişi oluşturma3 adımCRM ve Satış HattıDrift'te Kişi Oluşturma2 adımVeri Senkronizasyonu ve ETLAudit website readability weekly with Snapshot Site, Google Sheets, and Slack10 adım