calendar event ai agent

    by mohamed jilshad kt

    Shared 1/28/2026

    3 views

    Visual Workflow

    JSON Code

    {
      "id": "wgzK0ptlYrpg1V5wxXp66",
      "meta": {
        "instanceId": "0c48a1cc10cef691a190eb151f2754255e1326faf2a846c36b75b34edb6a4a53",
        "templateCredsSetupCompleted": true
      },
      "name": "event ai agent",
      "tags": [],
      "nodes": [
        {
          "id": "37b9dc5e-7ef4-4c5b-acad-4ba35aa8459f",
          "name": "When chat message received",
          "type": "@n8n/n8n-nodes-langchain.chatTrigger",
          "position": [
            0,
            0
          ],
          "webhookId": "d888da81-98b9-4864-baee-cce546971783",
          "parameters": {
            "options": {}
          },
          "typeVersion": 1.4
        },
        {
          "id": "3c669f63-c677-4fc7-b9a1-bf713c960867",
          "name": "AI Agent",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            208,
            0
          ],
          "parameters": {
            "options": {
              "systemMessage": "=#Role\nYou are a google calendar scheduling AI Agent that helps to add, get, update or delete the calendar events.\n\n#What to do\nyour responsibility is to understand natural language scheduling requests convert them into structured calendar event data that can be executed using calender tools.\n\n#tools available\n-creat new events: use this tool when a new event has to be created \n\n#important note\n-current date and time : {{ $now }}\n"
            }
          },
          "typeVersion": 3.1
        },
        {
          "id": "a611091d-6729-4f28-8053-424a50cdd387",
          "name": "OpenAI Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            80,
            208
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-5-mini",
              "cachedResultName": "gpt-5-mini"
            },
            "options": {},
            "builtInTools": {}
          },
          "credentials": {
            "openAiApi": {
              "id": "7TEYzDdXezlqnbf8",
              "name": "n8n free OpenAI API credits"
            }
          },
          "typeVersion": 1.3
        },
        {
          "id": "38814a0d-9ef2-4101-9529-2610ac047790",
          "name": "Simple Memory",
          "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
          "position": [
            224,
            208
          ],
          "parameters": {
            "contextWindowLength": 10
          },
          "typeVersion": 1.3
        },
        {
          "id": "766458a3-c535-4534-927e-e22b68262615",
          "name": "event schedular",
          "type": "n8n-nodes-base.googleCalendarTool",
          "position": [
            368,
            208
          ],
          "parameters": {
            "end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
            "start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
            "calendar": {
              "__rl": true,
              "mode": "list",
              "value": "jilshadwynd@gmail.com",
              "cachedResultName": "jilshadwynd@gmail.com"
            },
            "additionalFields": {
              "description": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Description', ``, 'string') }}"
            }
          },
          "credentials": {
            "googleCalendarOAuth2Api": {
              "id": "WrBwxdxHhi744sDs",
              "name": "Google Calendar account"
            }
          },
          "typeVersion": 1.3
        }
      ],
      "active": true,
      "pinData": {},
      "settings": {
        "availableInMCP": false,
        "executionOrder": "v1"
      },
      "versionId": "f109efc4-399c-4c51-842b-74ca5646c097",
      "connections": {
        "Simple Memory": {
          "ai_memory": [
            [
              {
                "node": "AI Agent",
                "type": "ai_memory",
                "index": 0
              }
            ]
          ]
        },
        "event schedular": {
          "ai_tool": [
            [
              {
                "node": "AI Agent",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "When chat message received": {
          "main": [
            [
              {
                "node": "AI Agent",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    }