Automation library · Documents and files

Backup & restore n8n workflows with Telegram and Google Drive

Started by someone submitting a form, and works across Google Drive and Telegram. 16 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

Medium

16 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 3Logic 5Service 8

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

  1. 1Manual TriggerManual triggerStarts it
  2. 2Schedule Backup TriggerSchedule triggerStarts it
  3. 3Form Restore TriggerForm triggerStarts it
  4. 4Download Backup from DriveGoogle DriveService
  5. 5Fetch All WorkflowsN8nService
  6. 6Extract Backup TextExtract From FileService
  7. 7Aggregate WorkflowsAggregateLogic
  8. 8Parse Backup JSONCodeLogic
  9. 9Convert to Backup FileConvert To FileService
  10. 10Process Each WorkflowSplit In BatchesLogic
  11. 11Send Backup to TelegramTelegramService
  12. 12Check Workflow ExistenceN8nService
  13. 13If Workflow ExistsIfLogic
  14. 14Create New WorkflowN8nService
  15. 15Update Existing WorkflowN8nService
  16. 16Wait for CompletionWaitLogic

How it's built

Starts on
Someone submitting a form
Steps
16, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Google Drive, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Telegram accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

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 16 steps before you point it at anything that matters.