This is a Python-based Virtual Assistant that can:
- Open websites and applications
- Perform system operations (shutdown, restart, lock screen)
- Take screenshots
- Answer general queries using OpenAI API
✅ Open websites like YouTube, Google, GitHub ✅ Open applications (Notepad, Calculator, VS Code) ✅ System controls (Shutdown, Restart, Lock) ✅ Take Screenshots ✅ Fetch answers using OpenAI API
git clone https://github.com/your-username/Virtual-Assistant.git
cd Virtual-Assistantpython -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activatepip install -r requirements.txt- Get your API key from OpenAI
- Create a
.envfile in the project root and add:OPENAI_API_KEY=your_api_key_here
- Modify
assistant.pyto load this key:from dotenv import load_dotenv import os load_dotenv() openai.api_key = os.getenv("OPENAI_API_KEY")
Run the assistant with:
python assistant.pyType a command (or use voice input if enabled), for example:
open youtubesearch Python tutorialsshutdownscreenshotWhat is machine learning?
Feel free to open an issue or submit a pull request!
Contact- rjnaman03@gmail.com