Skip to main content

Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets

Workflow preview

Workflow preview
100%
Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description Track and query your expenses effortlessly through Telegram using voice or text messages. This AI powered workflow transcribes voice input via AssemblyAI, processes transactions with a ...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.switch, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.googlesheetstool

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sridevi Edupuganti.

Original n8n.io source

1.1 Workflow description

Title
Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets
Workflow name
Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets

Description

Track and query your expenses effortlessly through Telegram using voice or text messages. This AI-powered workflow transcribes voice input via AssemblyAI, processes transactions with a GPT-4.1 mini agent, stores data in Google Sheets with comprehensive timestamp metadata, and responds with both voice and text confirmations.

Key Features:

  • Multi-modal input: Send expenses via voice messages or text
  • Intelligent processing: AI agent automatically categorizes transactions, calculates running balance, and handles multiple expenses in a single message
  • Conversational queries: Ask questions like "What did I spend on food last week?"
  • Voice responses: Get spoken confirmations using OpenAI TTS
  • Smart alerts: Automatic Gmail notifications for low balance thresholds
  • Cost tracking: Monitors and logs all API usage costs (LLM + TTS) in USD and INR

Perfect for:

  • Personal finance management with minimal effort
  • Small business expense tracking with audit trails
  • Shared household or team budgets
  • API cost monitoring for developers

Each transaction includes detailed metadata (timestamps, categories, run IDs, source text) enabling powerful time-based analytics and queries.

Requirements: Telegram bot, Google Sheets OAuth, OpenAI API key, AssemblyAI API key, Gmail OAuth (optional)

Support: Join n8n Discord or Community Forum README file available at https://drive.google.com/file/d/1mh9FRm7zemdazNpjyEq9uhHSc_9go7PN/view?usp=sharing

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Input

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Route by Message Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 3 - Check Voice Quality

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 4 - Send Processing Notification (Voice)

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - 🎙️ Download Voice File

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Upload to AssemblyAI

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Start Transcription

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Get Transcription Result

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Check Transcription Status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Send Processing Notification (Text)

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Read Transaction History

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 12 - Calculate Starting Balance

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Append Transaction to Sheet

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 14 - Read Sheet for Queries

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 15 - Send Low Balance Alert

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 16 - GPT-4.1 Mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Conversation Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 18 - Generate Voice Response

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Send Voice to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 20 - Send Text to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - AI Expense Analyzer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 22 - Wait for Transcription

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets
Complexity advanced
Nodes 32
Categories Personal Productivity, AI Chatbot
Author Sridevi Edupuganti
Published 29 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10290/10290.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track & query expenses via Telegram with GPT-4.1 mini & Google Sheets do?

Description Track and query your expenses effortlessly through Telegram using voice or text messages. This AI powered workflow transcribes voice input via AssemblyAI, processes transactions with a ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Chatbot use case.