{
  "name": "Track personal finances with GPT-4 via Telegram & Google Sheets",
  "nodes": [
    {
      "id": "1e564a55-3c3f-4b9e-97ee-15d0e472ff6b",
      "name": "Receive Input Via Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -660,
        100
      ]
    },
    {
      "id": "776a251a-390b-49e8-90fe-7f8971a4fb76",
      "name": "Transcribe Voice Message ",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        160,
        200
      ]
    },
    {
      "id": "44e251a9-e6ad-4d66-ade4-fbc1c3657325",
      "name": "Send AI Response To Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1040,
        100
      ]
    },
    {
      "id": "95f8ebb3-d4f7-408a-8269-424adf0c520a",
      "name": "User's Text Message",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "77e443cc-b86e-49ae-9868-b58bbfd6daac",
      "name": "Download User's Voice Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -120,
        200
      ]
    },
    {
      "id": "b2f8c528-9663-4d7b-9f55-010c6374ac23",
      "name": "Detect Message Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -440,
        100
      ]
    },
    {
      "id": "668f4ab0-936a-4383-8c10-21cfecfc7b7d",
      "name": "Finance Tracker Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        600,
        100
      ]
    },
    {
      "id": "75e50454-1567-4d90-bba4-dca4b545310e",
      "name": "Watch Existing Finance Data",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        820,
        320
      ]
    },
    {
      "id": "c6152675-c34e-4c5b-a58d-0b03775c22cd",
      "name": "Add New Finance Data",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        980,
        320
      ]
    },
    {
      "id": "1a7cb393-23c7-4f67-afdd-b13083d27a01",
      "name": "Generate User's Reply With OpenAi",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        500,
        320
      ]
    },
    {
      "id": "e5e389e5-d395-4d83-b2d3-1768b8f00404",
      "name": "Remember Chat History",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        660,
        320
      ]
    },
    {
      "id": "e99610e3-57ba-443e-9874-b37103de38ba",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2032e33b-c4c8-41f8-97c4-0bf4dd2a974e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "910588b8-1543-4de6-9bcb-f5835472d341",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Detect Message Type": {
      "main": [
        [
          {
            "node": "User's Text Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download User's Voice Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User's Text Message": {
      "main": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add New Finance Data": {
      "ai_tool": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Finance Tracker Agent": {
      "main": [
        [
          {
            "node": "Send AI Response To Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remember Chat History": {
      "ai_memory": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Voice Message ": {
      "main": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Input Via Telegram": {
      "main": [
        [
          {
            "node": "Detect Message Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watch Existing Finance Data": {
      "ai_tool": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download User's Voice Message": {
      "main": [
        [
          {
            "node": "Transcribe Voice Message ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate User's Reply With OpenAi": {
      "ai_languageModel": [
        [
          {
            "node": "Finance Tracker Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}