Skip to content

Docs / All tools / Loop III: Assistant

google.calendar_create_event

Create a Google Calendar event.

5 credits. Per event created. 0 when cancelled.

Example prompt

Send this to your AI app when Heelo is connected:

Schedule a team standup tomorrow at 9am for 30 minutes

Input fields

FieldTypeDescription
querystringNatural-language event creation request
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.
session_idstringMulti-turn session id: the answer to the question that comes before the write.
messagestringThe answer to that question: yes or no.

Output fields

The fields in data when status is success.

FieldType
event_idstring
titlestring
startstring
endstring
linkstring
summarystring

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_create_event/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "Schedule a team standup tomorrow at 9am for 30 minutes",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())