Google Calendar
Google Calendar
Connect your Google Calendar data to Airweave
Overview
The Google Calendar connector allows you to sync data from Google Calendar into Airweave, making it available for search and retrieval by your agents.
Configuration
GoogleCalendarSource
Google Calendar source implementation (read-only).
Retrieves and yields Google Calendar objects (CalendarList entries, Calendars, Events, and Free/Busy data) as entity schemas defined in entities/google_calendar.py.
Authentication
This connector uses OAuth 2.0 with refresh token.
You can connect through the Airweave UI, which will guide you through the OAuth flow.
Entities
The following data models are available for this connector:
GoogleCalendarCalendarEntity
Schema for a Google Calendar object (the underlying calendar resource).
See: https://developers.google.com/calendar/api/v3/reference/calendars
GoogleCalendarListEntity
Schema for a CalendarList entry, i.e., how the user sees a calendar.
See: https://developers.google.com/calendar/api/v3/reference/calendarList
GoogleCalendarEventEntity
Schema for a Google Calendar Event.
See: https://developers.google.com/calendar/api/v3/reference/events
GoogleCalendarFreeBusyEntity
Schema for a FreeBusy response entity for a given calendar.
See: https://developers.google.com/calendar/api/v3/reference/freebusy
Integrate Airweave with Google APIs on localhost
This guide will walk you through connecting Google Workspace APIs to Airweave when running locally. Google provides extensive documentation on setting up your workspace. Below is a streamlined process for connecting Google APIs to Airweave.
- Create a Google Cloud project for your Google Workspace (if you don’t already have one)
- Enable the Google Workspace APIs for Gmail, Google Calendar, and Google Drive
- Configure Google OAuth 2.0 consent screen
- Under
Audience
, selectMake external
and add test users - Under
Data Access
, add the following scopes:
- Create OAuth client ID credentials
- Under “Authorized redirect URIs,” click ”+ Add URI” and add the following URIs:
- Locate the client ID and client secret from your newly created OAuth client. Add these credentials to the
dev.integrations.yml
file to enable Google API integration.