`pip install -r requirements.txt`
`touch .env`
System requirements:
`choco install visualcpp-build-tools`
Create a google developer account
- Go to Dashboard, create Project, fill details, enable the required APIs
- Go to Credentials, create OAuth 2.0 Client ID, fill details, add http://localhost/4000 in RedirectURL
- API and Services -> Library -> Enable: Google Calendar API, Google Drive API, Google mail API.
- After creating OAuth 2.0 Client ID, download the credentials.json and replace it with the credentials.json in the connections folder
- Once you run the main.py, it will ask you to login to your google account, login and it will redirect you to localhost, copy the url and paste it in the terminal
Create a spotify developer account
-
Go to Dashboard, create App, fill details, ignore Website box, write http://localhost/4000 in RedirectURL
-
After creating app Get client id, client secret and replace it with the clientID, clientSecret in main.py
-
Once you run the main.py, it will ask you to login to your spotify account, login and it will redirect you to localhost, copy the url and paste it in the terminal
-
Now the assistant is connected to your spotify account
Visit Gemini
- Sign in with your google account
- Select your project in Google cloud and make sure to enable the Generative Language API.
- Copy the API key and replace it with the API key in the .env file
Create a notion developer account
- Go to Integrations, create a new integration, fill details, enable the required permissions
- After creating the integration, copy the token and replace it with the token in the .env file
- This program works with 4 databases: movies, animes, books, tasks. You will have to create these databases on your Notion, copy their database id, and put it in the .env file.
- For reference, you can check this amazing blog on How to use Python with Notion API
+----------+ +--------+ +---------+ +--------+
| | | | | | | |
| |----------→| |←--------→| |----------→| |
| | | | | | | |
| User | | Main | | ChatBot | | System |
| (Speaks) | | |---------→| | | |
| |←----------| |←---------| |←----------| |
| | | | | | | |
+----------+ +--------+ +---------+ +--------+
| ↑
| |
| |
↓ |
+----------+
| |
| Gemini |
| |
+----------+