AI-Powered Telegram Expense Tracker
detail.loadingPreview
This workflow transforms your Telegram messages into structured expense data, automatically logging them into a Google Sheet. Simply send a message like "Paid 50 EGP for coffee" and let AI handle the parsing, categorization, and currency conversion, making personal finance tracking effortless.
About This Workflow
Say goodbye to manual expense logging! This n8n workflow leverages the power of AI to create an intelligent, conversational expense tracker. By integrating with Telegram, you can record expenses in natural language, directly from your mobile device. The workflow automatically parses your messages, identifies amounts, descriptions, currencies, and payment methods. It smartly converts foreign currencies to EGP using real-time exchange rates and categorizes your spending before neatly appending all the structured data into a Google Sheet. It's an end-to-end solution for streamlined, AI-driven financial tracking, perfect for individuals and small teams.
Key Features
- Natural Language Expense Input: Record expenses by simply sending a text message to a Telegram bot, understanding phrases like "Bought groceries for 15 USD" or "Coffee, 30 EGP, cash."
- AI-Powered Data Extraction & Categorization: Automatically extracts amount, description, payment method, and assigns a predefined category (e.g., Groceries, Transport, Food & Dining) from your free-form text.
- Real-time Currency Conversion: Intelligently detects currencies (EGP, USD, SAR, AED), fetches real-time exchange rates for conversion to EGP, and records both original and converted amounts.
- Automated Google Sheets Logging: Seamlessly appends all structured expense data into your designated Google Sheet, creating a centralized, accessible record.
- Robust Data Quality: Utilizes an AI agent with a structured output parser and auto-fix capabilities to ensure extracted data is always accurate, formatted correctly, and adheres to a strict schema.
How To Use
- Telegram Trigger:
- Create a Telegram Bot via BotFather and obtain your API Token.
- Add a new Telegram API credential in n8n with your Bot Token.
- In the Telegram Trigger node, select your credential.
- Set the
Chat IDsparameter to the ID of your Telegram chat where you'll send messages (you can get this by forwarding a message from the chat to @userinfobot).
- AI Agent Configuration:
- Choose your preferred AI Model (OpenAI or Anthropic) in the
AI Agentnode's credentials. - Ensure the
Promptfield accurately reflects your desired categorization and currency conversion rules.
- Choose your preferred AI Model (OpenAI or Anthropic) in the
- Google Sheets Integration:
- Create a new Google Sheets API credential in n8n.
- In the
Append row in sheetnode, select your credential and specify theSpreadsheet IDandSheet Name. - Verify the column mapping in the
Columnssection matches your Google Sheet headers.
- Activate Workflow: Save and activate the workflow. Send a test expense message to your Telegram bot (e.g., "Dinner with friends, 150 EGP") to confirm it logs correctly in your Google Sheet.
Apps Used
Workflow JSON
{
"id": "0fb955cd-e79b-4843-9a62-b1b8983e9ea3",
"name": "AI-Powered Telegram Expense Tracker",
"nodes": 22,
"category": "Personal",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 0fb955cd-e79b...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
Send Obsidian Notes as Emails with Dynamic Attachments
This workflow empowers you to transform your Obsidian notes into dynamic emails, complete with custom metadata from YAML frontmatter and automated attachment handling. Seamlessly share your thoughts and files directly from your preferred note-taking environment.
Voice Task to Notion: AI-Powered Processing
This n8n workflow automates the intelligent processing of voice-activated tasks intended for Notion or similar tools. It leverages advanced AI to understand inputs, builds a dynamic knowledge base from them, and logs processing outcomes to Google Sheets. Instantly get alerted via Slack for any errors, ensuring reliable task management.