Paste event information to auto-convert to a Google Calendar Invite
This project is a web application that generates Google Calendar links from natural language input. It uses OpenAI’s GPT model to parse the input and extract event details.
To install Go on Mac:
Visit the official Go download page: https://go.dev/dl/
Download the macOS installer package (e.g., “go1.17.7.darwin-amd64.pkg” or the latest version available for macOS).
Open the downloaded package and follow the installation wizard.
Verify the installation by opening Terminal and running:
go version
Sign up for an OpenAI account and obtain an API key.
Set the API key as an environment variable:
export OPENAI_API_KEY=your_api_key_here
Replace your_api_key_here with your actual OpenAI API key.
In your project directory, run:
go mod init calendar-link-generator
go get github.com/sashabaranov/go-openai
Clone this repository or copy the main.go and index.html files to your local machine.
In the project directory, run:
go run main.go
Open a web browser and navigate to http://localhost:8080
Example input to paste:
Meeting with John at Starbucks on 5th Avenue tomorrow at 3pm to discuss the new project proposal
To create a standalone executable:
In the project directory, run:
go build -o calendar-link-generator
This will create an executable file named calendar-link-generator in your current directory.
To run the executable:
./calendar-link-generator
The application will start and be accessible at http://localhost:8080