An open API service indexing awesome lists of open source software.

https://github.com/apneduniya/discord-ai-agent

An AI Agent that connects Discord to Google Calendar and manage your calendar activities through Discord using Composio.
https://github.com/apneduniya/discord-ai-agent

composio crewai discord-bot gemini-api python3

Last synced: 3 months ago
JSON representation

An AI Agent that connects Discord to Google Calendar and manage your calendar activities through Discord using Composio.

Awesome Lists containing this project

README

        

# Discord AI Agent

๐Ÿค– Meet our new AI made using [**composio**](https://www.composio.dev/) & [**crew AI**](https://docs.crewai.com/)! ๐ŸŽ‰ This bot connects with your **Google Calendar**, making it a breeze to manage all your calendar activities right from _discord_. ๐Ÿ’ฌ๐Ÿ”—


Table of Contents


  1. Demo

  2. Features

  3. How I Used Composio?


  4. Getting Started


  5. Project Structure

  6. Contributing


  7. Acknowledgments

  8. License

## ๐ŸŽฅ DEMO
[![demo video](https://img.youtube.com/vi/___DcDDQK-k/0.jpg)](https://www.youtube.com/watch?v=___DcDDQK-k)

## ๐Ÿ“™ Features
You can scheduled events just by normal chatting with our bot and you can:

- **Create** events even by _adding someone via email, create google meeting room_ and all the neccessary features.
- **Find** upcoming events.
- **Update** & **Delete** existing events.
- **Create Quick** events.
- **Remove attendee** from an event

## ๐Ÿค” How I used composio?
**Composio** was very _crucial and reliable tool_ for making my project. It helped me to make my agentic tools for the agent **much more faster** and **in an easy way** acting like a **pipeline** between _agent_ and _google calendar_. It would really took me many more days if done without this ๐Ÿ”ฅ.

## ๐Ÿซณ Prerequisites
You should have

- Python 3.8 or higher
- GEMINI API KEY
- COMPOSIO API KEY
- Discord Bot Token
- And an [integration id](https://docs.composio.dev/api-reference/integrations/create-a-new-integration) from composio.

## ๐Ÿ‘ฃ Steps to Run
**Navigate to the Project Directory:**
Change to the directory where the `setup.sh`, `main.py`, `requirements.txt`, and `README.md` files are located. For example:
```shell
cd path/to/project/directory
```

### 1. Run the Setup File
Make the setup.sh Script Executable (if necessary):
On Linux or macOS, you might need to make the setup.sh script executable:
```shell
chmod +x setup.sh
```
Execute the setup.sh script to set up the environment, install dependencies, login to composio and
add necessary tools:
```shell
./setup.sh
```
Now, Fill in the `.env` file with your secrets.

### 2. Run the python script
```shell
python3 main.py
```

## ๐Ÿ›๏ธ Project structure

```bash
โ”œโ”€โ”€ utils
โ”œโ”€โ”€ calendar.py
โ””โ”€โ”€ manage_events.py
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ setup.sh
โ””โ”€โ”€ tools.py
```

## ๐Ÿค— Contributing
1. Fork the repository.
2. Create a new branch: `git checkout -b feature-name`.
3. Make your changes.
4. Push your branch: `git push origin feature-name`.
5. Create a pull request.

## โœ Acknowledgments
This project couldn't be there if they didn't be there!
- [Composio](https://composio.dev/)
- [discord.py](https://discordpy.readthedocs.io/en/stable/)
- [crew AI](https://docs.crewai.com/)
- [Gemini](https://gemini.google.com/app)

Even something was gone wrong while making this project but composio team helped me to over come the issues and I am really thankful to it!

## ๐Ÿงพ License
This project is licensed under the [MIT License](LICENSE).