Skip to content

Docs / All tools / Loop III: Assistant

google.calendar_list_events

List Google Calendar events within a date range.

2 credits. Per call.

Example prompt

Send this to your AI app when Heelo is connected:

What meetings do I have tomorrow?

Input fields

FieldTypeDescription
queryRequiredstringNatural-language calendar query

Output fields

The fields in data when status is success.

FieldType
eventsarray of object
time_minstring
time_maxstring
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_list_events/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "What meetings do I have tomorrow?",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())