{
  "name": "AI-powered Telegram task assistant with Notion integration",
  "nodes": [
    {
      "id": "a0047d28-4079-4cde-aa32-5e5680ffa0e1",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1180,
        -360
      ]
    },
    {
      "id": "c3b1e3d7-5bf0-4458-9097-e289a5b5929e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        380,
        -360
      ]
    },
    {
      "id": "e4956c2a-640a-4765-a9a6-56afd768d1e5",
      "name": "Set text",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        -140
      ]
    },
    {
      "id": "eb4ada6f-0838-4b05-8e57-400d834d7d22",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        360,
        -140
      ]
    },
    {
      "id": "d9dfe7db-df80-416f-9539-aa2a40c3cb4a",
      "name": "Transribation",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -80,
        -460
      ]
    },
    {
      "id": "05eae3da-b8bf-4104-ac25-cd987d888752",
      "name": "Transcribe",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -300,
        -460
      ]
    },
    {
      "id": "c0d929c4-46fc-4608-8ab2-d76d97bd4a06",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -960,
        720
      ]
    },
    {
      "id": "b952b40c-61ab-4de7-b269-9ef807e47223",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1180,
        520
      ]
    },
    {
      "id": "975befd9-e395-456e-b8d7-956e8ba5a894",
      "name": "SETUP",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        620
      ]
    },
    {
      "id": "91d129a0-bced-48dc-86ae-3301754f01fb",
      "name": "Add Task",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        520
      ]
    },
    {
      "id": "c0c1d8eb-e2ae-4919-9618-1060b1d866ab",
      "name": "Get Tasks",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        320
      ]
    },
    {
      "id": "fc539220-0007-4154-8ba1-3a44410d1dc2",
      "name": "Complete Task",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        720
      ]
    },
    {
      "id": "8fab5419-bba3-46a4-9291-ac8e6321707f",
      "name": "Choose Method",
      "type": "n8n-nodes-base.switch",
      "position": [
        -520,
        578
      ]
    },
    {
      "id": "47e494d8-a3db-48c5-ad88-d208f4bac1a3",
      "name": "Set Task Time",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        920
      ]
    },
    {
      "id": "0739dc69-77f0-40c2-aa2b-55506913e4da",
      "name": "Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -80,
        620
      ]
    },
    {
      "id": "0efa85a4-4ae4-4ef9-9b18-9e35feb6cf17",
      "name": "Notion Tasks Manager Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        600,
        -140
      ]
    },
    {
      "id": "2cf0f70f-fa36-486e-809a-a4ae6fe11377",
      "name": "Voice or Text Message",
      "type": "n8n-nodes-base.switch",
      "position": [
        -740,
        -360
      ]
    },
    {
      "id": "e9aab24f-0859-434b-8986-ce189ebd307d",
      "name": "Download Voice File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -520,
        -460
      ]
    },
    {
      "id": "96e36864-d6c3-4baf-b89e-9dff5a3f77fa",
      "name": "Response user",
      "type": "n8n-nodes-base.telegram",
      "position": [
        800,
        -360
      ]
    },
    {
      "id": "b51fb7c1-cb5a-43c0-bd6f-a28ca73756b8",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        -140
      ]
    },
    {
      "id": "ccc7841a-8a29-4237-8ba4-3c65601a5ba1",
      "name": "Set text1",
      "type": "n8n-nodes-base.set",
      "position": [
        140,
        -460
      ]
    },
    {
      "id": "1ea7deec-c934-4246-a8d7-6fdb4f2ea7f8",
      "name": "Input for debuging",
      "type": "n8n-nodes-base.set",
      "position": [
        -960,
        520
      ]
    },
    {
      "id": "e6c26de9-2aa8-4222-b6f5-92d895698fc7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "SETUP": {
      "main": [
        [
          {
            "node": "Choose Method",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Response user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Task": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set text": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Tasks": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set text1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe": {
      "main": [
        [
          {
            "node": "Transribation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Choose Method": {
      "main": [
        [
          {
            "node": "Get Tasks",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Complete Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Complete Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Task Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Complete Task": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Task Time": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transribation": {
      "main": [
        [
          {
            "node": "Set text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Voice or Text Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Input for debuging": {
      "main": [
        [
          {
            "node": "SETUP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Voice File": {
      "main": [
        [
          {
            "node": "Transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Voice or Text Message": {
      "main": [
        [
          {
            "node": "Download Voice File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion Tasks Manager Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "SETUP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Input for debuging",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}