Back to Templates
This workflow is for anyone who wants to log their daily expenses by simply chatting with a Telegram bot. Ideal for:
User sends a text message on Telegram describing an expense
(e.g., “Bought coffee for 50k at Highlands”)
Message format is validated
OpenAI GPT-4.1 Mini parses the message and returns:
relevant
: true/falseexpense_record
: structured fields (date, amount, currency, category, description, source)message
: a friendly confirmation or fallbackIf valid:
If invalid:
Telegram Trigger
nodeDate | Amount | Currency | Category | Description | SourceMessage
OpenAI Chat Model
node using your OpenAI API keyrelevant
, expense_record
, and message
Structured Output Parser
node to safely parse the JSON responseIs text message?
Supported scenario?
relevant = true
in the LLM responseFeature | How to Customize |
---|---|
Add multi-currency support | Update system prompt to detect and extract different currencies |
Add more categories | Modify the list of categories in the system prompt |
Track multiple users | Add username or chat ID column to the Google Sheet |
Trigger alerts | Add Slack, Email, or Telegram alerts for specific expense types |
Weekly summaries | Use a cron node + Google Sheet query + Telegram message |
Visual dashboards | Connect the sheet to Looker Studio or Google Data Studio |
Built with 💬 Telegram + 🧠 GPT-4.1 Mini + 📊 Google Sheets + ⚡ n8n