Skip to content

Instantly share code, notes, and snippets.

@danielgross
danielgross / quickadd.py
Last active December 18, 2024 10:17
Quick Add to Google Calendar
"""
Use GPT-3 to generate a calendar event based on natural language input.
I tried having GPT-3 generate the URL directly, but, amusingly, that didn't work well.
"""
import os
import sys
import openai
import datetime
import pytz