Automation library · Alerts and monitoring

Automate delivery confirmation with Telegram Bot

Started by an incoming Telegram message, and works across Gmail, Google Drive, Google Sheets and Telegram. 32 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 17Service 14

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Initiate Workflow DataCodeLogic
  3. 3Command?IfLogic
  4. 4Switch CommandSwitchLogic
  5. 5Waiting ConditionsCodeLogic
  6. 6waitingShipmentNumberCodeLogic
  7. 7waitingGPSCodeLogic
  8. 8waitingPhotoCodeLogic
  9. 9Load Workspace DataCodeLogic
  10. 10Welcome MessageTelegramService
  11. 11Check StateSwitchLogic
  12. 12addShipmentNumberTelegramService
  13. 13addGPSTelegramService
  14. 14sendPhotoTelegramService
  15. 15Load Delivery InformationGoogle SheetsService
  16. 16Confirmation DriverTelegramService
  17. 17Distribution Team ConfirmationGmailService
  18. 18Shipment NumberSetLogic
  19. 19Store GPS LocationSetLogic
  20. 20Get PictureTelegramService
  21. 21InstructionsTelegramService
  22. 22Clear StateCodeLogic
  23. 23addShipmentNumber resultTelegramService
  24. 24Store ShipmentCodeLogic
  25. 25addGPS resultTelegramService
  26. 26Store GPSCodeLogic
  27. 27Upload PictureGoogle DriveService
  28. 28Extract FileNameSetLogic
  29. 29Share PictureGoogle DriveService
  30. 30Store fileNameCodeLogic
  31. 31Save Public Image LinkCodeLogic
  32. 32addPhoto resultTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
32, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Google Sheets, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

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?

Take your time. At 32 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 32 steps before you point it at anything that matters.