{
  "name": "Voice & text assistant with Telegram, Gemini AI, Calendar, Gmail & Notion",
  "nodes": [
    {
      "id": "79c2aa38-769d-4dd5-bb4a-cf675ea22e2d",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -640,
        0
      ]
    },
    {
      "id": "66a44dc8-8914-4555-9c38-1436ad19307a",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        384,
        16
      ]
    },
    {
      "id": "736b9880-a4c8-471d-a0e0-58a8b51c6cb5",
      "name": "Send a message in Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1040,
        384
      ]
    },
    {
      "id": "4cff267f-45dc-466e-869b-e4b4e08dfd91",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        560,
        -176
      ]
    },
    {
      "id": "89e93f91-c0aa-438d-87bd-5a1f525c36f5",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        400,
        -176
      ]
    },
    {
      "id": "ecb246b8-653d-46fb-817c-f123e22f871f",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1072,
        16
      ]
    },
    {
      "id": "4948f012-fb76-49d0-85fd-0327d398b45f",
      "name": "Check If Audio file",
      "type": "n8n-nodes-base.if",
      "position": [
        -208,
        0
      ]
    },
    {
      "id": "3461eb67-c0b2-4173-8b2e-de919b14f8c4",
      "name": "Transcribe a recording",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        144,
        -160
      ]
    },
    {
      "id": "189f07e3-6d2f-4b33-bd69-ee8c2c9d9916",
      "name": "Get a file",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -16,
        -160
      ]
    },
    {
      "id": "3bb3d890-849d-4c42-8b84-636971098567",
      "name": "Create an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        720,
        384
      ]
    },
    {
      "id": "fd1c0213-c0b1-41c4-9274-43cd63cb1193",
      "name": "Read event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        560,
        384
      ]
    },
    {
      "id": "214c9e52-968a-4933-839e-946cbfcd5f6f",
      "name": "Create notes in Notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        880,
        384
      ]
    },
    {
      "id": "cb8c4cbf-d6df-4e03-b84a-a3fea6331f39",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        -192
      ],
      "parameters": {
        "width": 592,
        "height": 368,
        "content": "## Telegram Trigger & Checks\n- Starts the workflow when a message is received on Telegram.  \n- Verifies the account to ensure only authorized users can access the bot.  \n- Checks if the incoming messa"
      }
    },
    {
      "id": "bf1fe6ec-79a3-4e94-862c-3c5427f86014",
      "name": "Account Check",
      "type": "n8n-nodes-base.switch",
      "position": [
        -416,
        0
      ]
    },
    {
      "id": "0b38ba6b-85ec-4de1-bacb-9d7381fc5398",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -288
      ],
      "parameters": {
        "width": 384,
        "height": 304,
        "content": "## Audio Handling\n- Retrieves the audio file if the input is a voice note.  \n- Transcribes the recording into text so it can be processed by the AI.  "
      }
    },
    {
      "id": "b30e6ccd-eebe-4972-9105-f61ce4f64a78",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -352
      ],
      "parameters": {
        "width": 368,
        "height": 336,
        "content": "\n## AI Setup\n- Defines the AI model (Google Gemini Chat Model).  \n- Adds Simple Memory to maintain conversation context.  "
      }
    },
    {
      "id": "eb6027ec-0990-433e-aff6-2cfd184e9f6c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        256
      ],
      "parameters": {
        "width": 896,
        "height": 288,
        "content": "\n## AI Setup\n- Defines the AI model (Google Gemini Chat Model).  \n- Adds Simple Memory to maintain conversation context.  "
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Account Check": {
      "main": [
        [
          {
            "node": "Check If Audio file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Account Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Audio file": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create notes in Notion": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message in Gmail": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Read event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}