{
  "name": "Monitor backup and sync logs with Google Cloud Storage, GitHub, Gmail, OpenAI, and GLPI",
  "nodes": [
    {
      "id": "213b4bf7-3c78-4362-b262-763797c3e6a4",
      "name": "Get a list of objects",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        912,
        256
      ]
    },
    {
      "id": "b7a19a58-0542-4476-a448-88d166d074d3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e3288855-844d-4268-a57b-7288e06c68b5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f63fa16a-0a8f-40aa-bebe-083de3119cb8",
      "name": "Code_CheckIfLogsExist",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        256
      ]
    },
    {
      "id": "741512ae-68c8-4966-a002-5301ef52ad27",
      "name": "Set_Context",
      "type": "n8n-nodes-base.set",
      "position": [
        432,
        256
      ]
    },
    {
      "id": "6e8e4185-2c8c-4855-9c2f-c10f34376818",
      "name": "Set_Prefix",
      "type": "n8n-nodes-base.set",
      "position": [
        624,
        256
      ]
    },
    {
      "id": "e7d26771-6221-4463-850a-0fa8b7de94df",
      "name": "Bucket _ Download Log",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        848,
        848
      ]
    },
    {
      "id": "35f39001-15b7-4c9d-8ca5-b6f4219a52cf",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1a131bde-392c-4483-b646-db0c649179d7",
      "name": "Code: Parse Log",
      "type": "n8n-nodes-base.code",
      "position": [
        1728,
        848
      ]
    },
    {
      "id": "6cdfe3b9-08c0-4b52-8f13-bed5475ae0aa",
      "name": "Gmail: Alert Error",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2160,
        672
      ]
    },
    {
      "id": "a34b18b8-8bcf-46a2-b725-7cce3cfb2acd",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        208,
        256
      ]
    },
    {
      "id": "4a35a38e-98ac-4e0c-a3a1-237134fdeb8f",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2512,
        1360
      ]
    },
    {
      "id": "fe1e7918-5f81-4ab5-85c2-5b4ff1f5afb2",
      "name": "Gmail: Alert missing Logs",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2160,
        240
      ]
    },
    {
      "id": "cfef8518-df5f-4cf3-a539-837fc30ffa78",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -224
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "28edebe5-2a1c-429a-bad0-c522b152c18f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9eea3c65-1c44-4f47-be25-9e1ec30f63ee",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4a223f4e-7c17-4009-b1d9-4edb058f0777",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7da2e8a4-156a-4dbe-8a83-9aec8c05749b",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1780ee4f-5c2f-4118-bd99-b8c57f56122e",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3112536a-ecfb-4405-9aa6-6a12d44bcc62",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "61f524a4-f145-4059-9319-624e4857cbbf",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        832
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "87dd77bd-fcfa-443d-b922-8fb3216ae107",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1968,
        1408
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a6cde501-8347-46ef-b414-2a1eb929260e",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        1344
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a30735c0-3de3-472c-a2d1-cc94d9ae9338",
      "name": "Code: decode sync-jobs.json",
      "type": "n8n-nodes-base.code",
      "position": [
        1360,
        256
      ]
    },
    {
      "id": "151d6f7a-3159-441d-9ae2-950e15b8dfd8",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1ba6e3f3-fffc-47c2-be74-a3c8e3d98865",
      "name": "GitHub: sync-jobs.json",
      "type": "n8n-nodes-base.github",
      "position": [
        1184,
        256
      ]
    },
    {
      "id": "e9a992d1-6918-4b50-b9a0-c033e56a2153",
      "name": "Code: Binary Text",
      "type": "n8n-nodes-base.code",
      "position": [
        1776,
        1504
      ]
    },
    {
      "id": "9434603d-e86d-40f4-85ee-0a9163039fac",
      "name": "Code: Ticket?",
      "type": "n8n-nodes-base.code",
      "position": [
        2336,
        1360
      ]
    },
    {
      "id": "5540f226-7752-4702-8ec7-68d17e62e5ef",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        1408
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a71410e1-a824-4b28-984e-0d0e23192518",
      "name": "HTTP: GLPI-InitSession",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2816,
        1344
      ]
    },
    {
      "id": "9a8b6f9a-4ba8-46bb-8761-86a2b220fe57",
      "name": "HTTP: GLPI-CreateTicket",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3024,
        1344
      ]
    },
    {
      "id": "9d54ee06-7310-4b3e-96a5-61caeb0c45a8",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2736,
        1344
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b61f2b87-422f-4830-92d9-d58f717a9666",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1872,
        656
      ]
    },
    {
      "id": "7cdba120-49a2-423f-a313-d7ae118efd4e",
      "name": "Exclude OneDrive Logs",
      "type": "n8n-nodes-base.if",
      "position": [
        1184,
        848
      ]
    },
    {
      "id": "aba04858-945c-4b60-8c73-bf59c4e09a0e",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "82a4f5db-8eee-4546-b344-9a207f11d481",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f8a88fad-2133-481e-9c09-029575187dd6",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c976e983-1710-42b4-bbf1-f1913a4655af",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        1344
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "07bd1d1b-da1d-4920-ab61-0b916b719880",
      "name": "Loop:1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1456,
        832
      ]
    },
    {
      "id": "3804e52b-f310-495e-86ef-7c6f8ec067c8",
      "name": "Loop:2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1504,
        1488
      ]
    },
    {
      "id": "f0bece2c-b374-42a7-a581-586114dacfe3",
      "name": "Switch: Notification",
      "type": "n8n-nodes-base.switch",
      "position": [
        1856,
        256
      ]
    },
    {
      "id": "cbef89d6-78b6-4c7a-8430-e5beea81112b",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "66a51977-d8e9-4288-9986-0a0f2758b25d",
      "name": "AI Log Analyzer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1984,
        1504
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "HTTP: GLPI-InitSession",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [],
        [
          {
            "node": "Gmail: Alert Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop:1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code: Parse Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop:2": {
      "main": [
        [
          {
            "node": "Code: Ticket?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code: Binary Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set_Prefix": {
      "main": [
        [
          {
            "node": "Get a list of objects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set_Context": {
      "main": [
        [
          {
            "node": "Set_Prefix",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Ticket?": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Log Analyzer": {
      "main": [
        [
          {
            "node": "Loop:2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Parse Log": {
      "main": [
        [
          {
            "node": "Loop:1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set_Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Binary Text": {
      "main": [
        [
          {
            "node": "AI Log Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch: Notification": {
      "main": [
        [
          {
            "node": "Gmail: Alert missing Logs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bucket _ Download Log": {
      "main": [
        [
          {
            "node": "Exclude OneDrive Logs",
            "type": "main",
            "index": 0
          },
          {
            "node": "Loop:2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code_CheckIfLogsExist": {
      "main": [
        [
          {
            "node": "Switch: Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Exclude OneDrive Logs": {
      "main": [
        [
          {
            "node": "Loop:1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a list of objects": {
      "main": [
        [
          {
            "node": "Bucket _ Download Log",
            "type": "main",
            "index": 0
          },
          {
            "node": "GitHub: sync-jobs.json",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GitHub: sync-jobs.json": {
      "main": [
        [
          {
            "node": "Code: decode sync-jobs.json",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP: GLPI-InitSession": {
      "main": [
        [
          {
            "node": "HTTP: GLPI-CreateTicket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: decode sync-jobs.json": {
      "main": [
        [
          {
            "node": "Code_CheckIfLogsExist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}