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.
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.
Before using SchedulerAI, you need to set up the Google Calendar API and obtain the necessary credentials. Here's how you can do it:
-
Create a Google Cloud Project:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
-
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.
-
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.
-
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
Once you have obtained the Google Calendar API credentials, follow these steps to set up SchedulerAI:
-
Clone the Repository:
git clone https://github.com/your_username/SchedulerAI.git cd SchedulerAI
-
Install Dependencies:
pip install -r requirements.txt
-
Place Credentials File:
- Move the credentials JSON file (obtained from the Google Cloud Console) to the
.credentials
directory within the repository.
- Move the credentials JSON file (obtained from the Google Cloud Console) to the
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.
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.
For any questions, issues, or feedback regarding SchedulerAI, please open an issue on the GitHub repository. Contributions are welcome via pull requests.