{
  "name": "Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts",
  "nodes": [
    {
      "id": "0cedf57b-fd46-4aa1-8f1b-6ffa36a79e96",
      "name": "forwarding",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1600,
        80
      ]
    },
    {
      "id": "8a483cc2-9ec3-4b3c-9713-4968b9e956ef",
      "name": "Classify",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        2080,
        224
      ]
    },
    {
      "id": "cb53694f-f9ce-441e-a7ef-ca6639d0b7a7",
      "name": "support@bayesian-labs",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1600,
        464
      ]
    },
    {
      "id": "32f75b58-2b41-4cfc-b06b-7d6e24a221f7",
      "name": "anoop.karnik@bayesian-labs",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1600,
        272
      ]
    },
    {
      "id": "4cd774d6-960d-4598-91bb-4af218121049",
      "name": "Send Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2976,
        96
      ]
    },
    {
      "id": "3374d3d1-f916-4dfd-827e-4678b697830e",
      "name": "Create Invoice Tool",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2704,
        256
      ]
    },
    {
      "id": "4f3acda7-3c4e-4f36-9044-cff3f405e510",
      "name": "Accountant Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2560,
        32
      ]
    },
    {
      "id": "2190e9fd-0caa-45d2-ba62-79aec69058a0",
      "name": "Accountant Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2560,
        432
      ]
    },
    {
      "id": "208f9201-fb04-4789-b5f0-e0b19a8e1812",
      "name": "Accountant Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2560,
        832
      ]
    },
    {
      "id": "257d35a6-d0d6-4f94-85e4-26e617139512",
      "name": "Create Transction Tool",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2656,
        656
      ]
    },
    {
      "id": "dce36af5-9b57-42c0-b4a3-272a9b88a5e9",
      "name": "Create Income Tool",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2640,
        1056
      ]
    },
    {
      "id": "e0378b46-f792-4727-9b15-40e0f9e5e50d",
      "name": "Set Email Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1904,
        256
      ]
    },
    {
      "id": "c0a1d0e4-b8d1-406d-bbad-c9a950d667a1",
      "name": "Accountant Agent3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2560,
        1344
      ]
    },
    {
      "id": "1dae2491-a946-4294-a1bf-d06453d5bddf",
      "name": "Create Income Tool1",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2640,
        1568
      ]
    },
    {
      "id": "cb1b70b9-41ef-4707-a151-77c4395e45e8",
      "name": "gpt-5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2576,
        256
      ]
    },
    {
      "id": "f0ce6083-37cb-4997-a2d2-17a8878aff55",
      "name": "gpt-5-nano",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2064,
        480
      ]
    },
    {
      "id": "f1153d7e-4b76-49cc-a809-de1a19c55177",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -48
      ],
      "parameters": {
        "width": 1200,
        "height": 896,
        "content": "# Logging invoice/transaction records in Notion directly from your gmail accounts\n\n### How it works\nThe workflow acts as an **AI-powered Accountant Agent** that reads incoming Gmail messages and decid"
      }
    },
    {
      "id": "7b761225-99d9-43f5-be3d-223b504aa415",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -32
      ],
      "parameters": {
        "width": null,
        "height": 656,
        "content": "## Step 1 - Trigger"
      }
    },
    {
      "id": "28a922f0-a013-49ec-9a0d-a496cccee865",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        -32
      ],
      "parameters": {
        "width": 544,
        "height": 688,
        "content": "## Step 2 - Classification"
      }
    },
    {
      "id": "4896bc94-9960-4ecf-be5d-9813dcf6d47d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        -32
      ],
      "parameters": {
        "width": 368,
        "height": 1776,
        "content": "## Step 3 - Agent"
      }
    },
    {
      "id": "0fe5c44e-f02d-4458-94ef-aead2890bcc6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        -32
      ],
      "parameters": {
        "width": null,
        "height": 352,
        "content": "## Step 4 - Send Message"
      }
    }
  ],
  "connections": {
    "gpt-5": {
      "ai_languageModel": [
        [
          {
            "node": "Accountant Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Accountant Agent1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Accountant Agent2",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Accountant Agent3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Classify": {
      "main": [
        [
          {
            "node": "Accountant Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Accountant Agent1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Accountant Agent2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Accountant Agent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "forwarding": {
      "main": [
        [
          {
            "node": "Set Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-5-nano": {
      "ai_languageModel": [
        [
          {
            "node": "Classify",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Email Data": {
      "main": [
        [
          {
            "node": "Classify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accountant Agent": {
      "main": [
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accountant Agent1": {
      "main": [
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accountant Agent2": {
      "main": [
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accountant Agent3": {
      "main": [
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Income Tool": {
      "ai_tool": [
        [
          {
            "node": "Accountant Agent2",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Income Tool1": {
      "ai_tool": [
        [
          {
            "node": "Accountant Agent3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Invoice Tool": {
      "ai_tool": [
        [
          {
            "node": "Accountant Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "support@bayesian-labs": {
      "main": [
        [
          {
            "node": "Set Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Transction Tool": {
      "ai_tool": [
        [
          {
            "node": "Accountant Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "anoop.karnik@bayesian-labs": {
      "main": [
        [
          {
            "node": "Set Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}