⚾ BatterUp Bot ⚾: Your Friendly MLB Mate
Please note that you need to navigate to the live stream or game replay on mlb.com to start chatting with BatterUp.
Inspiration
Baseball can feel overwhelming for new fans, with complex rules, stats, and strategies. Many rookies find it hard to engage with the game fully, especially when watching alone. We built BatterUp Bot to make MLB games more accessible and enjoyable for beginners while also serving as a virtual game mate to keep solo viewers entertained.
What It Does
BatterUp Bot is designed with two key sections:
1️⃣ Game Stats & Progress (Top Section)
- Real-time Game Updates: Delivers live play-by-play updates, key moments, score tracking, and game predictions.
2️⃣ Game Chatbot Assistance (Bottom Section)
- Brief Game Introduction: Provides an overview of the teams playing, stadium details, and weather conditions.
- Personalized Team Insights: Offers recent news, player highlights, and fun facts based on the user’s favorite team.
- Explains Game Concepts: Answers questions about rules, player stats, and MLB history in an easy-to-understand way.
- Strategy & Player Analysis: Helps users understand team strategies, player performances, and in-game decisions.
- Interactive Q&A: Engages with users to enhance their baseball knowledge and game-watching experience.
How We Built It
- Frontend: Built a responsive chat interface with JavaScript to allow easy interaction when user watching MLB Game on mlb.com
- Backend: Developed using Python with LangChain framework to handle chat interactions between different users and game data.
- MLB Data Integration: Connected to real-time MLB API feeds for live updates and player stats.
- Natural Language Processing (NLP): Used Google Gemini to understand user queries and respond conversationally.
- Deployment: Hosted on GCP
Challenges We Ran Into
- Processing real-time data efficiently: Ensuring accurate and fast updates without overwhelming the system.
- Handling concurrent user message and real-time commenting: Using different Uid for user and real-time commenting.
- Balancing simplicity and depth: Making sure responses were beginner-friendly while also being engaging for more experienced fans by setting Gemini Instructions
- Creating a natural chatbot personality: Designing prompts that feel friendly, knowledgeable, and fun rather than robotic.
Accomplishments That We're Proud Of
- Successfully integrated real-time MLB data to provide dynamic updates.
- Built an engaging chatbot experience that enhances game-day interactions.
What We Learned
- The importance of user experience when designing AI-driven chatbots.
- How to optimize API calls to deliver real-time sports updates without lag.
- Strategies for making sports analytics more accessible to new fans.
What's Next for BatterUp Bot
- Multilingual Support: Expanding to different languages for global baseball fans.
- Voice Integration: Enabling voice commands for hands-free interaction.
- Interactive chat experience: Engages users with polls and strategy diagram to better engage and visualize the game
BatterUp Bot is here to make baseball more exciting and interactive for everyone—whether you're a rookie fan or a seasoned expert. ⚾🎙️
Built With
- javascript
- langchain
- python
Log in or sign up for Devpost to join the conversation.