Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Мониторинг, эксплуатация и инциденты

Мониторинг, эксплуатация и инциденты

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.

Что делает

## 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

Шаги

  1. When Every 10 Minutes
  2. Read Uptime Watchlist
  3. Loop Over Watched Pages
  4. All Pages Checked
  5. Analyze Page Availability
  6. Check for API Error
  7. Record Page Down
  8. Evaluate Availability
  9. Check Whether Page Is Up
  10. Compare Page to Baseline
  11. Check for Compare API Error
  12. Record Visual Check Failure
  13. Evaluate Visual Drift
  14. Detect State Change

Всего шагов: 18.

Похожие автоматизации