{
  "name": "Manage Google Calendar events with OpenAI Assistant (Get, create, delete)",
  "nodes": [
    {
      "id": "16324d82-a9bc-4073-9b4c-fd77a090dca1",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -96,
        0
      ]
    },
    {
      "id": "874f3806-88e5-4402-a4fd-e4a3898c82b5",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        112,
        0
      ]
    },
    {
      "id": "415dd782-7737-4167-b22d-b8f45adc0d2b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -32,
        208
      ]
    },
    {
      "id": "cf9318a7-a3df-448e-8bed-4d2eb79da709",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        128,
        208
      ]
    },
    {
      "id": "c64f7db8-55e6-42da-afe9-9a4033620283",
      "name": "Create",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        416,
        160
      ]
    },
    {
      "id": "df7a77d7-ed5e-4b22-ac32-06a634b5be04",
      "name": "Get",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        272,
        208
      ]
    },
    {
      "id": "8c875363-d79a-47be-89c5-1ff43222c0ff",
      "name": "Delete",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        368,
        304
      ]
    },
    {
      "id": "1ac31106-5ff0-422f-a921-7a7c653c61a6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -16
      ],
      "parameters": {
        "width": 304,
        "height": 144,
        "content": "**CHILD — CALENDAR TOOLS**\n\n**Get**: list events by date range\n**Create**: start + end + summary (required)\n**Delete**: requires eventId\nMemory keyed by `sessionid`"
      }
    },
    {
      "id": "91cd60cf-8893-4b1b-935d-accaca98d43a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        144
      ],
      "parameters": {
        "width": 304,
        "height": null,
        "content": "**SUB-AGENT LOGIC**\n\n**Inputs**: text, sessionid\nAgent chooses the right tool\nReturn concise confirmation back to Parent"
      }
    }
  ],
  "connections": {
    "Get": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}