{
  "name": "Manage Notion to-do tasks via Telegram with voice messages & OpenAI",
  "nodes": [
    {
      "id": "89bf8d98-4595-41d8-9930-32ba5f2f9715",
      "name": "Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        2976,
        1120
      ]
    },
    {
      "id": "d6ce2a5c-24cd-4c72-9f1d-33c999127b37",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1648,
        1088
      ]
    },
    {
      "id": "e2922313-4947-45e4-811c-e3fcf1e2cdef",
      "name": "Get Email",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2656,
        1120
      ]
    },
    {
      "id": "d92c4391-f8ff-4bb9-8d19-5a1bc3b27af9",
      "name": "Listen for incoming events",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        736,
        608
      ]
    },
    {
      "id": "3e453427-3464-4270-ae86-1a222ff70da4",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2224,
        544
      ]
    },
    {
      "id": "604f47ce-4c8a-4f3b-8ff5-bdc078bc5abc",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1184,
        560
      ]
    },
    {
      "id": "d065581c-853c-48a9-8416-a2a8e576f17f",
      "name": "Voice or Text",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        560
      ]
    },
    {
      "id": "1fde4e34-a8f7-48ac-aa6f-d9e403cc7d4f",
      "name": "Get Voice File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1344,
        560
      ]
    },
    {
      "id": "e7c8ce38-701c-4b5b-8af0-0c3e78388c99",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2816,
        1120
      ]
    },
    {
      "id": "92f504a7-7b49-43bb-b8f7-eb548657b9be",
      "name": "Create a page in Notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2096,
        1072
      ]
    },
    {
      "id": "44c58a47-fe5a-4dca-aeda-1e2807d0930b",
      "name": "Search a page in Notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2304,
        1072
      ]
    },
    {
      "id": "08765f57-adb1-4c86-8cc9-1e10437af4a9",
      "name": "Tard, AI Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1792,
        544
      ]
    },
    {
      "id": "14ca2fc6-5eea-4d22-8ad7-12999470c3d0",
      "name": "Transcribe a recording",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1488,
        560
      ]
    },
    {
      "id": "2fb3659e-7caa-4882-bcbe-31693015b322",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1424,
        1088
      ]
    },
    {
      "id": "80d0f7ec-bfc7-4849-be1e-0e89352104d4",
      "name": "Sticky - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        48
      ],
      "parameters": {
        "width": 720,
        "height": 284,
        "content": "## How it works\n\nThis workflow turns Telegram messages (text or voice) into actions in Notion.\nUsers can send a message to a Telegram bot, and the workflow will:\n• Convert voice messages to text using"
      }
    },
    {
      "id": "cb8e96c1-889b-4596-ae27-16c2dce6f71d",
      "name": "Sticky - Telegram Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        416
      ],
      "parameters": {
        "width": 248,
        "height": 374,
        "content": "## Telegram Input\n\nReceives incoming Telegram messages.\nRoutes text vs. voice messages to the correct processing path."
      }
    },
    {
      "id": "8dcb6150-9a07-4dbc-ba98-b655dd4aa342",
      "name": "Sticky - Voice to Text",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        416
      ],
      "parameters": {
        "width": 632,
        "height": 326,
        "content": "## Voice to Text\n\nDownloads Telegram voice messages and converts them into text using OpenAI."
      }
    },
    {
      "id": "3b6cc3ea-0f1d-485d-868d-609f06711ac9",
      "name": "Sticky - Conversation Memory",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        864
      ],
      "parameters": {
        "width": 472,
        "height": 374,
        "content": "## Conversation Memory\n\nStores recent messages so the assistant can stay on topic during short conversations."
      }
    },
    {
      "id": "ab57e9d8-b0d5-4718-90bb-73590690563c",
      "name": "Sticky - AI Assistant",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        368
      ],
      "parameters": {
        "width": 336,
        "height": 320,
        "content": "## AI Assistant\n\nUnderstands user requests and decides when to search or create tasks in Notion.\nThe agent is strictly focused on Todo management."
      }
    },
    {
      "id": "801578c6-02f2-4061-a277-935adf32426d",
      "name": "Sticky - Notion Integration",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        944
      ],
      "parameters": {
        "width": 560,
        "height": 294,
        "content": "## Notion Integration\n\nCreates and searches tasks and pages inside Notion based on the user request."
      }
    },
    {
      "id": "fd445769-1646-462c-ac56-98146cf14241",
      "name": "Sticky - Reply to User",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2128,
        368
      ],
      "parameters": {
        "width": 312,
        "height": 326,
        "content": "## Reply to User\n\nSends the assistant’s response back to Telegram in a clean, readable format."
      }
    },
    {
      "id": "ad99f8b9-9b3a-4833-9847-a27fb91231d3",
      "name": "Sticky - Optional Integrations",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2560,
        928
      ],
      "parameters": {
        "width": 560,
        "height": 378,
        "content": "## Optional Integrations\n\nGmail and Google Calendar nodes are disabled by default.\nEnable and configure them only if you want to extend the workflow beyond Notion."
      }
    },
    {
      "id": "ef8587f2-203f-47fa-8e2e-1a9ab1471a7c",
      "name": "Sticky - Credit",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        256
      ],
      "parameters": {
        "width": 340,
        "height": 120,
        "content": "### Credit\nBuilt / customized by **weblane.co.il**"
      }
    },
    {
      "id": "c345136a-8356-48b0-8425-934f0f9fd173",
      "name": "Sticky - Overview1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        48
      ],
      "parameters": {
        "width": 720,
        "height": 220,
        "content": "## Setup steps\n\n1. Create a Telegram bot and connect it to the Telegram Trigger node\n2. Add your OpenAI API key (used for voice transcription and the AI agent)\n3. Connect your Notion account and updat"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get Voice File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tard, AI Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Email": {
      "ai_tool": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "ai_tool": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Voice or Text": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice File": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Tard, AI Assistant": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a page in Notion": {
      "ai_tool": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search a page in Notion": {
      "ai_tool": [
        [
          {
            "node": "Tard, AI Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Listen for incoming events": {
      "main": [
        [
          {
            "node": "Voice or Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}