An autonomous, multi-threaded Java AI agent that monitors minor global inconveniences and proposes absurdly complex, hyper-technical solutions to protect its own aesthetic energy.
Vapid operates on a scheduled loop, entirely decoupled from web traffic. When a user approves one of her ridiculous proposals via email, she drops the socialite persona and instantly generates the production-ready technical artifacts (Smart Contracts, Graph Theory algorithms, distributed architecture specs) required to execute the vision.
- Autonomous Scheduling: Built on the
Quartz Scheduler, Vapid wakes up on configurable intervals to assess the "vibes" (market data, weather, system latency). - Two-Way IMAP/SMTP Polling: Vapid doesn't just broadcast; she listens. A secondary threaded job polls an IMAP inbox for human approval ("YES") using the
JavaMail API. - Stateful Memory: Utilizes a lightweight flat-file
StateServiceto ensure conversational context survives server restarts and.warredeploys. - LLM Orchestration: Integrates with the
Gemini REST APIviaOkHttp, utilizing dynamic context generation and prompt-chaining to shift personas from "Vapid Socialite" to "Elite Systems Architect" on demand. - Dynamic Routing: Automatically routes short complaints to SMS (via Twilio) and massive technical architectures to Email.
- Language: Java 11+
- Server: Apache Tomcat 9+
- Build Tool: Maven
- Core Libraries: Quartz Enterprise Job Scheduler, JavaMail, OkHttp3, Gson
- AI Engine: Google Gemini (2.5 Flash)
- Clone the repository.
- Create a
vapid.propertiesfile insrc/main/resources/with your credentials:gemini.api.key=YOUR_API_KEY email.smtp.user=vapid.bot@gmail.com email.smtp.pass=YOUR_APP_PASSWORD email.imap.host=imap.gmail.com email.imap.port=993 admin.email=your.personal@email.com