Member-only story
Create an Automated Database of Your Google Calendar Events
The first step to personalizing your Future AI, is to make your calendar available to it.
I’ve talked about building a personal corpus to power your personal AI. A good source of information to start personalizing your AI is your calendar. Our calendar contains information on the events we attend and the meetings we have, which can help our assistant create plans. These plans can then be augmented by our assistant or shared with others.
We are going to use the following components to create a knowledge store of our calendar events:
- Python Functions in Google Cloud
- Google Calendar APIs
- Firebase Database to store our information
Set up the Infrastructure
This section assumes that you have some experience with Google Cloud and Firebase. For more information, check out the links sprinkled throughout.
Enable the Google APIs — You’ll need the following APIs enabled in Google Cloud: Cloud Functions, Cloud Build, Artifact Registry, Cloud Run, and Cloud Logging APIs, and the Google Maps API. You’ll also need to ensure that you have billing enabled. There are generous free tiers for all of these APIs.
Create a Service Account — You’ll need this to connect your calendar and to run the Python code. Navigate to the Credentials tab of the API Page. Download the JSON.
After doing so, click on the service account and the Keys tab. Create a new Key and download the JSON.
Firebase Setup — We are going to use Firebase to manage our data. Firebase has generous free tiers, integrates with multiple languages, and becomes very easy to maintain if you expand this to a Flutter app. You’ll want to Create a new project, a web app, and get a service key. We will use this service key in our Python code to write to our database.