Track Finances From Telegram

Claudetelegram_bot_apiGoogle Sheets

Automatically log income and expenses from Telegram messages to Google Sheets with instant confirmations.

Telegram BotFinance TrackingGoogle SheetsExpense Management

Money Tracker Bot

This workflow tracks your income and expenses directly from Telegram messages. Whenever you send a money-related message to your Telegram bot, it automatically extracts the transaction details and logs them into a Google Sheet.

The workflow performs the following steps:

  1. Listens for new messages sent to your Telegram bot.
  2. Uses an AI model to interpret each message and extract structured financial data such as transaction type, amount, currency, category, and description.
  3. Filters out messages that do not pertain to money.
  4. Adds valid transactions as new rows in your specified Google Sheet.
  5. Sends a confirmation message back to you in Telegram showing the logged transaction.

What You Need

  • A Telegram bot with permissions to receive message updates (Telegram Bot API credentials).
  • A Needle account with access to the Needle AI connector.
  • A Google Sheets account with a prepared sheet to log transactions.
  • Connectors for Telegram and Google Sheets configured in Pipedream.

How It Works

NodePurpose
Telegram Bot API: Message Updates TriggerWatches for new messages sent to your Telegram bot.
Needle AI v2Processes each message to generate structured JSON with transaction details.
Code NodeFilters out messages categorized as "ignore" (non-money-related messages).
Google Sheets: Upsert RowInserts the transaction data as a new row in your chosen Google Sheet.
Telegram Bot API: Send Text MessageSends a confirmation message back in Telegram with the logged transaction details.

Output

At the end of this workflow, your financial transactions mentioned in Telegram messages are neatly recorded in your Google Sheet. You also receive immediate confirmation messages in Telegram so you can be confident your transactions have been logged.

Additional Notes

  • The AI recognizes Indian Rupees (₹, rs, rupees) and US Dollars ($, usd) based on currency symbols or keywords.
  • Messages unrelated to finances are ignored without interrupting the workflow.
  • Ensure your Google Sheet columns match the fields: transaction type, amount, currency, category, and description.
  • You can customize expense categories in the AI prompt for more detailed tracking.
  • Keep your Telegram bot token and Google Sheets credentials secure at all times.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy