Skip to content

Docs / All tools / Loop III: Assistant

google.calendar_delete_event

Delete a Google Calendar event.

5 credits. Per event deleted. 0 when cancelled.

Example prompt

Send this to your AI app when Heelo is connected:

Cancel my 3pm meeting tomorrow

Input fields

FieldTypeDescription
querystringNatural-language event cancellation or deletion request
event_idstringSpecific event ID if already known
send_cancellationbooleanIf you organize the event and it has guests, email them the cancellation.
session_idstringMulti-turn session id.
messagestringFollow-up answer (which event / yes or no).

Output fields

The fields in data when status is success.

FieldType
deletedarray of object
countinteger
notifiedboolean
answerstring

Code

The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/google.calendar_delete_event/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "Cancel my 3pm meeting tomorrow",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())