This n8n template creates an intelligent expense tracking system ๐ค that processes text, voice, and receipt images through Telegram. The assistant automatically categorizes expenses, handles currency conversions ๐, and maintains financial records in Google Sheets while providing smart spending insights ๐ก.
Use Cases:
- ๐ฃ๏ธ Personal expense tracking via Telegram chat
- ๐งพ Receipt scanning and data extraction
- ๐ฑ Multi-currency expense management
- ๐ Automated financial categorization
- ๐๏ธ Voice-to-expense logging
- ๐ Daily/weekly/monthly spending analysis
How it works:
- Multi-Input Processing: Telegram trigger captures text messages, voice notes, and receipt images.
- Content Analysis: A Switch node routes different input types (text, audio, images) to appropriate processors.
- Voice Processing: ElevenLabs converts voice messages to text for expense extraction.
- Receipt OCR: Google Gemini analyzes receipt images to extract amounts and descriptions.
- Expense Classification: An LLM determines if the input is an expense or a general query.
- Expense Parsing: For multiple expenses, the AI splits and normalizes each item.
- Currency Conversion: An exchange rate API converts foreign currencies to USD.
- Smart Categorization: The AI agent assigns expenses to predefined categories with emojis.
- Data Storage: Google Sheets stores all expense records with automatic totals.
- Intelligent Responses: The agent provides spending summaries, alerts, and financial insights.
Requirements:
- ๐ Telegram Bot API access
- ๐ค OpenAI, Gemini, or any other AI model
- ๐ฃ๏ธ ElevenLabs API for voice processing
- ๐ Google Sheets API access
- ๐น Exchange rate API access
Good to know:
- โ ๏ธ Daily spending alerts trigger when expenses exceed 100 USD.
- ๐ท๏ธ Supports 12 predefined expense categories with emoji indicators.
- ๐ Automatic currency detection and conversion to USD.
- ๐ค Voice messages are processed through speech-to-text.
- ๐ธ Receipt images are analyzed using computer vision.
Customizing this workflow:
- โ๏ธ Modify expense categories in the system prompt.
- ๐ Adjust spending alert thresholds.
- ๐ต Change the base currency from USD to your preferred currency.
- โ
Add additional expense validation rules.
- ๐ Integrate with other financial platforms.