Automation library · Money admin

Handle Telegram support, payments, and logo orders

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It puts Gemini and Mistral behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 51 steps, 10 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, MistralRetrieval

51 stepsLarge: read it before trusting it with anything live
10Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 2Model 7Logic 18Service 24

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2ThinkTool ThinkModel
  3. 3MemoryMemory Buffer WindowModel
  4. 4MistralLm Chat Mistral CloudModel
  5. 5Schedule TriggerSchedule triggerStarts it
  6. 6Date & TimeDate TimeLogic
  7. 7Generates AI responses, maintains context, retrieves infoAgentModel
  8. 8ResearchAgent ToolModel
  9. 9Summarizes audio for concise replies1AgentModel
  10. 10Get row(s) in sheetGoogle SheetsService
  11. 11Route TypesSwitchLogic
  12. 12text message replayTelegramService
  13. 13SwitchSwitchLogic
  14. 14LimitLimitLogic
  15. 15Code (detect Payment related text)CodeLogic
  16. 16Send a voice message replyTelegramService
  17. 17Code (select the best image quality)CodeLogic
  18. 18Send a docs message replayTelegramService
  19. 19Send video message replayTelegramService
  20. 20payment ProsessTelegramService
  21. 21Get Prove form UserTelegramService
  22. 22Send payment issue messageTelegramService
  23. 23Send payment issueTelegramService
  24. 24How to payTelegramService
  25. 25Send payment issue message2TelegramService
  26. 26Loop Over ItemsSplit In BatchesLogic
  27. 27If (again detect Payment related text)IfLogic
  28. 28Switch Photo QualitySwitchLogic
  29. 29If (check paid status)IfLogic
  30. 30If (check new user)IfLogic
  31. 31Get a fileTelegramService
  32. 32Paid messageTelegramService
  33. 33UnPaid messageTelegramService
  34. 34Save new user data in sheetGoogle SheetsService
  35. 35detect admin related textCodeLogic
  36. 36Analyze an imageGoogle GeminiModel
  37. 37Update row in sheetGoogle SheetsService
  38. 38new user message to adminTelegramService
  39. 39If (admin)IfLogic
  40. 40If (check payment receipt)IfLogic
  41. 41Sent to Admin TalkTelegramService
  42. 42detect order type textCodeLogic
  43. 43Code in JavaScriptCodeLogic
  44. 44Not Paid messageTelegramService
  45. 45If (order check)IfLogic
  46. 46Append row in sheetGoogle SheetsService
  47. 47Switch1SwitchLogic
  48. 48Send User Payment to AdminTelegramService
  49. 49Send logo messageTelegramService
  50. 50Send stage messageTelegramService
  51. 51Send banner messageTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
51, with 10 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
Gemini, Mistral
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts, and a key for Gemini and Mistral. 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?

Yes. It calls Gemini and Mistral. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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