Automation library · Scheduling

Log Telegram client updates to Notion and Google Sheets

Started by an incoming Telegram message, and works across Google Calendar, Google Drive, Google Sheets, Notion and one other. It hands the judgement calls to Gemini. 27 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 2Model 8Logic 6Service 11

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

  1. 1When Telegram Update ReceivedTelegram triggerStarts it
  2. 2Gemini Model for ExtractionLm Chat Google GeminiModel
  3. 3Parse Extracted DataOutput Parser StructuredModel
  4. 4Gemini Model for MatchingLm Chat Google GeminiModel
  5. 5Parse Matching ResultsOutput Parser StructuredModel
  6. 6Daily Trigger at 8AMSchedule triggerStarts it
  7. 7Gemini Model for BriefingLm Chat Google GeminiModel
  8. 8Extract Client UpdateChain LlmModel
  9. 9Match Client with GeminiChain LlmModel
  10. 10Fetch Next 7 Days from CalendarGoogle CalendarService
  11. 11Read Log Data from SheetsGoogle SheetsService
  12. 12Generate Brief with GeminiChain LlmModel
  13. 13Read Active Clients from SheetsGoogle SheetsService
  14. 14Check Confidence LevelIfLogic
  15. 15Merge Data Sources for BriefMergeLogic
  16. 16Send One-Message DigestTelegramService
  17. 17Compile Client RosterCodeLogic
  18. 18Standardize Payload FormatCodeLogic
  19. 19Prompt Client ChoiceTelegramService
  20. 20Construct Brief ContextCodeLogic
  21. 21Append Timeline in NotionNotionService
  22. 22Check for AttachmentIfLogic
  23. 23Notify Notion FailureTelegramService
  24. 24Download File from TelegramTelegramService
  25. 25Append to Audit Log in SheetsGoogle SheetsService
  26. 26Archive Attachment in DriveGoogle DriveService
  27. 27Send Confirmation to TelegramTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
27, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Calendar, Google Drive, Google Sheets, Notion, Telegram
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Calendar, Google Drive, Google Sheets, Notion and Telegram accounts, and a key for Gemini. 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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