MARVIN is an AI assistant that translates user commands into structured JSON actions. It uses the Gemini API to understand and process natural language commands, making it easier to interact with various applications and services.
- Natural language command processing
- JSON-structured responses
- Integration with common applications (Instagram, YouTube, Spotify)
- Email reading capability
- Music playback control
- Python 3.x
- google-generativeai package
- Valid Gemini API key
- Install the required packages:
pip install google-generativeai-
Set up your Gemini API key in the code
-
Run the assistant:
python marvin.pySimply type your command in natural language, and MARVIN will interpret it and perform the corresponding action. For example:
- "Open Instagram"
- "Play my liked songs on Spotify"
- "Read my emails"
This is a demonstration project showing how to use the Gemini API for natural language processing and command interpretation.