← Schedule + Google Calendar integrations

Create Event with Google Calendar API on Custom Interval from Schedule API

Pipedream makes it easy to connect APIs for Google Calendar, Schedule and 1000+ other apps remarkably fast.

Trigger workflow on
Custom Interval from the Schedule API
Next, do this
Create Event with the Google Calendar API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Schedule trigger and Google Calendar action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Custom Interval trigger
    1. Connect your Schedule account
    2. Configure Cron Schedule
  3. Configure the Create Event action
    1. Connect your Google Calendar account
    2. Select a Calendar ID
    3. Optional- Configure Event Title
    4. Optional- Configure Event Venue
    5. Optional- Configure Event Description
    6. Optional- Configure Attendees
    7. Configure Event Date
    8. Configure Event End Date
    9. Optional- Select a Send Updates
    10. Optional- Select a Time zone
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Trigger your workflow every N hours, minutes or seconds.
Version:0.0.2
Key:schedule-custom-interval

Schedule Overview

With Schedule - A trigger provided by Pipedream - You can easily build
automated workflows that run on regular times or intervals. Some examples of
things that you can build using the Schedule API include:

  • Automated data retrieval from a third-party service, like pulling stats from
    your Salesforce account on a set schedule.
  • Uploading new data sets to a database with a predetermined interval.
  • Automatic emails to customers or leads at a certain time of the day.
  • Automating data analysis based on a set schedule.
  • Automatically optimizing social media postings according to a specified
    timeline.
  • Updating webpages at a certain interval with newly available content.
  • Re-running reports on a periodic basis.
  • Refreshing a cache of data at a given frequency.

Trigger Code

import schedule from "../../schedule.app.mjs";

export default {
  name: "Custom Interval",
  version: "0.0.2",
  key: "schedule-custom-interval",
  type: "source",
  description: "Trigger your workflow every N hours, minutes or seconds.",
  props: {
    schedule,
    cron: {
      propDefinition: [
        schedule,
        "cron",
      ],
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SchedulescheduleappThis component uses the Schedule app.
Cron Schedulecron$.interface.timer

Enter a cron expression

Trigger Authentication

The Schedule API does not require authentication.

About Schedule

Trigger workflows on an interval or cron schedule.

Action

Description:Create an event to the Google Calendar. [See the docs here](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#insert)
Version:0.1.4
Key:google_calendar-create-event

Google Calendar Overview

The Google Calendar API gives developers access to Google Calendar data,
allowing them to create their own applications that can read, write, and update
calendar data. With the API, users can integrate their own calendar
applications with Google Calendar, giving them the ability to manage their
calendars in one place. The API also provides the ability to search for events
and create new events.

Possible applications that could be built using the Google Calendar API
include:

  • A calendar application that integrates with Google Calendar, allowing users
    to manage their calendars in one place.
  • A calendar application that allows users to search for events and create new
    events.
  • A to-do list application that integrates with Google Calendar, allowing users
    to see their tasks and events in one place.
  • A reminder application that uses Google Calendar data to remind users of
    upcoming events.

Action Code

import googleCalendar from "../../google_calendar.app.mjs";

export default {
  key: "google_calendar-create-event",
  name: "Create Event",
  description: "Create an event to the Google Calendar. [See the docs here](https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#insert)",
  version: "0.1.4",
  type: "action",
  props: {
    googleCalendar,
    calendarId: {
      propDefinition: [
        googleCalendar,
        "calendarId",
      ],
    },
    summary: {
      label: "Event Title",
      type: "string",
      description: "Enter static text (e.g., `hello world`) for the event name",
      optional: true,
    },
    location: {
      label: "Event Venue",
      type: "string",
      description: "Enter static text (e.g., `hello world`) for the event venue",
      optional: true,
    },
    description: {
      label: "Event Description",
      type: "string",
      description: "Enter detailed event description",
      optional: true,
    },
    attendees: {
      label: "Attendees",
      type: "string[]",
      description: "Enter the EmailId of the attendees",
      optional: true,
    },
    eventStartDate: {
      label: "Event Date",
      type: "string",
      description: "For all-day events, enter the Event day in the format 'yyyy-mm-dd'. For events with time, format according to [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.html#section-1): 'yyyy-mm-ddThh:mm:ss+01:00'. A time zone offset is required unless a time zone is explicitly specified in timeZone.",
    },
    eventEndDate: {
      label: "Event End Date",
      type: "string",
      description: "For all-day events, enter the Event day in the format 'yyyy-mm-dd'. For events with time, format according to [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.html#section-1): 'yyyy-mm-ddThh:mm:ss+01:00'. A time zone offset is required unless a time zone is explicitly specified in timeZone.",
    },
    sendUpdates: {
      label: "Send Updates",
      type: "string",
      description: "Whether to send notifications about the creation of the new event.",
      optional: true,
      options: [
        "all",
        "externalOnly",
        "none",
      ],
    },
    timeZone: {
      propDefinition: [
        googleCalendar,
        "timeZone",
      ],
    },
  },
  async run({ $ }) {
    /**
     * Based on the IINA Time Zone DB
     * http://www.iana.org/time-zones
     */
    const { value: timeZone } = this.timeZone ?? await this.googleCalendar.getSettings({
      setting: "timezone",
    });

    /**
     * Format for the attendees
     *
     * [
     *   { "email": "lpage@example.com",},
     *   { "email": "sbrin@example.com",},
     * ]
     */

    let attendees = [];

    if (this.attendees && Array.isArray(this.attendees)) {
      attendees = this.attendees.map((email) => ({
        email,
      }));
    }

    const response = await this.googleCalendar.createEvent({
      calendarId: this.calendarId,
      sendUpdates: this.sendUpdates,
      resource: {
        summary: this.summary,
        location: this.location,
        description: this.description,
        start: {
          date: this.eventStartDate.length <= 10
            ? this.eventStartDate
            : undefined,
          dateTime: this.eventStartDate.length > 10
            ? this.eventStartDate
            : undefined,
          timeZone,
        },
        end: {
          date: this.eventEndDate.length <= 10
            ? this.eventEndDate
            : undefined,
          dateTime: this.eventEndDate.length > 10
            ? this.eventEndDate
            : undefined,
          timeZone,
        },
        attendees,
      },
    });

    $.export("$summary", `Successfully created event ${response.id}`);

    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
Calendar IDcalendarIdstringSelect a value from the drop down menu.
Event Titlesummarystring

Enter static text (e.g., hello world) for the event name

Event Venuelocationstring

Enter static text (e.g., hello world) for the event venue

Event Descriptiondescriptionstring

Enter detailed event description

Attendeesattendeesstring[]

Enter the EmailId of the attendees

Event DateeventStartDatestring

For all-day events, enter the Event day in the format 'yyyy-mm-dd'. For events with time, format according to RFC3339: 'yyyy-mm-ddThh:mm:ss+01:00'. A time zone offset is required unless a time zone is explicitly specified in timeZone.

Event End DateeventEndDatestring

For all-day events, enter the Event day in the format 'yyyy-mm-dd'. For events with time, format according to RFC3339: 'yyyy-mm-ddThh:mm:ss+01:00'. A time zone offset is required unless a time zone is explicitly specified in timeZone.

Send UpdatessendUpdatesstringSelect a value from the drop down menu:allexternalOnlynone
Time zonetimeZonestringSelect a value from the drop down menu.

Action Authentication

Google Calendar uses OAuth authentication. When you connect your Google Calendar account, Pipedream will open a popup window where you can sign into Google Calendar and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Calendar API.

Pipedream requests the following authorization scopes when you connect your account:

emailprofilehttps://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.settings.readonly

About Google Calendar

Scheduling calendar service developed by Google

More Ways to Connect Google Calendar + Schedule

Create Event with Google Calendar API on Daily schedule from Schedule API
Schedule + Google Calendar
 
Try it
Create Event with Google Calendar API on Weekly schedule from Schedule API
Schedule + Google Calendar
 
Try it
Create Event with Google Calendar API on Monthly Schedule from Schedule API
Schedule + Google Calendar
 
Try it
Delete an Event with Google Calendar API on Daily schedule from Schedule API
Schedule + Google Calendar
 
Try it
Delete an Event with Google Calendar API on Weekly schedule from Schedule API
Schedule + Google Calendar
 
Try it
Custom Interval from the Schedule API

Trigger your workflow every N hours, minutes or seconds.

 
Try it
Daily schedule from the Schedule API

Trigger your workflow every day.

 
Try it
Monthly Schedule from the Schedule API

Trigger your workflow on one or more days each month at a specific time (with timezone support).

 
Try it
Weekly schedule from the Schedule API

Trigger your workflow on one or more days each week at a specific time (with timezone support).

 
Try it
Event Start from the Google Calendar API

Emits a specified time before an event starts

 
Try it
Add Quick Event with the Google Calendar API

Create an event to the Google Calendar. See the docs here

 
Try it
Create Event with the Google Calendar API

Create an event to the Google Calendar. See the docs here

 
Try it
Delete an Event with the Google Calendar API

Delete an event to the Google Calendar. See the docs here

 
Try it
List calendars from user account with the Google Calendar API

Retrieve calendars from the user account. See the docs here

 
Try it
List Events with the Google Calendar API

Retrieve a list of event from the Google Calendar. See the docs here

 
Try it