Use this powerful n8n workflow to automatically parse bank transaction messages from Telegram using custom code and log all financial details directly into Google Sheets. Perfect for automated budgeting.
Download this n8n workflow template and start using it instantly.
Individuals or small businesses tracking personal or operational expenses automatically.
Users who receive bank transaction alerts via Telegram and need a structured database.
Developers seeking advanced n8n templates utilizing custom code and regex for data extraction.
Anyone needing a reliable, low-effort financial logging solution within an n8n workflow.
This robust n8n workflow addresses the challenge of manually logging financial transactions received as text messages. When banks send transaction notifications via platforms like Telegram, this n8n template captures the message, parses the critical details, and logs them instantly.
The automation begins with the Telegram n8n trigger. The intelligence of this n8n workflow lies in the custom Code n8n node, which is configured with advanced regular expressions (regex) capable of identifying and extracting structured data—such as merchant name, amount, card ending, and available limit—from various proprietary bank notification formats.
By leveraging this core logic, the data is transformed from unstructured text into clean, structured records ready for analysis. The final step uses the Google Sheets n8n node to ensure immediate and accurate financial record-keeping, making this n8n workflow a cornerstone for automated financial management.
The process executes in several critical stages, starting with the primary n8n trigger:
= character in the text) to quickly confirm if the message is potentially a transaction notification, preventing unnecessary execution of the complex parsing logic.format1, format2, format3) to match known bank message styles, extracting key fields like Amount, Merchant, Date, and Time into a standardized JSON object.To deploy this powerful n8n workflow, follow these setup steps:
Document ID and Sheet Name parameters to match your target expense ledger. Ensure your sheet columns match the fields being passed: Date, Time, Amount, Merchant, Card Ending, and Available Limit.transactions Code n8n node, you must modify the regex patterns (format1, format2, format3) within the JavaScript to successfully parse your specific transaction messages. This customization is key to the success of this n8n template. Telegram Trigger (n8n node): Serves as the primary starting point, the n8n trigger. It listens for incoming messages, initiating the n8n workflow.
If (n8n node): A flow control node that acts as a guardrail. It checks if the incoming message text contains the = sign, ensuring only likely transaction messages proceed to the resource-intensive parsing step.
transactions (Code n8n node): The core intelligence of this n8n workflow. It uses customized JavaScript and regular expressions to parse unstructured Telegram text messages, normalizing data from three different potential formats into consistent output variables (e.g., Amount, Merchant, Date).
Google Sheets (n8n node): The final action node. Configured to append data, it maps the extracted fields from the Code n8n node directly into columns in your chosen Google Sheet document, providing real-time expense logging.
Use this advanced n8n workflow to create a private Telegram bot that tracks expenses via text, voice, or image/PDF receipts. Features GPT-4o analysis, OCR, and custom storage.

Automate employee attendance tracking using this powerful n8n workflow. Fetch data from Google Sheets, run custom analytics, detect anomalies, and send timely alerts via Slack and Email.

Use this powerful n8n workflow to automate price monitoring. Scrape product data with ScrapeGraphAI, calculate price drops, log results to Baserow, and send instant alerts via Pushover. Download these n8n templates.

Use this comprehensive n8n workflow to automate expense tracking. It uses AI to parse receipt photos, stores data in Google Sheets, and provides real-time and scheduled budget reports via Slack.

Use this powerful n8n workflow to track income and expenses instantly via Telegram text commands or by sending receipt photos for automatic OCR processing and logging into Google Sheets.

Automate personal finance tracking using this ready-to-use n8n workflow template. Capture Telegram messages, parse expense data with GPT-4.1 Mini, and instantly log results into Google Sheets using the appropriate n8n node.


A digital/performance marketing professional who builds smart automation workflows using n8n. I help simplify complex tasks, improve efficiency, and save time by connecting apps and automating processes. I’m passionate about no-code solutions that drive business growth.







































