The flow
Starts it 1Logic 7Service 9
The steps in the order they run, from what starts it.
- 1📩 Receive Telegram MessageTelegram triggerStarts it
- 2Get Models Or Process Message?SwitchLogic
- 3Get Models ListHttp RequestService
- 4📊 Fetch Usage LogsGoogle SheetsService
- 5CodeCodeLogic
- 6📈 Count Today’s RequestsAggregateLogic
- 7Send a text messageTelegramService
- 8🔢 Set Daily LimitSetLogic
- 9🚦 Check Limit Exceeded?IfLogic
- 10Send a chat actionTelegramService
- 11🚫 Notify: Limit ExceededTelegramService
- 12Set Custom Model?IfLogic
- 13Group Models By ProvidersCodeLogic
- 14🧠 Generate Msg (AI/ML API | GPT-4o)Aiml ApiService
- 15🧠 Generate Msg (AI/ML API | Custom Model)Aiml ApiService
- 16Send a text message1TelegramService
- 17📝 Log Successful Generation1Google SheetsService
How it's built
- Starts on
- An incoming Telegram message
- Steps
- 17, with 3 branches
- Size
- Medium: a working afternoon
- Connects to
- Google Sheets, Telegram
- Model
- None. This is plumbing, not judgement
Questions
What does it need to run?
An n8n account, plus your own 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?
Plan an afternoon. 17 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 itNothing 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 17 steps before you point it at anything that matters.