{
  "name": "Autonomous meeting scheduler with GPT-4o-mini, Telegram, and Google Calendar",
  "nodes": [
    {
      "id": "bf47fb65-15dd-44e7-a0ed-8bad3d6b21f8",
      "name": "Main Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -432
      ],
      "parameters": {
        "width": 404,
        "height": 1424,
        "content": "## 🤖 PRIVATE AI VIRTUAL ASSISTANT\n\n**What you're looking at:**\nA production-ready AI assistant that handles business tasks through natural conversation on Telegram. This example shows meeting scheduli"
      }
    },
    {
      "id": "08613d19-4e62-4225-86cd-5c33bf4325c8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## 1️⃣ TRIGGER\n\nReceives messages from Telegram.\nUser sends: \"Schedule meeting with Anna on Friday\""
      }
    },
    {
      "id": "868b5e9c-985b-4015-bc97-450178ed739a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## 2️⃣ PREPARE DATA\n\nExtracts:\n- User's message text\n- Chat ID\n- User name"
      }
    },
    {
      "id": "d5073eaf-d908-4a00-b582-cadb1d054225",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## 3️⃣ LOAD CRM DATA\n\nFetches contact database from Google Sheets.\nFormat: Name | Email | Phone"
      }
    },
    {
      "id": "a93b82a9-782e-41d6-94f1-21121579ac8d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -432
      ],
      "parameters": {
        "width": 280,
        "height": 200,
        "content": "## 4️⃣ AI AGENT\n\nProcesses request:\n✅ Finds contact in CRM\n✅ Checks calendar availability\n✅ Proposes 3 time slots\n✅ Confirms selection\n✅ Creates meeting"
      }
    },
    {
      "id": "60864fb3-8e64-48eb-8c55-d1d622227fb9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -432
      ],
      "parameters": {
        "width": null,
        "height": 224,
        "content": "## 5️⃣ SEND RESPONSE\n\nReplies to user on Telegram with:\n- Available time slots\n- Confirmation message\n- Meeting details"
      }
    },
    {
      "id": "c56fe12f-7dc0-484b-bf26-07be9b128140",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        -432
      ],
      "parameters": {
        "width": 260,
        "height": 180,
        "content": "## 6️⃣ CREATE EVENT & EMAIL\n\nOn confirmation:\n✅ Creates Google Calendar event\n✅ Sends email to attendee\n✅ Invites both parties"
      }
    },
    {
      "id": "e2fafb54-d29c-41f5-a27b-eacdf06d19ac",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        192,
        -176
      ]
    },
    {
      "id": "c341f437-2ee8-44aa-8244-d450f6090d3d",
      "name": "Prepare Data",
      "type": "n8n-nodes-base.set",
      "position": [
        368,
        -176
      ]
    },
    {
      "id": "5ec6cefc-a890-4835-ad74-d995f6b80eba",
      "name": "Load CRM Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        544,
        -176
      ]
    },
    {
      "id": "9b0aa7f7-f978-4b12-8373-6ad750c1ef52",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        752,
        -176
      ]
    },
    {
      "id": "6be1dd14-4e9b-4e2e-9b63-d290986c4ff9",
      "name": "OpenAI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        32
      ]
    },
    {
      "id": "ad13639a-4ec2-4c0e-a4b0-c2c7ad2da243",
      "name": "Google Calendar Tool",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        752,
        32
      ]
    },
    {
      "id": "d9d903ea-2975-4e28-8a39-66e3c9f39459",
      "name": "CRM Search Tool",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        912,
        32
      ]
    },
    {
      "id": "3f024701-0593-45b8-bd46-3ad1e31de8bf",
      "name": "Send Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1088,
        -176
      ]
    },
    {
      "id": "bf820462-92f0-4de7-af70-a0f815fd0574",
      "name": "Should Create Event?",
      "type": "n8n-nodes-base.if",
      "position": [
        1104,
        32
      ]
    },
    {
      "id": "6a96d132-44fd-4c7c-a91d-2d4560d61d18",
      "name": "Create Calendar Event",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1344,
        -80
      ]
    },
    {
      "id": "7f609783-fbf6-4951-9d4d-cfcfc10185f0",
      "name": "Send Confirmation Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1552,
        -80
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Should Create Event?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Data": {
      "main": [
        [
          {
            "node": "Load CRM Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load CRM Data": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CRM Search Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Prepare Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Should Create Event?": {
      "main": [
        [
          {
            "node": "Create Calendar Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Calendar Event": {
      "main": [
        [
          {
            "node": "Send Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}