Basetopia: The Agentic House of Highlights for MLB fans
Inspiration
Keeping up with a baseball game can feel like a scavenger hunt—scrolling through social media for clips, catching bits on live TV, and digging through scattered post-game analyses. It’s chaotic and time-consuming.
That’s why we built Basetopia, an intelligent, all-in-one hub for baseball highlights and analysis. Think of it as an “agentic house of highlights”—where AI agents work behind the scenes to pull in video footage, generate expert-level breakdowns, and deliver real-time game recaps.
So instead of piecing together bits from everywhere, you get a streamlined, centralized experience right here.
What It Does
Basetopia is a web app that delivers ESPN-styled articles and video highlights of MLB games through three dedicated tabs:
- Feed: Displays all automatically generated articles paired with video highlights, ensuring fans always have access to the latest content.
- Explore: Allows users to search for their favorite players or teams, providing a curated collection of relevant articles and highlights.
- Agent: Empowers fans to generate customized articles and video highlights based on specific interests, with the option to share their creations with others.
By continuously pulling the latest videos and generating tailored content via AI agents, Basetopia ensures that every fan receives accurate, up-to-date highlights and analysis in their preferred language (English, Spanish, and Japanese). This level of personalization meets the need for both detailed insights and ease of access, making it an attractive solution for the modern baseball fan.
How We Built It
Frontend & Backend:
- React: Powers our responsive and interactive user interface.
- FastAPI: Efficiently handles our backend endpoints.
- Firebase: Manages user authentication and serves as our database.
- React: Powers our responsive and interactive user interface.
AI-Powered Agents:
- Vertex AI: Generates articles and video highlights, and translates content into Spanish and Japanese.
- Baseball Agent: Developed with LangGraph and Gemini Flash 2.0, this agent uses structured tools (e.g.,
get_highlight_docs,get_team_highlights) to intelligently curate content based on team or player queries. - Tagging Agent: Leverages Vertex AI to extract and verify team and player IDs from post content, ensuring precise tagging.
- Game Summary Cron Job: Continuously monitors MLB stats, processes new game data, and triggers Gemini to produce and translate comprehensive game summaries.
- Vertex AI: Generates articles and video highlights, and translates content into Spanish and Japanese.
Deployment:
- Our API is deployed on Google Cloud Run, ensuring reliable scalability and performance.
Challenges We Ran Into
Precision in Tagging:
Creating a system that accurately identifies teams and players from dynamic game content required combining deterministic checks with advanced AI intelligence.Agent Coordination:
Orchestrating multiple AI agents to work together seamlessly demanded careful integration and fine-tuning, especially when curating personalized content.Robust Internationalization:
Implementing reliable translation workflows to support English, Spanish, and Japanese posed challenges in maintaining content accuracy across languages.
Accomplishments That We're Proud Of
- Developed an intelligent, fully automated pipeline that converts live game data into curated highlights and detailed analyses.
- Built an agentic house of highlights where AI agents work in tandem to generate and update content automatically.
- Successfully integrated AI-powered translation to provide consistent, high-quality content in multiple languages, all while reducing operational costs.
What We Learned
Agent Collaboration:
Intelligent coordination among AI agents produces highly targeted content that resonates with passionate fans.Data-Driven Personalization:
Utilizing MLB datasets and real-time stats enables our agents to deliver precise, personalized highlights and analysis.Efficient Scaling of AI Workflows:
Integrating diverse AI tools (Vertex AI, Gemini Flash 2.0) reinforced the importance of robust workflows in supporting rapid content generation and cost-efficient operations.
What's Next for Basetopia
Enhanced Agent Capabilities:
Expand our AI agents to support even more granular curation options, such as filtering by specific play types or delivering in-depth statistical analysis.Broader Data Integration:
Incorporate additional MLB datasets and real-time data feeds to further improve the accuracy and relevance of our content.User Experience Improvements:
Refine the UI/UX to further personalize content delivery and facilitate seamless interactions for fans across all supported languages.Community and Interactivity:
Explore social features and interactive elements to foster a more engaged community of baseball enthusiasts.
Basetopia stands as an intelligent, agent-driven platform—an agentic house of highlights—demonstrating how cutting-edge AI can transform live game data into tailored, multi-language content for baseball fans worldwide, while reducing costs and enhancing personalization.
Log in or sign up for Devpost to join the conversation.