{
  "name": "Intelligent workflow maintenance system with smart AI filtering & Google Workspace",
  "nodes": [
    {
      "id": "968b5375-141c-4cad-b077-f0d5a84e162e",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1700,
        780
      ]
    },
    {
      "id": "1d426d09-8892-4e4d-807f-15fcd89036c1",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -1220,
        780
      ]
    },
    {
      "id": "804eff08-b03e-44e6-8fef-8792d7df7d57",
      "name": "Get a workflow1",
      "type": "n8n-nodes-base.n8n",
      "position": [
        220,
        1180
      ]
    },
    {
      "id": "ef30f65a-2699-4d1b-830a-8d2197c1b768",
      "name": "🔐 Security Validator",
      "type": "n8n-nodes-base.code",
      "position": [
        -1440,
        780
      ]
    },
    {
      "id": "1e6b87f0-39a0-48c3-9e45-a3e005b2044d",
      "name": "🔀 Action Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        -920,
        560
      ]
    },
    {
      "id": "cedc60ed-38c6-440e-bb70-fe037e57b238",
      "name": "📊 Parse Audit Data",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        60
      ]
    },
    {
      "id": "43ebdd05-9eba-4a78-a143-229ce0f0b61f",
      "name": "🔍 Filter Workflows",
      "type": "n8n-nodes-base.code",
      "position": [
        -60,
        280
      ]
    },
    {
      "id": "6297b646-2788-49a1-b9ca-133892d34c13",
      "name": "📋 Get Workflow Details",
      "type": "n8n-nodes-base.n8n",
      "position": [
        220,
        280
      ]
    },
    {
      "id": "2a0d8c5c-29f6-4b40-8a71-f2ae0ef26dca",
      "name": "⚙️ Prepare Update JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        500,
        280
      ]
    },
    {
      "id": "83e91c12-b93b-4280-8165-e9c5721fa128",
      "name": "🤖 AI Filter for Duplicate",
      "type": "n8n-nodes-base.code",
      "position": [
        -60,
        740
      ]
    },
    {
      "id": "7f396759-1d1e-45c7-8233-610876dc2dda",
      "name": "📋 Get Details for Duplicate",
      "type": "n8n-nodes-base.n8n",
      "position": [
        220,
        740
      ]
    },
    {
      "id": "ad6d2c80-08da-4f73-9295-f6332d7e869c",
      "name": "🔄 Prepare Duplicate Data",
      "type": "n8n-nodes-base.code",
      "position": [
        500,
        740
      ]
    },
    {
      "id": "6af5e73e-4fb2-449e-8570-d8faa702913a",
      "name": "📝 Convert to JSON String",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        960
      ]
    },
    {
      "id": "65fd019c-c128-47ca-b519-659547d67dd8",
      "name": "🧠 AI Filter for Export",
      "type": "n8n-nodes-base.code",
      "position": [
        -60,
        1180
      ]
    },
    {
      "id": "a443f5ba-9dd8-4771-9531-0da98494d514",
      "name": "📤 Prepare Export Data",
      "type": "n8n-nodes-base.code",
      "position": [
        500,
        1180
      ]
    },
    {
      "id": "4b886cf9-9006-4895-8070-8c4cfd9d45d3",
      "name": "💾 Prepare Binary Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -320,
        960
      ]
    },
    {
      "id": "d6e01bb8-c5d3-48fd-88ae-5b5a3a6b7081",
      "name": "📂 Get All Workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -320,
        60
      ]
    },
    {
      "id": "3010eed3-58c7-41ca-8107-8e1409247c63",
      "name": "🔒 Generate Security Audit",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -60,
        60
      ]
    },
    {
      "id": "1e898452-a205-43a7-bf15-ec90305a9e8d",
      "name": "⏸️ Get Workflows to Pause",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -320,
        280
      ]
    },
    {
      "id": "4221c708-7abe-441f-b6ec-b094e827f934",
      "name": "📋 Get Workflows to Duplicate",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -320,
        740
      ]
    },
    {
      "id": "09650916-d4b7-46d0-933e-916814e2bc33",
      "name": "📦 Get Workflows for Export",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -320,
        1180
      ]
    },
    {
      "id": "9cdc509c-5b1f-44c6-b4c4-8202cd9ff234",
      "name": "⏸️ Deactivate Workflow",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -320,
        500
      ]
    },
    {
      "id": "b655347c-9fda-4a4e-a7a2-12bbd7e6b246",
      "name": "📄 Get Workflow Status",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -60,
        500
      ]
    },
    {
      "id": "52b35908-e231-4c4f-b739-a559f2cf84b8",
      "name": "⏰ Wait 8h for Reactivation",
      "type": "n8n-nodes-base.wait",
      "position": [
        220,
        500
      ]
    },
    {
      "id": "fe7de858-3240-4828-bade-9f8e02cb5d4a",
      "name": "▶️ Reactivate Workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        500,
        500
      ]
    },
    {
      "id": "3e16c955-9ec6-4814-9fd2-afb85d1e89ae",
      "name": "➕ Create Duplicate Workflow",
      "type": "n8n-nodes-base.n8n",
      "position": [
        500,
        960
      ]
    },
    {
      "id": "8bb9df05-663d-42e5-b2c4-b99350c1438e",
      "name": "📅 Daily Pause Schedule (22h)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2260,
        780
      ]
    },
    {
      "id": "3ac317e2-fe93-48aa-b9ea-9d4b5bdb4ea7",
      "name": "📅 Weekly Audit Schedule (Mon 21h)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2260,
        600
      ]
    },
    {
      "id": "113734a6-70eb-40ef-b527-07455e4e8253",
      "name": "📅 Monthly Export Schedule (9h)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2260,
        1160
      ]
    },
    {
      "id": "05bd883f-a194-4e1f-bf60-291874c733cf",
      "name": "🎯 Manual Test Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2260,
        960
      ]
    },
    {
      "id": "59daa2b4-5a86-4b90-ab4a-ffb2792e6bb6",
      "name": "📊 Example: Audit Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1980,
        600
      ]
    },
    {
      "id": "856af42e-b2df-4f16-a601-8c4b51a3e3fc",
      "name": "⏸️ Example: Pause Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1980,
        780
      ]
    },
    {
      "id": "91c0a34b-d8d9-4fa4-879e-9864e616feec",
      "name": "🔄 Example: Duplicate Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1980,
        960
      ]
    },
    {
      "id": "eb3140eb-0075-45e3-be18-c41b9c22021a",
      "name": "📤 Example: Export Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1980,
        1160
      ]
    },
    {
      "id": "29741645-14c0-41de-b385-bd8a7a415513",
      "name": "❌ Authentication Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -960,
        1000
      ]
    },
    {
      "id": "3025cc68-8d55-4ac4-b4f6-7ed8ea7176b6",
      "name": "📈 Save to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        500,
        60
      ]
    },
    {
      "id": "d3a47b59-93b1-4c10-ae8d-0e7a1a8db5bc",
      "name": "☁️ Save to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -60,
        960
      ]
    },
    {
      "id": "683fb61e-0867-4766-9f2f-c463a6045e2a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2780,
        520
      ],
      "parameters": {
        "width": 1000,
        "height": 840,
        "content": "# 🔧 n8n Auto-Maintenance System\n\n## Overview\nAdvanced workflow automation with AI-powered intelligent selection\n\n## 🎯 Core Actions\n- **🔒 AUDIT**: Security analysis & reporting\n- **⏸️ PAUSE**: Temporar"
      }
    },
    {
      "id": "8faa0c78-0d50-4674-a6b9-e85b7d3436fa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -220
      ],
      "parameters": {
        "width": 600,
        "height": 540,
        "content": "# 🧠 Artificial Intelligence Engine\n\n## Smart Scoring System\n| Criteria | Points | Description |\n|----------|--------|-------------|\n| **Active Status** | +2 | Currently running |\n| **Complexity** | +1"
      }
    },
    {
      "id": "7b387337-4df9-42aa-8ba2-d136911184cc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        120
      ],
      "parameters": {
        "width": 660,
        "height": 520,
        "content": "# 🔐 Security Framework\n\n## Authentication\n- ✅ **Bearer YOUR_TOKEN_HERE** validation required\n- ✅ **Request format** validation\n- ✅ **Action whitelist** enforcement\n- ✅ **Error handling** with proper H"
      }
    },
    {
      "id": "bf26f38f-da76-4498-a671-85044372dc21",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        1100
      ],
      "parameters": {
        "width": 760,
        "height": 500,
        "content": "# ⚙️ Configuration & Scheduling\n\n## Default Schedules\n- **🔒 Audit**: Weekly (Monday 21:00)\n- **⏸️ Pause**: Daily (22:00) \n- **📤 Export**: Monthly (Day 1, 09:00)\n\n## Required Credentials\n1. **n8n API**"
      }
    },
    {
      "id": "301da1ba-dbc5-49e5-8c59-1f194f2fcec9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        -1220
      ],
      "parameters": {
        "width": 1600,
        "height": 4160,
        "content": "# 🔧 n8n Advanced Auto-Maintenance System\n\n[![n8n](https://img.shields.io/badge/n8n-Template-FF6D5A?logo=n8n)](https://n8n.io)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](htt"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "🔀 Action Router",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "❌ Authentication Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "🔐 Security Validator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a workflow1": {
      "main": [
        [
          {
            "node": "📤 Prepare Export Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔀 Action Router": {
      "main": [
        [
          {
            "node": "📂 Get All Workflows",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "⏸️ Get Workflows to Pause",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "📋 Get Workflows to Duplicate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "📦 Get Workflows for Export",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Parse Audit Data": {
      "main": [
        [
          {
            "node": "📈 Save to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Filter Workflows": {
      "main": [
        [
          {
            "node": "📋 Get Workflow Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📂 Get All Workflows": {
      "main": [
        [
          {
            "node": "🔒 Generate Security Audit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔐 Security Validator": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎯 Manual Test Trigger": {
      "main": [
        [
          {
            "node": "🔄 Example: Duplicate Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📄 Get Workflow Status": {
      "main": [
        [
          {
            "node": "⏰ Wait 8h for Reactivation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📤 Prepare Export Data": {
      "main": [
        [
          {
            "node": "💾 Prepare Binary Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Get Workflow Details": {
      "main": [
        [
          {
            "node": "⚙️ Prepare Update JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧠 AI Filter for Export": {
      "main": [
        [
          {
            "node": "Get a workflow1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏸️ Deactivate Workflow": {
      "main": [
        [
          {
            "node": "📄 Get Workflow Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Prepare Update JSON": {
      "main": [
        [
          {
            "node": "⏸️ Deactivate Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Convert to JSON String": {
      "main": [
        [
          {
            "node": "➕ Create Duplicate Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Prepare Duplicate Data": {
      "main": [
        [
          {
            "node": "📝 Convert to JSON String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏰ Wait 8h for Reactivation": {
      "main": [
        [
          {
            "node": "▶️ Reactivate Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💾 Prepare Binary Response": {
      "main": [
        [
          {
            "node": "☁️ Save to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔒 Generate Security Audit": {
      "main": [
        [
          {
            "node": "📊 Parse Audit Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Filter for Duplicate": {
      "main": [
        [
          {
            "node": "📋 Get Details for Duplicate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏸️ Get Workflows to Pause": {
      "main": [
        [
          {
            "node": "🔍 Filter Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📦 Get Workflows for Export": {
      "main": [
        [
          {
            "node": "🧠 AI Filter for Export",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Get Details for Duplicate": {
      "main": [
        [
          {
            "node": "🔄 Prepare Duplicate Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📅 Daily Pause Schedule (22h)": {
      "main": [
        [
          {
            "node": "⏸️ Example: Pause Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Get Workflows to Duplicate": {
      "main": [
        [
          {
            "node": "🤖 AI Filter for Duplicate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📅 Monthly Export Schedule (9h)": {
      "main": [
        [
          {
            "node": "📤 Example: Export Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📅 Weekly Audit Schedule (Mon 21h)": {
      "main": [
        [
          {
            "node": "📊 Example: Audit Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}