Automation library · Alerts and monitoring

Process Telegram image albums with Data Tables Cache

Started by an incoming Telegram message, and works across Telegram and n8n data table. 28 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

28 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Logic 12Service 13

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3When clicking ‘Execute workflow’Manual triggerStarts it
  4. 4Is media group with images?IfLogic
  5. 5If any new recordsData TableService
  6. 6Upsert row(s)Data TableService
  7. 7Filter1FilterLogic
  8. 8Process other messages as usualNo OpLogic
  9. 9Get new requestsData TableService
  10. 10Send initial notificationTelegramService
  11. 11NOOPNo OpLogic
  12. 12Merge2MergeLogic
  13. 13MergeMergeLogic
  14. 14Latest message in media_groupSummarizeService
  15. 15status:doneData TableService
  16. 16status:processingData TableService
  17. 17FilterFilterLogic
  18. 18SortSortLogic
  19. 19parse TG messagesSetLogic
  20. 20Get a fileTelegramService
  21. 21prepare user messagesSetLogic
  22. 22SummarizeSummarizeService
  23. 23Send processing messageTelegramService
  24. 24Call NanoBanana via OpenRouterHttp RequestService
  25. 25Merge1MergeLogic
  26. 26Extract Base64SetLogic
  27. 27Send result messageTelegramService
  28. 28Convert to FileConvert To FileService

How it's built

Starts on
An incoming Telegram message
Steps
28, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Telegram, n8n data table
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Telegram account. 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 28 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 28 steps before you point it at anything that matters.