Google Calendar Bubble
Google Calendar integration for managing events
Quick Start
import { GoogleCalendarBubble } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new GoogleCalendarBubble({
operation: 'list_calendars',
credentials: {
[CredentialType.GOOGLE_CALENDAR_CRED]: process.env.GOOGLE_CALENDAR_CRED as string,
},
}).action();
Operation Details
list_calendars
- Input Schema
- Output Schema
operation'list_calendars' required- List calendars for the user
max_resultsnumber- Maximum number of calendars to return
page_tokenstring- Token for fetching next page
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'list_calendars' required- List calendars for the user
successboolean required- Whether the calendar list was retrieved successfully
calendarsobject[]- List of calendars
next_page_tokenstring- Token for fetching next page
errorstring required- Error message if operation failed
list_events
- Input Schema
- Output Schema
operation'list_events' required- List events in a calendar
calendar_idstring- Calendar ID
time_minstring- Lower bound (RFC3339 timestamp)
time_maxstring- Upper bound (RFC3339 timestamp)
qstring- Free text search query
single_eventsboolean- Expand recurring events
order_by'startTime' | 'updated'- Sort order
page_tokenstring- Token for fetching next page
max_resultsnumber- Maximum number of events to return
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'list_events' required- List events in a calendar
successboolean required- Whether the event list was retrieved successfully
eventsobject[]- List of events
next_page_tokenstring- Token for fetching next page
errorstring required- Error message if operation failed
get_event
- Input Schema
- Output Schema
operation'get_event' required- Get a single event
calendar_idstring- Calendar ID
event_idstring required- Event ID to retrieve
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_event' required- Get a single event
successboolean required- Whether the event was retrieved successfully
eventobject- Event details
errorstring required- Error message if operation failed
create_event
- Input Schema
- Output Schema
operation'create_event' required- Create an event
calendar_idstring- Calendar ID
summarystring required- Event title
descriptionstring- Event description
locationstring- Event location
startobject required- Start date/time
endobject required- End date/time
attendeesobject[]- List of event attendees
conferenceboolean- Create a Google Meet conference link
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'create_event' required- Create an event
successboolean required- Whether the event was created successfully
eventobject- Created event details
errorstring required- Error message if operation failed
update_event
- Input Schema
- Output Schema
operation'update_event' required- Update an existing event
calendar_idstring- Calendar ID
event_idstring required- Event ID to update
summarystring- Event title
descriptionstring- Event description
locationstring- Event location
startobject- Start date/time
endobject- End date/time
attendeesobject[]- List of event attendees
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'update_event' required- Update an existing event
successboolean required- Whether the event was updated successfully
eventobject- Updated event details
errorstring required- Error message if operation failed
delete_event
- Input Schema
- Output Schema
operation'delete_event' required- Delete an event
calendar_idstring- Calendar ID
event_idstring required- Event ID to delete
send_updates'all' | 'externalOnly' | 'none'- Whether to notify attendees
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'delete_event' required- Delete an event
successboolean required- Whether the event was deleted successfully
deletedboolean- Whether the event was actually deleted
errorstring required- Error message if operation failed