Allocate bank CSV spending to rolling envelopes with Sheets and Telegram
Ready for 3.0What this workflow does
This AI workflow has 55 nodes and runs when someone submits an n8n form (“Import a bank CSV into budget envelopes”) (plus 2 other triggers). Along the way it connects Telegram, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (“Import a bank CSV into budget envelopes”) (plus 2 other triggers).
- Set Configuration (Edit Fields (Set)): sets 8 fields: spreadsheetUrl, telegramChatId, timezone…
- Route by Trigger (Switch): routes items into 3 branches
- Get Csv Text (Code): runs custom JavaScript code
- Read Envelopes for Summary (Google Sheets): uses Google Sheets
- Read Envelopes for Learning (Google Sheets): uses Google Sheets
- Read Bank Profiles (Google Sheets): uses Google Sheets
- Read Transactions for Summary (Google Sheets): uses Google Sheets
- Read Rules for Learning (Google Sheets): uses Google Sheets
- Read Envelopes for Import (Google Sheets): uses Google Sheets
- Read Monthly for Summary (Google Sheets): uses Google Sheets
…plus 40 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (15)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Telegram
n8n-nodes-base.telegram - n8n Form
n8n-nodes-base.form
From the author
Quick overview This workflow imports a bank statement CSV into a Google Sheets envelope budget, auto-allocates transactions using stored rules (and optional OpenAI suggestions), maintains a rolling monthly ledger, and uses Telegram for weekly summaries,…