AutomationFlowsGeneral › Watchdog: Auto Resume Workflows

Watchdog: Auto Resume Workflows

ByDarien Kindlund @dkindlund on n8n.io

If you have multiple users managing workflows, there may come a time where a user “accidentally” turns off a workflow. Or, if you have workflows that automatically turn off other workflows, that code might “accidentally” turn off the wrong one.

Event trigger★★☆☆☆ complexity5 nodesn8n
General Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #2166 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "kZarev2IMUaKHhCI",
  "name": "Auto - Resume Disabled Workflows",
  "tags": [
    {
      "id": "YZS563bPtiBYp1aL",
      "name": "auto_resume:true",
      "createdAt": "2024-02-29T19:38:26.858Z",
      "updatedAt": "2024-02-29T19:38:26.858Z"
    },
    {
      "id": "53XXAtg9v7XIaREI",
      "name": "owner:darien",
      "createdAt": "2024-02-10T03:20:58.515Z",
      "updatedAt": "2024-02-10T03:20:58.515Z"
    }
  ],
  "nodes": [
    {
      "id": "fc7224f0-96d6-4c6d-a7c5-afbd49d60fc8",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        820,
        700
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "50661eea-325f-4131-92f6-0e3112ea6714",
      "name": "Get Auto Resume Workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1040,
        600
      ],
      "parameters": {
        "filters": {
          "tags": "auto_resume:true"
        }
      },
      "credentials": {
        "n8nApi": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "3c845ca2-4a6d-40ed-ad11-b92c425f852d",
      "name": "Find Deactivated Workflows",
      "type": "n8n-nodes-base.filter",
      "position": [
        1260,
        600
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "ce7b707c-d74e-4ca8-8081-53b15ff3f8a3",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              },
              "leftValue": "={{ $json.active }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "74b79f56-532e-4446-9b28-77874098ba10",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        820,
        520
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 4
            }
          ]
        }
      },
      "notesInFlow": false,
      "typeVersion": 1.1
    },
    {
      "id": "318960c8-e2bb-4486-ad5a-8c3a7e6db8a3",
      "name": "Activate Workflow",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1460,
        600
      ],
      "parameters": {
        "operation": "activate",
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        }
      },
      "credentials": {
        "n8nApi": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ff4414a4-de17-43a6-9da2-144a6e4cb773",
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Auto Resume Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Auto Resume Workflows": {
      "main": [
        [
          {
            "node": "Find Deactivated Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Deactivated Workflows": {
      "main": [
        [
          {
            "node": "Activate Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test workflow\"": {
      "main": [
        [
          {
            "node": "Get Auto Resume Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

If you have multiple users managing workflows, there may come a time where a user “accidentally” turns off a workflow. Or, if you have workflows that automatically turn off other workflows, that code might “accidentally” turn off the wrong one.

Source: https://n8n.io/workflows/2166/ — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Back up n8n workflows to Google Drive automatically This workflow provides a robust solution for backing up your n8n workflows to Google Drive. It is designed to handle backups for multiple n8n instan

Execute Workflow Trigger, n8n, Google Drive
General

This workflow automates the daily backup of all your n8n workflows to a designated folder in Nextcloud. It ensures that you always have the last 7 days of backups available while automatically deletin

n8n, Next Cloud
General

This workflow takes off the task of backing up workflows regularly on Github and uses Google Drive as the main tool to host these.

n8n, Google Drive
General

Convert Docx From Url To Pdf Using Convertapi. Uses manualTrigger, httpRequest, readWriteFile, stickyNote. Event-driven trigger; 6 nodes.

HTTP Request, Read Write File