AI-Powered Virtual Pet Assistant: Smart Study Companion
Overview
This project introduces a Virtual Pet (vpet) that acts as an AI-powered assistant, capable of reading text from your screen to generate useful study notes. The vpet interacts with users in real time and saves key information automatically.
✨ Key Features
1. Screen Text Extraction
- 📝 Web Text Extraction – Uses Readability.js to extract readable content from web pages in real time.
- 📄 Context Logging – Extracted text is saved into a
.txt file as input for AI summarization.
2. AI Note Generation (Gemini)
- 🤖 Single AI Integration – Uses the Gemini API exclusively to summarize extracted text.
- 📂 Text Output Only – All notes are saved as plain
.txt files for simplicity and accessibility.
- 💾 Auto Save & Prompt – Notes can be auto-saved or confirmed through user interaction.
3. Smart Interaction System
- ⏱️ Time-Based Prompts – The vpet checks in with users after periods of inactivity or focus time.
- 🖱️ Click-Based Actions – Users can click the vpet to trigger note-saving, pet responses, or change settings.
- 🧠 Context Awareness – If the user changes the URL, the vpet asks whether to keep or discard the current session.
4. Customizable Virtual Pet
- 🐾 Pet Selection – Users can switch between different pet designs and personalities.
- 🎞️ Animated Feedback – The vpet reacts to user behavior with customizable GIF animations.
- 🎛️ Settings Control – Toggle between auto-note-saving, manual confirmation, and silent mode.