{
  "name": "Manage Google Calendar events with natural language using Gemini 1.5 Flash",
  "nodes": [
    {
      "id": "ba7b6068-39e1-415b-9fd4-591304c2e37b",
      "name": "Google Calendar1",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        160,
        20
      ]
    },
    {
      "id": "e7fd1c3d-5f5c-4033-b9a9-5a97fa930a1c",
      "name": "Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -60,
        80
      ]
    },
    {
      "id": "78f963b1-2581-4106-96f8-9142319154d4",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -320,
        60
      ]
    },
    {
      "id": "c78dad7d-0997-4ac8-b30d-9d8563665059",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -560,
        140
      ]
    },
    {
      "id": "2dd0a798-19df-4579-899d-09d92be3a3ce",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -280,
        -200
      ]
    },
    {
      "id": "3a00ee73-ae8e-4913-b948-2ff2308b8775",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -580,
        -220
      ]
    },
    {
      "id": "d6300f52-3c5f-47e8-9dce-2018f22b081d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        -300
      ],
      "parameters": {
        "width": null,
        "height": 240,
        "content": "Send the prompt if we want to set the event on the calendar or get events available in the calendar"
      }
    },
    {
      "id": "e48711cf-8484-42eb-950e-937baa5cee76",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -300
      ],
      "parameters": {
        "width": 360,
        "height": 220,
        "content": "Responsible for injecting the system prompt so things that are related for the project is only carried out. Also connects Gemini, Memory and calendar application together"
      }
    },
    {
      "id": "cdb655b0-52e8-4335-9570-0b05b06418b1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        40
      ],
      "parameters": {
        "width": 220,
        "height": 240,
        "content": "Takes in the prompt and gives out the small event name based on the prompt"
      }
    },
    {
      "id": "56b1989b-73e4-4548-a8ee-c0da3f1d8d9b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        60
      ],
      "parameters": {
        "width": null,
        "height": 200,
        "content": "\n\n\n\n\n\n\n\n\nInbuilt memory for n8n which will store the value prompt received by AI agent so model can remember the conversation"
      }
    },
    {
      "id": "bbfa4e3b-de8a-4453-ae33-7d656a0324a0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        60
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\nCalendar node responsible for adding event in the calendar"
      }
    },
    {
      "id": "90780243-d4a9-41f0-8359-4ed773198660",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        -20
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\nCalendar node responsible for getting all the events in asked timeframe"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}