🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Telegram + Google Sheets, effortless work logs and tasks

Lisa Granqvist Partner Workflow Automation Expert

Your work notes are probably everywhere. A “start time” in one chat, a to-do in another, an expense screenshot buried in your camera roll, then a painful Sunday night trying to rebuild what happened.

This is where Telegram Sheets automation pays off fast. Marketing managers tracking client time, agency owners juggling tasks, and operators who just need clean records all run into the same mess: nothing is structured until you force it to be.

This workflow turns simple Telegram messages into organized Google Sheets rows, plus summaries and monthly reports. You’ll see what it does, what it replaces, and how to get it running without living in spreadsheets.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: Telegram + Google Sheets, effortless work logs and tasks

The Challenge: Tracking work, tasks, and money without chaos

Logging work hours and tasks sounds simple until you’re busy. You start work, forget to note it, then later guess the time. You add a task in Telegram, then it never makes it into your “real” list. Expenses are worse: a quick cash payment here, a receipt there, multiple currencies, and suddenly your “monthly numbers” are just vibes. The mental load is constant because you’re always carrying unfinished admin in your head, and honestly, it steals attention from actual work.

It adds up fast. Here’s where things usually break down.

  • Work hours get backfilled from memory, which means totals are wrong and hard to defend.
  • Tasks live in chats, notebooks, and apps, so “What’s still open?” becomes a scavenger hunt.
  • Expenses aren’t captured at the moment they happen, so you miss items and lose receipts.
  • Monthly reporting turns into a manual spreadsheet session that you keep postponing.

The Fix: Telegram commands that write clean Google Sheets records

This workflow gives you one place to “talk to your admin” without opening five tools. You send a normal message in Telegram like “Start work at the factory” or “Add task: pay the bill.” The workflow routes that message to the right AI agent (work tracking, tasks, or finance), interprets what you meant, then updates the correct Google Sheet tab with consistent columns. For work time, it logs start/end times and calculates total hours. For tasks, it adds, lists, completes, or deletes items while keeping status updated. For finance, it records income or expenses (including currency and notes), then can summarize your day on request or via scheduled digests.

The workflow starts with a Telegram message (or a scheduled trigger for summaries and monthly reporting). OpenAI processes the intent and details, then Google Sheets becomes your source of truth. At the beginning of each month, it compiles work-hour totals by workplace, generates a formatted PDF report, and sends it back to a Telegram topic.

What Changes: Before vs. After

Real-World Impact

Say you log work twice a day (start and finish), add 5 tasks a week, and record 10 expenses a week. Manually, even “quick” logging is maybe 2 minutes each time: that’s around 40 entries weekly, or about 80 minutes of capturing, plus another hour at month-end to clean and total everything. With this workflow, you send a Telegram message in about 10 seconds per entry, and month-end becomes “download the PDF.” That’s roughly 2 hours back most weeks.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Telegram for sending commands and receiving summaries.
  • Google Sheets to store work, tasks, expenses, and emails.
  • OpenAI API key (get it from the OpenAI API dashboard).

Skill level: Intermediate. You’ll connect accounts, paste a few IDs (like your Google Sheet document ID), and test Telegram commands.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

A Telegram message (or a scheduled trigger) kicks things off. You send “Start work…”, “Add task…”, or “Spent 20 USD on…” and the Telegram Trigger captures the message and chat context.

The workflow routes your message to the right “agent.” A Switch node routes by topic, then a specialized AI Agent handles work time, task management, finance, or email operations. It uses short session memory so follow-ups in the same conversation still make sense.

Google Sheets is updated in real time. Depending on the command, the workflow reads the relevant tab (work/task/Expenses/email), appends a row, updates status, or removes a row. For work sessions, it also calculates total hours after you finish.

Summaries and reports come back to Telegram. Daily digests can be pushed on a schedule, and a monthly scheduler triggers a work-hours analysis, builds a formatted PDF, then posts it to your Telegram topic.

You can easily modify the command phrases and reporting language to match your team. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Telegram Trigger

Set up the incoming Telegram trigger that starts the assistant flow and routes messages to the correct topic handler.

  1. Add and open Telegram Incoming Trigger to receive new messages.
  2. Ensure Updates includes message so normal chat messages are captured.
  3. Credential Required: Connect your telegramApi credentials in Telegram Incoming Trigger.
  4. Confirm Telegram Incoming Trigger is connected to Route by Topic to start message routing.

Tip: Use a dedicated Telegram bot for production so the workflow only handles automation traffic.

Step 2: Connect Google Sheets

Multiple Google Sheets tools power finance, tasks, email directory, and work tracking. Connect credentials once and select the correct sheet and document IDs.

  1. Open Sheets Data Reader and set Document to My Assistants and Sheet to Expenses.
  2. Repeat document and sheet selection for Sheets Upsert Records and Sheets Remove Rows (finance records), Sheets Task Reader/Sheets Task Upsert/Sheets Task Delete (tasks), Sheets Lookup Rows/Sheets Append Row/Sheets Update Row/Sheets Delete Rows (email directory), and Sheets Work Reader/Sheets Work Upsert/Sheets Work Delete/Sheets Work Reader All (work tracking).
  3. Credential Required: Connect your googleSheetsOAuth2Api credentials in all Google Sheets tool nodes (16+ nodes).
  4. Verify any field expressions used in Sheets tools stay intact, like ={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start_Row_Number', ``, 'number') }} and ={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Date', ``, 'string') }}.

⚠️ Common Pitfall: These Google Sheets nodes are AI tools. Do not add credentials on the tool sub-nodes directly inside agents—credentials belong to the tool nodes themselves.

Step 3: Set Up Topic Routing and Assistant Agents

Messages from Telegram are routed by forum topic name, then processed by specialized agents for finance, email operations, tasks, and work hours.

  1. Open Route by Topic and confirm the topic rules use ={{ $json.message.reply_to_message.forum_topic_created.name }} with right values Expenses, Gmail, task, and Work.
  2. Verify connections from Route by Topic to Finance Assistant Agent, Email Ops Agent, Task Manager Agent, and Work Time Agent match the topic intent.
  3. Confirm each agent uses the incoming message text field ={{ $('Telegram Incoming Trigger').item.json.message.text }}.
  4. For agent memory sub-nodes like Session Memory, Email Memory Buffer, Task Memory Buffer, and Work Memory Buffer, keep the session key expression ={{ $('Telegram Incoming Trigger').item.json.message.from.id }}.

Tip: If you use Telegram Topics, ensure the topic names match exactly or the Route by Topic rules will not trigger the right agent.

Step 4: Configure AI/LLM Nodes and Memory

The assistant uses multiple LLM nodes to power agents, summaries, and email analysis. Ensure the correct language model nodes are connected to their respective agents.

  1. Make sure OpenAI Chat Engine is connected as the language model for Finance Assistant Agent.
  2. Confirm OpenAI Chat Base is connected to Email Ops Agent, OpenAI Tasks Chat to Task Manager Agent, OpenAI Work Chat to Work Time Agent, and OpenAI Report Chat to Work Hours Analyst.
  3. Verify summary agents use their mini models: OpenAI Mini Chat for Finance Summary Agent and OpenAI Task Mini for Task Summary Agent.
  4. Credential Required: Connect your openAiApi credentials in all OpenAI chat and analyzer nodes (OpenAI Chat Engine, OpenAI Chat Base, OpenAI Tasks Chat, OpenAI Task Mini, OpenAI Work Chat, OpenAI Report Chat, and OpenAI Email Analyzer).
  5. Credential Required: Gemini Email Analyzer already uses googlePalmApi—verify the connected credential is valid before testing.

⚠️ Common Pitfall: Memory sub-nodes like Session Memory and Email Memory Buffer do not accept credentials. If your agent needs credentials, add them to the parent LLM node (e.g., OpenAI Chat Engine).

Step 5: Configure Email Intake and Analysis

This path monitors Gmail, fetches full email content, builds a structured payload, and analyzes it with Gemini and OpenAI.

  1. Set up Gmail New Mail Trigger and keep Simple set to false with polling set to everyMinute.
  2. Credential Required: Connect your gmailOAuth2 credentials in Gmail New Mail Trigger and Retrieve Full Email.
  3. In Retrieve Full Email, set Message ID to ={{ $json.id }} and Operation to get.
  4. In Structure Email Payload, ensure fields map from ={{ $json.from }}, ={{ $json.subject }}, ={{ $json.body }}, and ={{ $json.messageId }}.
  5. Confirm execution flow: Gmail New Mail TriggerRetrieve Full EmailStructure Email PayloadGemini Email AnalyzerTelegram Gmail Alert.

Tip: OpenAI Email Analyzer is chained after Gemini Email Analyzer and also outputs to Telegram Gmail Alert and Telegram Gmail Fallback, so keep both nodes enabled for resilience.

Step 6: Configure Telegram Outputs

Multiple Telegram nodes send responses to different flows (finance, summaries, tasks, email alerts, and work reports).

  1. Set the Chat ID in all Telegram nodes to your target ID (e.g., [YOUR_ID]) including Telegram Notify, Telegram Summary Push, Telegram Email Ops, Telegram Task Reply, Telegram Task Digest, Telegram Work Reply, Telegram Gmail Alert, Telegram Gmail Fallback, and Telegram Send PDF.
  2. Keep message text expressions intact, such as ={{ $json.output }} for the agent responses and ={{ $json.content.parts[0].text }} for Gmail alerts.
  3. Credential Required: Connect your telegramApi credentials in all Telegram nodes (9+ nodes).
  4. For Telegram Send PDF, keep Operation set to sendDocument and Binary Data enabled.

⚠️ Common Pitfall: If Telegram messages are not delivered, check each node’s Message Thread ID and ensure it matches your topic thread when using Telegram topics.

Step 7: Configure Scheduled Summaries and Reports

Schedules drive daily task digests, financial summaries, and monthly work reports with PDF generation.

  1. In Scheduled Summary Trigger, set the interval rule to your preferred cadence for finance summaries.
  2. In Daily Task Trigger, keep the interval with triggerAtHour set to 11 for daily task digest timing.
  3. In Monthly Report Scheduler, keep the interval field set to months to generate monthly work reports.
  4. Confirm flow: Monthly Report SchedulerWork Hours AnalystSplit Work ReportsBuild PDF ContentConvert HTML FileTelegram Send PDF.

Step 8: Review Code Nodes for PDF Generation

These nodes assemble a JSON report, build HTML content, and pass a binary file for PDF delivery.

  1. Open Split Work Reports and keep the JavaScript parser that extracts JSON from the AI response unchanged.
  2. In Build PDF Content, confirm the HTML template and file naming format تقرير_${workplaceData.workplace}_${workplaceData.month}.pdf.
  3. In Convert HTML File, keep mimeType as text/html and ensure the binary output is enabled for Telegram delivery.

Tip: If PDF delivery fails, check that Convert HTML File returns binary data and that Telegram Send PDF has Binary Data enabled.

Step 9: Configure Output and Response Messaging

Each agent returns a response that is sent to Telegram. Ensure the response handlers are connected and configured consistently.

  1. Ensure Finance Assistant Agent outputs to Telegram Notify with ={{ $json.output }}.
  2. Ensure Email Ops Agent outputs to Telegram Email Ops, Task Manager Agent outputs to Telegram Task Reply, and Work Time Agent outputs to Telegram Work Reply.
  3. Verify scheduled summaries: Finance Summary AgentTelegram Summary Push and Task Summary AgentTelegram Task Digest.

Step 10: Test and Activate Your Workflow

Validate each path to ensure Telegram, Gmail, and Sheets operations work end-to-end.

  1. Click Execute Workflow and send a Telegram message into the correct topic to trigger Telegram Incoming TriggerRoute by Topic → the appropriate agent.
  2. Verify a successful run returns a Telegram response (e.g., via Telegram Notify, Telegram Email Ops, Telegram Task Reply, or Telegram Work Reply).
  3. Test the Gmail path by sending yourself an email and confirming Gmail New Mail TriggerRetrieve Full EmailStructure Email PayloadGemini Email AnalyzerTelegram Gmail Alert.
  4. Manually run Scheduled Summary Trigger, Daily Task Trigger, and Monthly Report Scheduler to confirm summaries and PDFs are delivered.
  5. When everything works, toggle the workflow to Active to enable production execution.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Google Sheets permissions can be deceptively tricky. If updates stop, check the connected Google account in n8n and confirm the sheet is shared with the right account and has the exact tab names (work, task, Expenses, email).
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Common Questions

How quickly can I implement this Telegram Sheets automation?

About an hour if your accounts and Google Sheet are ready.

Can non-technical teams implement this work log automation?

Yes. You won’t write code, but you will connect Telegram, Google, and OpenAI credentials and paste in your Sheet ID.

Is n8n free to use for this Telegram Sheets automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs, which are usually a few cents a day at light usage.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this Telegram Sheets automation solution to my specific challenges?

You can. Most customization happens inside the AI Agent “systemMessage” text (for work, tasks, finance, and email), plus the Google Sheets nodes where you map columns. Common tweaks include changing the command words you prefer (“clock in” instead of “start work”), adding new fields like client name or project code, and switching the response language or tone for your Telegram replies.

Why is my Telegram connection failing in this workflow?

Usually it’s a bad bot token or the wrong chatId/message_thread_id. Regenerate the token in BotFather if needed, then confirm the workflow is listening to the same chat where you’re testing. If you’re using group topics, the thread ID must match the topic you want to post into, otherwise messages “disappear” into the wrong place.

What’s the capacity of this Telegram Sheets automation solution?

For a small team, it’s plenty.

Is this Telegram Sheets automation better than using Zapier or Make?

For this use case, n8n is usually the better fit because the logic isn’t just “if message contains X, do Y.” You’re routing to different agents, reading and updating multiple Google Sheets tabs, and triggering scheduled summaries and a monthly PDF report. Zapier and Make can do parts of that, but costs climb once you add branching, AI steps, and higher task volume. If you only want a simple “Telegram message → append to Sheet” flow, Zapier or Make is totally fine. If you want the full system, n8n stays flexible. Talk to an automation expert if you’re torn.

This workflow keeps your work hours, tasks, and expenses honest because they’re captured while you’re doing the work. Set it up once, then let Google Sheets stay clean in the background.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal