Monitor stale workflows via the n8n API and send alerts to Slack or Telegram
Quick Overview This workflow runs hourly to check the last successful execution time of selected n8n workflows via the n8n REST API, and sends an alert (Slack by default, or Telegram, email, or WorkflowBuddy push) when any workflow has gone stale past its allowed threshold.
How it works Runs every hour on a schedule. Builds a list of workflow IDs and per-workflow maximum age thresholds, along with your n8n base URL. Queries the n8n REST API for the most recent successful execution of each monitored workflow. Calculates how long it has been since the last success (or treats it as stale if there is no successful execution on record). Sends one alert per stale workflow to Slack (and optionally Telegram, email, and/or WorkflowBuddy iOS push).
Setup Update the n8n base URL and the monitored workflow list (workflowId, workflowName, and maxAgeHours) in the configuration code. Create an n8n API key and add it to an HTTP Header Auth credential named X-N8N-API-KEY, then select it for the n8n API request. Configure at least one alert channel: connect Slack and set the target channel, or enable Telegram/email/WorkflowBuddy and fill in the required chat IDs, addresses, and header auth token.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments