Google Calendar

Create events, check availability, and manage your Google Calendar.

ProductivityOAuth9 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (9)
  4. delete_event
  5. update_event
  6. create_google_calendar_event
  7. create_quick_event
  8. custom_api_call
  9. google_calendar_find_busy_free_periods
  10. google_calendar_get_event_by_id
  11. google_calendar_get_events
  12. google-calendar-add-attendees
  13. Details

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.

Workflow
// 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);
});
Try it from your agent
{
  "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"
  }
}
From another backend (connector proxy)
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.

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
eventIdrequiredtextEvent ID

update_event

Update Event. Updates an event in Google Calendar.

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
eventIdrequiredtextEvent ID
titleoptionaltextTitle of the event
start_date_timeoptionaldate-time (ISO)Start date time of the event
end_date_timeoptionaldate-time (ISO)End date time of the event
locationoptionaltextLocation
descriptionoptionallong textDescription of the event. You can use HTML tags here.
colorIdoptionalid (picked from your account)Color
attendeesoptionalarrayEmails of the attendees (guests)
guests_can_modifyoptionalbooleanGuests can modify
guests_can_invite_othersoptionalbooleanGuests can invite others
guests_can_see_other_guestsoptionalbooleanGuests can see other guests

create_google_calendar_event

Create Event. Add Event

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
titlerequiredtextTitle of the event
start_date_timerequireddate-time (ISO)Start date time of the event
end_date_timeoptionaldate-time (ISO)By default it'll be 30 min post start time
locationoptionaltextLocation
descriptionoptionallong textDescription of the event. You can use HTML tags here.
colorIdoptionalid (picked from your account)Color
attendeesoptionalarrayEmails of the attendees (guests)
guests_can_modifyoptionalbooleanGuests can modify
guests_can_invite_othersoptionalbooleanGuests can invite others
guests_can_see_other_guestsoptionalbooleanGuests can see other guests
send_notificationsrequiredone of "all" | "externalOnly" | "none"Send Notifications
create_meet_linkoptionalbooleanAutomatically create a Google Meet video conference link for this event

create_quick_event

Create Quick Event. Add Quick Calendar Event

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
textrequiredlong textThe text describing the event to be created
send_updatesoptionalone 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

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

google_calendar_find_busy_free_periods

Find Busy/Free Periods in Calendar. Finds free/busy calendar details from Google Calendar.

InputTypeDescription
calendar_idsrequiredids (picked from your account)Select the calendars to check for busy periods.
start_daterequireddate-time (ISO)The start of the time range to check.
end_daterequireddate-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.

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
event_idrequiredtextThe unique ID of the event (e.g., "abc123def456"). You can find this in the event URL or from other calendar actions.
max_attendeesoptionalnumberMaximum number of attendees to include in the response. If there are more attendees, only the participant is returned.
time_zoneoptionaltextTime 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

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
event_typesrequiredlist ofSelect event types
searchoptionaltextSearch Term
start_dateoptionaldate-time (ISO)Date from
end_dateoptionaldate-time (ISO)Date to
singleEventsrequiredbooleanWhether 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.

InputTypeDescription
calendar_idrequiredid (picked from your account)Calendar
eventIdrequiredtextEvent ID
attendeesrequiredarrayEmails 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