Use this powerful n8n workflow to log expenses via Telegram messages (text, voice, or image). AI extracts structured data and saves it to Google Sheets automatically.
Download this n8n workflow template and start using it instantly.
Individuals or small businesses needing a fast, frictionless way to log daily expenses.
Users who prefer multi-modal input (voice notes, receipt photos, or simple text) over manual data entry.
Developers and automators seeking advanced n8n templates utilizing Google AI for structured data extraction.
Anyone looking to implement a robust, event-driven bookkeeping system using the n8n node ecosystem.
This sophisticated n8n workflow transforms chaotic, free-form inputs into pristine, structured expense data suitable for immediate logging. By leveraging a Telegram n8n trigger, the system can accept expenses entered as plain text, transcribed voice notes, or text extracted from receipt images. The core value lies in the AI: Extract Expenses n8n node, powered by Google Gemini, which uses complex prompting and auto-fixing logic to convert the raw text into a strict JSON format containing amount, item, and date. This powerful capability makes this n8n template invaluable for efficient, error-resistant accounting automation, concluding with the creation of new rows in Google Sheets.
The process begins with the Start: On Telegram Message n8n trigger, initiating the automation whenever a new message is received.
rawtext field using subsequent Set n8n nodes.rawtext is fed into the AI: Extract Expenses n8n node (a LangChain agent utilizing Gemini Flash). This n8n node is configured with a strict system message to output an array of expense objects, ensuring deterministic parsing of amounts, items, and dates.To deploy this expense tracking n8n workflow, follow these steps:
placeholders in the Telegram: Send Confirmation and Telegram: Send error message n8n nodes with your specific chat ID. Start: On Telegram Message (n8n trigger): This is the entry point, serving as the primary n8n trigger. It listens for message updates on the configured Telegram bot.
Route: Text, Voice or Image? (Switch): A core logic n8n node that examines the incoming payload ($json.message.text, $json.message.voice, $json.message.photo) to determine the data path.
Telegram: Get Voice/Image File: Used on the Voice/Image paths to fetch the actual file content as binary data, preparing it for AI processing.
Gemini: Transcribe Voice / Analyze an image: Utilizes the Google Gemini model. Transcribes audio files (voice notes) or performs VQA/OCR to extract financial text from image receipts. These are crucial multi-modal processing n8n nodes.
AI: Extract Expenses (LangChain Agent): The heart of this n8n workflow. It applies strict, detailed rules via a system prompt to transform raw, unstructured text into a predictable, structured JSON array.
Auto-Fix JSON / AI Helper: Define Schema: LangChain specific n8n nodes that ensure the LLM output conforms strictly to the expected JSON schema, preventing downstream errors.
Split: Entries to Rows (Split Out): A vital flow control n8n node that iterates over the JSON array output by the AI, turning each expense entry into a separate item for bulk insertion.
GSheet: Log Expense (Google Sheets): The final storage n8n node. It uses the append operation to log all extracted and split expense items into the designated spreadsheet.
Use this powerful n8n workflow to create a multi-modal Telegram bot that logs expenses via text, voice, or receipts using GPT-4, Gemini OCR, and Google Sheets integration.

Automate deep research using PerplexityAI and dynamic content creation using OpenAI via an advanced n8n workflow. Generate images, manage tags, and publish structured, multi-chapter articles directly to WordPress.

Build an advanced multi-language RAG chatbot using a comprehensive n8n workflow. Integrates Telegram, OpenAI, Supabase vector database, Google Drive, and automated web scraping.

Deploy a powerful n8n workflow for a personalized AI assistant using Telegram and Google Gemini. Manage emails, tasks (Todoist), calendars, and knowledge bases using this complex n8n template.

Build an expert multi-platform AI Sales Agent using n8n workflow automation. Integrates RAG (Postgres PGVector), CRM, Google Calendar, and Stripe for multi-channel sales support.

Use this comprehensive n8n workflow to scrape product prices from major e-commerce platforms (Amazon, eBay, Target, etc.), find the lowest price, generate promotional copy using Claude AI, and immediately send an alert via Telegram. Leverage robust n8n templates for retail monitoring.








































