{
  "name": "Predictive Maintenance — Catch Failures Before Downtime",
  "description": "Watches vibration and temperature telemetry, flags drift away from each machine's own baseline, and raises a maintenance ticket early.",
  "type": "GROWAIFY_SAMPLE",
  "notice": "Public preview — 2 of 6 nodes, connections removed. The full, working workflow is delivered after purchase at https://growaify.com/templates/",
  "nodes_total_in_full_version": 6,
  "category": "Industrial",
  "price_usd": 99,
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "*/5 * * * *"
            }
          ]
        }
      },
      "name": "Every 5 Min",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -440,
        0
      ],
      "id": "h000001-0000-4000-8000-000000000001"
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "SELECT machine_id, AVG(vibration_mm_s) AS vib, AVG(temp_c) AS temp, MAX(vibration_mm_s) AS vib_max FROM machine_telemetry WHERE recorded_at > NOW() - INTERVAL '30 minutes' GROUP BY machine_id;"
      },
      "name": "Recent Telemetry",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.4,
      "position": [
        -220,
        0
      ],
      "id": "h000002-0000-4000-8000-000000000002",
      "credentials": {
        "postgres": {
          "id": "REPLACE_WITH_YOUR_POSTGRES_CRED",
          "name": "Database"
        }
      }
    }
  ],
  "connections": {},
  "meta": {
    "growaify_template": "predictive-maintenance",
    "sample": true,
    "buy": "https://growaify.com/templates/"
  }
}