Skip to main content

Google Calendar

Introducing the Google Calendar Toolkit, a powerful integration for SuperAGI. With the Google Calendar toolkit, you have the ability to do the following:

Features

  1. Create Calendar Events
  2. List your Calendar Events
  3. Fetch an event from your Calendar
  4. Delete Calendar Events

Quickstart Guide:

In order to get started with integrating Google Calendar with SuperAGI, you need to do the following:

  1. Go to Google Developer Console: https://console.cloud.google.com/ & Create a new project. If you’re having an existing project, you can proceed with that as well:

GC1

  1. After the project is created/you’re in your selected project, head to “APIs and Services”

GC2

  1. Click on “ENABLED APIS AND SERVICES” and search for “Google Calendar”

GC3

GC4

  1. Enable the API

GC5

  1. Once the API is Enabled, go to “OAuth Consent Screen”

GC6

  1. Select your User Type as “External” and click on "Create"

GC7

  1. Fill in the required details such as the App Information, App Domain, Authorized Domain, and Developer contact information. Once filled in, click “Save and Continue”

GC8

  1. On the next page, you don’t need to select the scopes. Proceed to “save and continue” and at the final page, review the process and click “Back to Dashboard”. With this, you’ve created your OAuth Consent Screen for Google Calendar.
  2. You can go ahead and click the “Publish App”

GC9

Configuring endpoints & obtaining Client ID and Client Secret Key

In order to obtain the Client ID and Secret ID, you need to do the following steps:

  1. Go to “Credentials” Page

GC10

  1. Click on “Create Credentials” and click on “OAuth Client ID”

GC11

GC12

  1. Once you click on OAuth Client ID, choose the type of application as “Web Application” and give it a name of your choice

GC13

  1. Create JavaScript Origins and add the following details as shown in the image:

GC14

  1. Go to Authorized redirect URIs and add the following URIs: https://app.superagi.com/api/google/oauth-tokenshttp://localhost:3000/api/google/oauth-tokens

alt_text

  1. Once you’re completed with adding the Authorized redirect URIs, you can click “Create” to obtain the Client ID and Client Secret Key

GC16

  1. Copy the Client ID and Secret Key and save it in a file.

Configuring your Client ID, Secret Key and Authenticating Calendar with SuperAGI

Once the ClientID and Secret Key are obtained, you can configure and authorize Calendar to be used with SuperAGI by following these steps:

  1. Add your Client ID and Client Secret Key on the toolkit page and click on “Update Changes”

GC_17

  1. Click on “Authenticate Tool” - which will now take you to the OAuth Flow.

Once the OAuth Authentication is complete, you can now start using SuperAGI Agents with Google Calendar!