Using AI Agents
Built-in Skills
Google Calendar Agent

Google Calendar Agent

️💡

This agent skill is only available in AnythingLLM v1.12.1 and later.

️💡

Tip: Any read-only actions will not ask for approval, but any actions that could potentially modify your calendar in any way will ask for approval so nothing can be modified without your explicit permission.

Any skill below that has the ✏️ icon next to it will ask for approval before performing the action.

The Google Calendar Agent skill allows your LLM to interact with your Google Calendar account. It can list calendars, view events, create new events, update existing events, and manage your RSVP status.

Setup

Setup of the Google Calendar Agent skill is much easier than other applications you may have used in the past, since we do not want to inconvenience you by setting up a Google Cloud Project and OAuth2 credentials.

Instead, we will use a simple Google App Script (opens in a new tab) you can simply copy and paste to provide the same functionality. Google App Scripts are 100% free and have very generous usage limits for your usage.

Grab the script

You can grab the open-source script designed for AnythingLLM from our GApps Github Repository (opens in a new tab).

Paste the script into the Google App Script editor

Open the Google App Script editor (opens in a new tab) click on the "New Project" button.

Click on the "Untitled Project" and give it a name like "AnythingLLM Calendar Bridge".

Paste the script you copied from the Github Repository into the Code.gs file. This should overwrite the existing script text if any exists.

️💡

IMPORTANT

Edit the line near the top of the script that says const API_KEY = "CHANGE_ME_TO_SOMETHING_SECURE"; and replace CHANGE_ME_TO_SOMETHING_SECURE with a unique and random string of your choice. This is used as an additional layer of security to authenticate your script with only AnythingLLM.

Once you have edited the API_KEY click on the "Deploy > New deployment" button.

On the "Select Type" side of the panel, click on the gear icon and select "Web App".