Google Calendar
Create events, check availability, and manage your Google Calendar.
On this page
Connect
Auth type: OAuth (oauth2). The connection holds the provider's OAuth tokens. They are sealed on the server and only opened when an action runs.
Scopes requested: https://www.googleapis.com/auth/calendar.events
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("google_calendar", action, input) resolves with the provider's answer and rejects when Google Calendar isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "google_calendar"} says whether yours can call it.
// workflows/notify.ts: call Google Calendar when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellGoogleCalendar = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Google Calendar isn't connected.
const output = await step.run("Google Calendar", () =>
step.ctx.integrations.invoke("google_calendar", "delete_event", {
"calendar_id": "<calendar_id>",
"eventId": "<event id>"
}),
);
step.ctx.log("Google Calendar answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "google_calendar",
"piece_action": "delete_event",
"input": {
"calendar_id": "<calendar_id>",
"eventId": "<event id>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/google_calendar/delete_event" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"calendar_id":"<calendar_id>","eventId":"<event id>"}}'Actions
delete_event
Delete Event. Deletes an event from Google Calendar.
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
eventIdrequired | text | Event ID |
update_event
Update Event. Updates an event in Google Calendar.
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
eventIdrequired | text | Event ID |
titleoptional | text | Title of the event |
start_date_timeoptional | date-time (ISO) | Start date time of the event |
end_date_timeoptional | date-time (ISO) | End date time of the event |
locationoptional | text | Location |
descriptionoptional | long text | Description of the event. You can use HTML tags here. |
colorIdoptional | id (picked from your account) | Color |
attendeesoptional | array | Emails of the attendees (guests) |
guests_can_modifyoptional | boolean | Guests can modify |
guests_can_invite_othersoptional | boolean | Guests can invite others |
guests_can_see_other_guestsoptional | boolean | Guests can see other guests |
create_google_calendar_event
Create Event. Add Event
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
titlerequired | text | Title of the event |
start_date_timerequired | date-time (ISO) | Start date time of the event |
end_date_timeoptional | date-time (ISO) | By default it'll be 30 min post start time |
locationoptional | text | Location |
descriptionoptional | long text | Description of the event. You can use HTML tags here. |
colorIdoptional | id (picked from your account) | Color |
attendeesoptional | array | Emails of the attendees (guests) |
guests_can_modifyoptional | boolean | Guests can modify |
guests_can_invite_othersoptional | boolean | Guests can invite others |
guests_can_see_other_guestsoptional | boolean | Guests can see other guests |
send_notificationsrequired | one of "all" | "externalOnly" | "none" | Send Notifications |
create_meet_linkoptional | boolean | Automatically create a Google Meet video conference link for this event |
create_quick_event
Create Quick Event. Add Quick Calendar Event
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
textrequired | long text | The text describing the event to be created |
send_updatesoptional | one of "all" | "externalOnly" | "none" | Guests who should receive notifications about the creation of the new event. |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
google_calendar_find_busy_free_periods
Find Busy/Free Periods in Calendar. Finds free/busy calendar details from Google Calendar.
| Input | Type | Description |
|---|---|---|
calendar_idsrequired | ids (picked from your account) | Select the calendars to check for busy periods. |
start_daterequired | date-time (ISO) | The start of the time range to check. |
end_daterequired | date-time (ISO) | The end of the time range to check. |
google_calendar_get_event_by_id
Get Event by ID. Fetch event details by its unique ID from Google Calendar.
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
event_idrequired | text | The unique ID of the event (e.g., "abc123def456"). You can find this in the event URL or from other calendar actions. |
max_attendeesoptional | number | Maximum number of attendees to include in the response. If there are more attendees, only the participant is returned. |
time_zoneoptional | text | Time zone for the response (e.g., "America/New_York", "Europe/London"). Defaults to the calendar's time zone if not specified. |
google_calendar_get_events
Get all Events. Get Events
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
event_typesrequired | list of | Select event types |
searchoptional | text | Search Term |
start_dateoptional | date-time (ISO) | Date from |
end_dateoptional | date-time (ISO) | Date to |
singleEventsrequired | boolean | Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. |
google-calendar-add-attendees
Add Attendees to Event. Add one or more person to existing event.
| Input | Type | Description |
|---|---|---|
calendar_idrequired | id (picked from your account) | Calendar |
eventIdrequired | text | Event ID |
attendeesrequired | array | Emails of the attendees (guests) |
Details
- Id
google_calendar- Category
- Productivity
- Tags
- google, calendar, events, scheduling
- Package
@activepieces/piece-google-calendar@0.9.0- Runs
- Through the integration runner