{
  "name": "Schedule appointments via Telegram with GPT-4o & Google Calendar",
  "nodes": [
    {
      "id": "d1451463-041d-4a8a-86b9-5084197aa58b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "228e4c9c-7b0f-4204-9faa-965ca90dc939",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        220,
        200
      ]
    },
    {
      "id": "40e58cd2-ff6a-4747-9d98-71ddcd162473",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        380,
        200
      ]
    },
    {
      "id": "6f9cea9d-f8a0-4694-ba88-912580937e95",
      "name": "Google Calendar1",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        640,
        200
      ]
    },
    {
      "id": "d54d3061-1645-4d87-9b0a-afbbf5be38f4",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -60,
        0
      ]
    },
    {
      "id": "628eb6da-2f55-42bc-af24-3d5102d39c08",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        640,
        -100
      ]
    },
    {
      "id": "06fa63b4-929f-4eda-95d8-33d64d01c404",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -60
      ],
      "parameters": {
        "width": 300,
        "height": 260,
        "content": "Telegram Message Received Trigger"
      }
    },
    {
      "id": "1df632ea-a2aa-4b5a-a145-35d92c0d47be",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -160
      ],
      "parameters": {
        "width": 400,
        "height": 540,
        "content": "Telegram Message Received Trigger"
      }
    },
    {
      "id": "1b60fdf1-425d-4b42-96b7-bef114660e46",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        -160
      ],
      "parameters": {
        "width": null,
        "height": 260,
        "content": "Telegram Response"
      }
    },
    {
      "id": "8ffa2de3-cdbf-44d4-8416-3754eb7b6810",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        120
      ],
      "parameters": {
        "width": null,
        "height": 260,
        "content": "Calendar Tool"
      }
    },
    {
      "id": "099f1140-1744-4ff7-bd12-00b441b861e1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -320
      ],
      "parameters": {
        "width": 440,
        "height": 880,
        "content": "🔧 How It Works\nTelegram Trigger – Listens for incoming messages from users via your Telegram bot.\n\nAI Agent – Processes the message to determine the user's intent (booking or canceling) and extracts n"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}