Inspiration
When I was in my twenties, I played for the Costa Rica National Football Team. Despite the physical talent, I struggled to reach my full potential because I lacked a competitive mindset—I didn't know who I was, I lacked clarity on my goals, and I had no defined purpose.
At age 35, I started CrossFit and decided to approach performance differently. By mastering mental tools, self-reflection, and Neuro-Linguistic Programming (NLP), I transformed my mindset. This journey culminated in 2024, at age 42, when I became a CrossFit World Champion. I'm still competing.
Plan PerfectaMENTE is the consolidation of every mental tool, habit loop, and principle that saved my career. Today, at 44, I use this platform powered by Google Gemini to help athletes unlock their best version by answering four fundamental life questions: Who am I?, What do I want?, Why do I want it?, and How will I achieve it?
What it does
PerfectaMENTE is an active 31-day cohort-based Progressive Web App (PWA) where athletes move together day by day through an intensive mindset curriculum:
- Unified Daily Progress & AI Feedback: All athletes advance together through 31 days of structured reflection. As users complete their daily assignments, Google Gemini acts as an automated mental coach, evaluating their responses and delivering direct, personalized guidance in real time.
- Autonomous Background Processing: Upon check-in submission, the server executes a non-blocking background task (
fastcgi_finish_request()), triggering Gemini to synthesize and send a custom HTML email with feedback and upcoming day previews. - Gamification & Leaderboard: Features an active leaderboard that tracks community consistency and engagement, driving high retention and real-world adoption.
- Commercial Traction: A fully deployed, revenue-generating platform with active paid subscriptions across Spanish-speaking regions.
Note on Localization: The landing page and PWA are intentionally delivered in Spanish ('vos' / Costa Rican tone) to directly serve our active user base across Latin America, while the core AI framework and API architecture are fully localized and scalable to any language.
How we built it
- AI Core: Powered by the Google Generative Language API using
gemini-flash-lite-latest(with automatic fallback togemini-3.1-flash-liteand exponential backoff retries). - Stack: Production-grade, zero-build PHP application hosted on cPanel infrastructure, backed by MySQL and SQLite databases.
- Frontend: Mobile-first, responsive PWA accessible directly from any web browser without app store friction.
Accomplishments that we're proud of
- Real-World Revenue & Validation: Successfully monetizing the platform in production via Skool, PayPal, and regional bank transfers.
- Authentic Coaching Voice: Fine-tuned Gemini prompts to deliver coaching feedback in an authentic Costa Rican tone ("vos", "pura vida") rooted in genuine World Champion methodology.
- Production-Grade Audit Logs: Full transparency with every AI execution logged in
pm_coach_log(latency, HTTP codes, model versions, timestamps).
🔑 Judge & Evaluator Direct Demo Access: To test the interactive AI Coach without encountering payment walls:
- Go to https://planperfectamente.com/
- Log in with Email:
xprize-judge@planperfectamente.com- Password:
GeminiXprize2026!Note: Submitting a check-in will trigger an immediate personalized response from the AI Coach on screen, log the execution in
pm_coach_log, and send an automated background email report.
📊 Production Reliability & Live Metrics
Our automated monitoring via pm_coach_log records zero failure rates and ultra-low latencies in live production:
- Execution Success Rate: 100% (17/17 successful API completions)
- Average Response Latency: ~2.1 seconds (Gemini-Flash-Lite)
- Active User Validation: 5 unique athletes served concurrently without downtime.
- Architecture Integrity: Non-blocking asynchronous email delivery (
email: true) executed viafastcgi_finish_request().
🔑 Judge & Evaluator Direct Demo Access: To test the interactive AI Coach directly without payment walls or onboarding friction:
- Direct Access Link: Test Day 1 Live AI Coach
- Email:
xprize-judge@planperfectamente.com- Password:
GeminiXprize2026!Note: Logging in via this link bypasses preparation banners and drops you straight into **Day 1. You will see a pre-loaded real-world entry and an existing AI Coach feedback card. Submitting or editing the response will trigger Gemini-Flash-Lite in real-time (~2.1s latency) and dispatch an asynchronous background email report.
Built With
- gemini-api
- google-generative-ai
- javascript
- mysql
- php
- pwa
- sqlite



Log in or sign up for Devpost to join the conversation.