Skip to content

SchedulerAI provides a convenient way to manage your Google Calendar events directly from the command line. Whether you need to add new appointments, delete existing ones, shift event timings, or simply check for availability, this script has got you covered.

Notifications You must be signed in to change notification settings

shrivastavanolo/SchedulerAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

SchedulerAI

Overview

The SchedulerAI notebook provides a Python script that utilizes the Google Calendar API to manage events. With SchedulerAI, you can easily add, delete, shift, and check appointments in your Google Calendar, all from the convenience of the command line.

Features

Add Event: Add a new event to your Google Calendar with specified details such as date, time, and event name. Delete Event: Remove an existing event from your Google Calendar based on the date and time. Shift Event: Change the timing of an existing event to a new date and time. Check Event: Verify the availability of a specific time slot in your Google Calendar.

SchedulerAI utilizes the Replicate library to access the "meta/meta-llama-3-70b-instruct" language model for natural language processing tasks. This model is specifically designed for instructive text generation and understanding.

Prerequisites

Before using SchedulerAI, you need to set up the Google Calendar API and obtain the necessary credentials. Here's how you can do it:

  1. Create a Google Cloud Project:

  2. Enable the Google Calendar API:

    • In the Cloud Console, navigate to the "API & Services" > "Library" page.
    • Search for "Google Calendar API" and enable it for your project.
  3. Create OAuth 2.0 Credentials:

    • In the Cloud Console, navigate to the "API & Services" > "Credentials" page.
    • Click on "Create Credentials" and select "OAuth client ID".
    • Choose "Desktop app" as the application type.
    • Save the generated credentials (JSON file) to your local machine.
  4. Language Model (LLM) Used:

    • Sign up for an account on the Replicate platform at https://replicate.ai/.
    • Once logged in, navigate to the "Models" section and search for the "meta/meta-llama-3-70b-instruct" model.
    • Click on the model to view details and obtain API access.
    • Install the Replicate Python library using pip:
    pip install replicate

Setup

Once you have obtained the Google Calendar API credentials, follow these steps to set up SchedulerAI:

  1. Clone the Repository:

    git clone https://github.com/your_username/SchedulerAI.git
    cd SchedulerAI
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Place Credentials File:

    • Move the credentials JSON file (obtained from the Google Cloud Console) to the .credentials directory within the repository.

Usage

To use SchedulerAI, open the Jupyter Notebook file (SchedulerAI.ipynb) in Jupyter Notebook or JupyterLab. Follow the instructions provided within the notebook to manage your Google Calendar events.

Replicating Google Calendar API

If you're interested in replicating the functionality of the Google Calendar API used in SchedulerAI, you can refer to the code provided in the notebook. It demonstrates how to authenticate users, interact with calendar events, and handle errors and exceptions.

Support and Contributions

For any questions, issues, or feedback regarding SchedulerAI, please open an issue on the GitHub repository. Contributions are welcome via pull requests.

About

SchedulerAI provides a convenient way to manage your Google Calendar events directly from the command line. Whether you need to add new appointments, delete existing ones, shift event timings, or simply check for availability, this script has got you covered.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published