Automation library · Alerts and monitoring

Monitor backup and sync logs with Google Cloud Storage

Started by a clock, and works across GitHub, Gmail and Google Cloud Storage. It hands the judgement calls to OpenAI. 22 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 1Model 1Logic 13Service 7

The steps in the order they run, from what starts it.

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Set_ContextSetLogic
  3. 3Set_PrefixSetLogic
  4. 4Get a list of objectsGoogle Cloud StorageService
  5. 5Bucket _ Download LogGoogle Cloud StorageService
  6. 6GitHub: sync-jobs.jsonGithubService
  7. 7Exclude OneDrive LogsIfLogic
  8. 8Loop:2Split In BatchesLogic
  9. 9Code: decode sync-jobs.jsonCodeLogic
  10. 10Loop:1Split In BatchesLogic
  11. 11Code: Ticket?CodeLogic
  12. 12Code: Binary TextCodeLogic
  13. 13Code_CheckIfLogsExistCodeLogic
  14. 14If1IfLogic
  15. 15Code: Parse LogCodeLogic
  16. 16IfIfLogic
  17. 17AI Log AnalyzerOpen AiModel
  18. 18Switch: NotificationSwitchLogic
  19. 19Gmail: Alert ErrorGmailService
  20. 20HTTP: GLPI-InitSessionHttp RequestService
  21. 21Gmail: Alert missing LogsGmailService
  22. 22HTTP: GLPI-CreateTicketHttp RequestService

How it's built

Starts on
A clock
Steps
22, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
GitHub, Gmail, Google Cloud Storage
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own GitHub, Gmail and Google Cloud Storage accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.