Deleting appointment booking, not working

Describe the problem/error/question

I have designed a simple workflow to make appointments on my google calendar. The problem is that I am unable to delete the made appointments when ask the AI to do so.

What is the error message (if any)?

{ “message”: “The resource you are requesting could not be found”, “timestamp”: 1750927104570, “name”: “NodeApiError”, “description”: “Not Found”, “context”: {}, “cause”: { “message”: “404 - {"error":{"errors":[{"domain":"global","reason":"notFound","message":"Not Found"}],"code":404,"message":"Not Found"}}”, “name”: “AxiosError”, “stack”: “AxiosError: Request failed with status code 404\n at settle (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12)\n at Unzip.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11)\n at Unzip.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at invokeAxios (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:315:10)\n at proxyRequestToAxios (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:707:20)\n at Object.request (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1753:4)\n at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1177:12\n at SupplyDataContext.requestOAuth2 (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1100:9)\n at SupplyDataContext.requestOAuth2 (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1788:11)\n at SupplyDataContext.googleApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Google/Calendar/GenericFunctions.ts:46:10)\n at SupplyDataContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts:365:22)”, “code”: “ERR_BAD_REQUEST”, “status”: 404 } }

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "a6461304-dae6-4784-94a8-4f0b09792b14",
      "name": "Telegram Trigger",
      "webhookId": "389325a6-ae9d-4a4a-9ff7-18e8adfb06cf",
      "credentials": {
        "telegramApi": {
          "id": "Bxdkbf8SDFxfmDzr",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.message.voice.file_id }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "id": "5e044f2e-dce4-4ef7-8af4-02a98a3d4316"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Audio"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "61aa4b33-fa87-4e59-9ce6-14177cacd339",
                    "leftValue": "={{ $json.message.text || \"\" }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Text "
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        220,
        0
      ],
      "id": "147d33f8-0cc1-4a82-932b-ff08f970e428",
      "name": "Switch"
    },
    {
      "parameters": {
        "resource": "audio",
        "operation": "transcribe",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        680,
        -200
      ],
      "id": "61937557-d407-415b-abcd-c23e735589b3",
      "name": "Transcribe a recording",
      "credentials": {
        "openAiApi": {
          "id": "rA41tzG1oLoXjHiF",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=# Role\nAct as an Appointment Setting Personal Assistant deployed on Telegram, designed to help users efficiently manage their appointments and events.\n\n# Task\nAssist users in scheduling, deleting, and providing updates on their appointments or events. Your primary goal is to save users valuable time by simplifying the process of managing their calendar. When users request to create an event, ensure you gather all necessary details, including the event name, date, and time. If any information is missing, gently prompt the user for clarification. When users ask for updates, provide a clear summary of their upcoming events. \n\n## Specifics\n- Always assume the timing is in Singapore time.\n- Dates should be formatted as day, month, year.\n- Ensure you have the key data: event name, date, and time. If any of these are missing, politely ask for the missing information.\n- Use natural language in your responses.\n- Be intuitive; if a user sets a birthday or anniversary date, inquire if they would like to make it a recurring event.\n- If no timing is stated, assume a 1-hour time slot for events.\n\n# Tools\nYou have three tools to assist users in managing their appointments:\n1. **Create Event/Appointment/Booking Tool**: This tool allows you to create an event on the user's Google Calendar. Use this tool when the user provides a date, time, and name for the event.\n2. **Delete Event/Appointment/Booking Tool**: This tool allows you to delete an event from the user's Google Calendar. Call this tool when the user instructs you to \"delete\" or \"remove\" a specific event.\n3. **Get All Events Tool**: This tool allows you to access the user's Google Calendar and retrieve upcoming appointments. Use this tool when the user asks for updates on their schedule or upcoming events.\n\n# Examples\nQ: Hi, I have an event tomorrow, 5:30-6:30, Zoom meeting. Please schedule that for me.  \nA: Understood! Your event 'Zoom meeting' has been successfully set for (DD/MM), Day (e.g., Monday), Time: 5:30 PM to 6:30 PM.\n\nQ: 29/10, Kevin's birthday.  \nA: Alright! Event: \"Kevin's Birthday\", Date: (29th October) has been set! Do you want to make it a recurring event? Would you like to set aside a time?\n\nQ: Job interview, 3/7, Queenstown, 9 AM.  \nA: Got it! Event: Job interview, Date: (3rd July), Location: Queenstown, 9 AM has been set!\n\nQ: Delete graduation event on 15 July.  \nA: Understood! Event: graduation, date 15 July...deleted!\n\n# Notes\n- Always tailor your responses to the specific needs of the user's query.\n- Maintain a friendly and helpful tone throughout your interactions.\n- Avoid making assumptions about the user's preferences; always ask for clarification when needed.\n- Think logically and take a moment to process each input before responding.\n-The current date is {{ $now }}\n#Rule\n1. When exact date or time is specified e.g \"create an event for next Tuesday\" always refer to the current time reference, which is: {{ $now }}\n2. Always assume time is ing GMT+08 (SGT).\n3. Unless specified, assume event duration will be 1 hour."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [
        960,
        -80
      ],
      "id": "99de8eb4-e9d1-4aa7-b8bf-b3ba00d7ccba",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "be20e593-fb57-4166-b350-a98643151091",
              "name": "text",
              "value": "={{ $json.message.text }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        660,
        100
      ],
      "id": "a46e91e1-589c-43bd-b97e-c8501f486de1",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        840,
        140
      ],
      "id": "a60d6168-dd69-493a-921e-2d782e2ae567",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "rA41tzG1oLoXjHiF",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Telegram Trigger').item.json.update_id }}",
        "contextWindowLength": 10
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        960,
        140
      ],
      "id": "e5120e5b-3f5b-4bd0-88e7-028574d600f3",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Use this tool to create an event in Google Calendar",
        "calendar": {
          "__rl": true,
          "value": "[email protected]",
          "mode": "list",
          "cachedResultName": "[email protected]"
        },
        "start": "={{ $fromAI(\"start\",\"it is the meeting date starting time\") }}",
        "end": "={{ $fromAI(\"end\",\"it is the meeting date ending time\") }}",
        "additionalFields": {
          "summary": "={{ $fromAI(\"eventName\",\"the name of the calendar event\") }}"
        }
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1080,
        180
      ],
      "id": "46483d6d-0eb1-46fb-8a27-6d248b696866",
      "name": "Create an event in Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "Us0QDJNNkAgl8yQe",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Use this tool to delete an event in Google Calendar",
        "operation": "delete",
        "calendar": {
          "__rl": true,
          "value": "[email protected]",
          "mode": "list",
          "cachedResultName": "[email protected]"
        },
        "eventId": "={{ $fromAI(\"Event_ID\"),\"it is the id of the specific event\" }}",
        "options": {}
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1280,
        140
      ],
      "id": "39c39ec3-cd2b-4b85-a4fa-b7df49e8b5df",
      "name": "Delete an event in Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "Us0QDJNNkAgl8yQe",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "value": "[email protected]",
          "mode": "list",
          "cachedResultName": "[email protected]"
        },
        "returnAll": true,
        "timeMin": "={{ $fromAI(\"after\") }}",
        "timeMax": "={{ $now.plus({ week: 4 }) }}",
        "options": {}
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        1440,
        60
      ],
      "id": "b2b87ee8-cc58-4659-bc32-11bf60f2bcb9",
      "name": "Get many events in Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "Us0QDJNNkAgl8yQe",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "resource": "file",
        "fileId": "={{ $json.message.voice.file_id }}"
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        440,
        -100
      ],
      "id": "b9ad41f0-2a36-4bdc-b6d8-b703643dad05",
      "name": "Get a file",
      "webhookId": "4f1ff1f1-cf22-4a87-b7af-e0ed3940f269",
      "credentials": {
        "telegramApi": {
          "id": "Bxdkbf8SDFxfmDzr",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1320,
        -80
      ],
      "id": "10d27225-c7fe-45e8-944e-859c56809ef9",
      "name": "Send a text message",
      "webhookId": "683a5561-96a1-4407-89bf-f14df2831ec7",
      "credentials": {
        "telegramApi": {
          "id": "Bxdkbf8SDFxfmDzr",
          "name": "Telegram account"
        }
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Create an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many events in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a"
  }
}




## Information on your n8n setup
- **n8n version:**1.991
- **Database (default: SQLite):**default
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
- **Operating system:**Windows 11 64 bit AMD

share your canvas

Hi Abdullah! How do I share my Canvas? Sorry I am very new to this!

I hope this works!