Automation library · Alerts and monitoring

Manage Supabase database records with Telegram

Started by an incoming Telegram message, and works across Supabase and Telegram. 34 steps, 8 branches: large, and worth reading before you trust it with anything live.

Large

34 stepsLarge: read it before trusting it with anything live
8Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Logic 13Service 20

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Extract Message DataSetLogic
  3. 3Is Authorized?IfLogic
  4. 4Parse Command and ParametersCodeLogic
  5. 5Route by CommandSwitchLogic
  6. 6Add Has Error?IfLogic
  7. 7Filter by Category?IfLogic
  8. 8Get Has Error?IfLogic
  9. 9Update Has Error?IfLogic
  10. 10Delete Has Error?IfLogic
  11. 11Search Has Error?IfLogic
  12. 12Send Help MessageTelegramService
  13. 13Send Unknown CommandTelegramService
  14. 14Send Add ErrorTelegramService
  15. 15Supabase Insert ProductSupabaseService
  16. 16Supabase List FilteredSupabaseService
  17. 17Supabase List AllSupabaseService
  18. 18Send Get ErrorTelegramService
  19. 19Supabase Get ProductSupabaseService
  20. 20Send Update ErrorTelegramService
  21. 21Prepare Update DataSetLogic
  22. 22Send Delete ErrorTelegramService
  23. 23Supabase Delete ProductSupabaseService
  24. 24Send Search ErrorTelegramService
  25. 25Supabase Search ProductsSupabaseService
  26. 26Send Add SuccessTelegramService
  27. 27Format Product ListCodeLogic
  28. 28Send Product DetailsTelegramService
  29. 29Supabase Update ProductSupabaseService
  30. 30Send Delete SuccessTelegramService
  31. 31Format Search ResultsCodeLogic
  32. 32Send Product ListTelegramService
  33. 33Send Update SuccessTelegramService
  34. 34Send Search ResultsTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
34, with 8 branches
Size
Large: read it before trusting it with anything live
Connects to
Supabase, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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