Skip to main content

Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts

Workflow preview

Workflow preview
100%
Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically Log Transactions from Gmail into Notion and Get Telegram Alerts Who’s it for This workflow is for individuals or entrepreneurs who receive bank alerts, invoices, and payment emails...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.textclassifier, n8n-nodes-base.telegram, n8n-nodes-base.notiontool, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anoop.

Original n8n.io source

1.1 Workflow description

Title
Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts
Workflow name
Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts

📩 Automatically Log Transactions from Gmail into Notion and Get Telegram Alerts

Who’s it for

This workflow is for individuals or entrepreneurs who receive bank alerts, invoices, and payment emails in Gmail and want them to be automatically organized in Notion — while also receiving quick Telegram notifications for each transaction.

If you manage personal or business finances and find it tedious to manually record every debit, credit, or invoice — this automation does it all for you.


How it works

The workflow acts as an AI-powered Accountant Agent that reads incoming Gmail messages and decides whether each email represents a Debit Transaction, Credit Transaction, Debit Invoice, or Credit Invoice.

  • The Gmail Trigger watches your selected inboxes (like [email protected], support@bayesian-labs, anoop.karnik@bayesian-labs).
  • The Classifier (GPT-5-nano) determines the correct transaction type.
  • The appropriate Agent (GPT-5) then extracts amount, currency, and description details.
  • The Agent uses Notion API tools to log structured data into your Personal Finance System Notion template (Financial Transactions & Income databases).
  • Finally, a Telegram notification is sent summarizing the entry (From, To, Subject, Snippet).

In short: every time your bank emails you — Notion gets updated, and you get notified.


How to set up

  1. Duplicate the Personal Finance System Notion template into your workspace.
  2. Create a Telegram Bot with BotFather → copy the bot token and your chat ID.
  3. Generate an OpenRouter API key for GPT-5 / GPT-5-nano.
  4. Create a Notion Integration Token and connect it to your duplicated finance databases.
  5. Add your Gmail accounts (forwarding@, support@, and/or personal Gmail) under Gmail OAuth2 credentials in n8n.
  6. Import the workflow JSON into n8n → fill in the credential names as listed below:
    • n8n_cloud_regular_usage → OpenRouter
    • Notion account → Notion API
    • Accountant AI → Telegram Bot
    • Gmail OAuth2 for each inbox trigger

Once active, n8n polls Gmail every minute, classifies emails, updates Notion, and sends Telegram updates.


Requirements

  • n8n instance (self-hosted or cloud)
  • Gmail accounts connected via OAuth2
  • OpenRouter API key
  • Telegram bot token & chat ID
  • Notion integration token
  • Your duplicated Personal Finance System Notion template

How to customize the workflow

You can extend this workflow to:

  • Track credit card statements, subscriptions, or payroll notifications.
  • Add Slack or WhatsApp alerts alongside Telegram.
  • Include live FX rates for USD→INR conversion using an API node.
  • Connect Google Sheets as a backup ledger or export target.
  • Add error-handling branches to mark Gmail messages as processed or label them “Logged to Notion”.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - forwarding

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 2 - Classify

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 3 - support@bayesian-labs

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 4 - anoop.karnik@bayesian-labs

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 5 - Send Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Create Invoice Tool

Type / Role
n8n-nodes-base.notionTool - notionTool
Config choices
Version 2.2

Block 7 - Accountant Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 8 - Accountant Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 9 - Accountant Agent2

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 10 - Create Transction Tool

Type / Role
n8n-nodes-base.notionTool - notionTool
Config choices
Version 2.2

Block 11 - Create Income Tool

Type / Role
n8n-nodes-base.notionTool - notionTool
Config choices
Version 2.2

Block 12 - Set Email Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Accountant Agent3

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 14 - Create Income Tool1

Type / Role
n8n-nodes-base.notionTool - notionTool
Config choices
Version 2.2

Block 15 - gpt-5

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 16 - gpt-5-nano

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts
Complexity advanced
Nodes 21
Categories Invoice Processing, AI Summarization
Author Anoop
Published 02 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10428/10428.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts do?

Automatically Log Transactions from Gmail into Notion and Get Telegram Alerts Who’s it for This workflow is for individuals or entrepreneurs who receive bank alerts, invoices, and payment emails...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.