Public
Like
1
Notion_GCal_Sync
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v4View latest version
This project automatically:
- Checks your Google Calendar every morning for upcoming user meetings
- Identifies meetings with external users (non-@val.town email addresses)
- Creates a meeting prep page in Notion for each user meeting
- Gathers information about the meeting participant and populates the Notion page
- Google Cloud project with Calendar API enabled
- OAuth2 credentials (client ID and secret)
- Refresh token for accessing your calendar
- Notion API key
- Database ID where meeting pages will be created
GOOGLE_CLIENT_ID
: Your Google OAuth client IDGOOGLE_CLIENT_SECRET
: Your Google OAuth client secretGOOGLE_REFRESH_TOKEN
: Refresh token for your Google accountNOTION_API_KEY
: Your Notion API keyNOTION_DATABASE_ID
: ID of the Notion database where meeting pages will be createdTEAM_DOMAIN
: Your team's email domain (e.g., "val.town")
index.ts
: Main cron job that runs dailygoogleCalendar.ts
: Functions for interacting with Google Calendar APInotion.ts
: Functions for creating and updating Notion pagesuserInfo.ts
: Functions for gathering information about meeting participants