{
  "name": "Ai-powered Telegram task manager with MCP server",
  "nodes": [
    {
      "id": "ca8b122d-1739-4377-ac99-e20dd2341342",
      "name": "Incoming Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1020,
        -320
      ]
    },
    {
      "id": "68f7568b-e677-454b-a1e8-6c07a05e7570",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -860,
        240
      ]
    },
    {
      "id": "635b8ecc-0f50-477d-8e19-631f868e30f6",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        340,
        -320
      ]
    },
    {
      "id": "ab7740dc-bac2-4044-8317-40d90252d992",
      "name": "MCP Client",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        540,
        -100
      ]
    },
    {
      "id": "5298eee0-747a-496a-a3a2-e395f7c1caa1",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        300,
        -100
      ]
    },
    {
      "id": "c5b7e10d-2d7c-403c-bcb5-a10033252f97",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        420,
        -100
      ]
    },
    {
      "id": "06d2e8c8-3912-45cd-a074-4eea27c2e5eb",
      "name": "chatInput",
      "type": "n8n-nodes-base.set",
      "position": [
        80,
        -220
      ]
    },
    {
      "id": "a9309816-8c1d-435c-ad49-2e45053718c1",
      "name": "create_todays_task",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1020,
        460
      ]
    },
    {
      "id": "ad6cfc1a-7094-434a-98d1-a6f030067091",
      "name": "chatOutput",
      "type": "n8n-nodes-base.set",
      "position": [
        740,
        -320
      ]
    },
    {
      "id": "e342066f-3cf8-4926-94df-798e831226be",
      "name": "sendMessage",
      "type": "n8n-nodes-base.telegram",
      "position": [
        960,
        -320
      ]
    },
    {
      "id": "e4a1bc16-549f-46a2-92a8-a06e6023089c",
      "name": "create_upcoming_task",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -900,
        460
      ]
    },
    {
      "id": "df71bb02-016d-4d56-b80d-404a60c0e7cf",
      "name": "complete_task",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -780,
        460
      ]
    },
    {
      "id": "a33812bd-986e-4762-87a0-199ff8a7c9aa",
      "name": "get_todays_tasks",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -660,
        460
      ]
    },
    {
      "id": "dcb3a6c9-5d7c-4fe6-8b52-f07cf74cfa0c",
      "name": "get_upcoming_tasks",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -540,
        460
      ]
    },
    {
      "id": "ce63c24a-ce2f-4e06-8ae5-7de75540d438",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -800,
        -320
      ]
    },
    {
      "id": "a58488c3-38b8-4492-9f13-a900c7697812",
      "name": "audio_id",
      "type": "n8n-nodes-base.set",
      "position": [
        -580,
        -420
      ]
    },
    {
      "id": "83c2ecae-b601-4669-b820-b5c35d3f936e",
      "name": "download_audio",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -360,
        -420
      ]
    },
    {
      "id": "4a496e3a-2e3a-4ce0-9344-192847de1760",
      "name": "transcribeAudio",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -140,
        -420
      ]
    },
    {
      "id": "38b6aa37-d279-4b1b-be42-7f7cc1bbe688",
      "name": "audioInput",
      "type": "n8n-nodes-base.set",
      "position": [
        80,
        -420
      ]
    },
    {
      "id": "e524f12f-205f-4fc8-b2f0-b308ec4066b7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        -500
      ],
      "parameters": {
        "width": 2180,
        "height": 540,
        "content": "## Main Function to Receive and Send Telegram Messages\n"
      }
    },
    {
      "id": "709b252a-b5e8-4c7e-8bcd-a7092d588070",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        140
      ],
      "parameters": {
        "width": 640,
        "height": 480,
        "content": "## MCP Server to Carry Out Actions"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "audio_id",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "chatInput",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "chatOutput",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "audio_id": {
      "main": [
        [
          {
            "node": "download_audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "chatInput": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "audioInput": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "chatOutput": {
      "main": [
        [
          {
            "node": "sendMessage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "complete_task": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "download_audio": {
      "main": [
        [
          {
            "node": "transcribeAudio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "transcribeAudio": {
      "main": [
        [
          {
            "node": "audioInput",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Incoming Message": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_todays_tasks": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "create_todays_task": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get_upcoming_tasks": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "create_upcoming_task": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}