{
  "name": "Create Notion tasks from Telegram messages with GPT-3.5",
  "nodes": [
    {
      "id": "3b50fa4c-5308-44d7-b0d8-57a2d96805c4",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        48,
        -96
      ]
    },
    {
      "id": "485a384d-551b-4aae-a7ca-b7846cc1daa9",
      "name": "Switch text vs audio",
      "type": "n8n-nodes-base.switch",
      "position": [
        224,
        -96
      ]
    },
    {
      "id": "9ff44832-b7e2-46b1-9475-0b114356a1ff",
      "name": "Download recording",
      "type": "n8n-nodes-base.telegram",
      "position": [
        448,
        -240
      ]
    },
    {
      "id": "bf9db602-fbdc-4a28-8a58-35a34842e69b",
      "name": "Confirmation message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1232,
        -80
      ]
    },
    {
      "id": "a4dc46b9-7db8-4217-b200-78be740e0ebc",
      "name": "Transcribe recording",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        672,
        -240
      ]
    },
    {
      "id": "b241e830-b313-4c5c-9cd2-af6e2906575a",
      "name": "Create new Task in Notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1008,
        128
      ]
    },
    {
      "id": "fa869e10-c357-4427-960f-0b7accdab483",
      "name": "Handle Text Message",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        -80
      ]
    },
    {
      "id": "8cec9f54-5dab-430d-a2bd-84c5a85ed88a",
      "name": "Interpret Request",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        864,
        -80
      ]
    },
    {
      "id": "7d031162-e51e-4a92-8245-0796994a5e72",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -240
      ],
      "parameters": {
        "width": 432,
        "height": 400,
        "content": "## Telegram Add Notion Tasks Workflow\n\nThis workflow will accept incoming messages to your Telegram bot and will decipher them to add a new task to your Notion Tasks database.  You can send the messag"
      }
    },
    {
      "id": "92a5115b-013e-42fc-ba48-59ba44cb1152",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        96
      ],
      "parameters": {
        "width": 384,
        "height": 192,
        "content": "Make sure to adjust the timezone\nto your preferred setting."
      }
    },
    {
      "id": "d277326d-1006-4e3f-8f13-5daba98bc6b4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        -176
      ],
      "parameters": {
        "width": 304,
        "height": 224,
        "content": "**Optional:** Adjust the system prompt here with any specific instructions you deem necessary."
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch text vs audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Interpret Request": {
      "main": [
        [
          {
            "node": "Confirmation message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download recording": {
      "main": [
        [
          {
            "node": "Transcribe recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Handle Text Message": {
      "main": [
        [
          {
            "node": "Interpret Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confirmation message": {
      "main": [
        []
      ]
    },
    "Switch text vs audio": {
      "main": [
        [
          {
            "node": "Download recording",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Handle Text Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe recording": {
      "main": [
        [
          {
            "node": "Interpret Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create new Task in Notion": {
      "ai_tool": [
        [
          {
            "node": "Interpret Request",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}