Fantasy Football & AI
Fantasy football is one of the most exciting and stressful things to participate in year after year. It's also one of the most rewarding experiences if you're a fan of the sport. However, keeping up with every single player's stats year after year can get a little overwhelming. That's where the idea to combine fantasy football and AI come into play. Imagine an app that that can give you expert analysis... like Stuart Scott, as well as AI breakdowns for in depth analysis.
Stuart AI
Stuart AI is a fantasy football app that has access to every single play for every single player that dates all the way back to 1999. It integrates with your Sleeper Fantasy account and pulls in real-time data from your team's stats. the long term goal with this is to have a one stop shop for all of your fantasy football needs. League dues, payouts, AI analytics, and so much more. In its current state you're able to see your league history including playoffs, able to type in two players and get AI insights for their historical stats, as well as get on the early waitlist for the full list of AI features.
Player Compare
One of the biggest struggles week in and week out is figuring out who to start and who to bench in your fantasy lineups. A LOT of analysis goes into this, and if you're not familiar with fantasy football, let me spell out how complex of a decision just deciding between two players can be. Let's take for example these two players, Brock Purdy and Jordan Love. They're quaterbacks for their respective teams. Some things you would want to consider when deciding who to start and who to bench would be the following:
- What are their current season stats?
- What are their previous season stats against this opponent?
- Are they healthy?
- Are their receivers healthy?
- Is their running back healthy?
- Are they dealing with any Oline injuries/issues?
- Is there any news that would sway my decision one way or the other?
- Is the weather going to be a factor?
- Does one have more rushing upside than the other?
- Are they playing against a really good defense?
- Etc.
Now all of this is just for one position, for one week. Can you imagine the effort required to do this for every position in your fantasy team for every week? It's a lot to keep up with. Stuart AI gathers all the data for you, combines it into a nice prompt to pass to an AI model and then returns the results. Not to mention it presents nice visual charts/graphs to help you make educated decisions if you don't want to fully rely on the AI. Also to help reduce calls and costs, we use Redis to cache data frequently and improve load times throughout the entire application. Users can currently make 10 calls per day to the API (gpt4.0-mini) and we're currently working on implementing tiered pricing structures to make it customizable for users.
Parlai
All of this fantasy football frenzy got us thinking that we can not only create AI player comparisons, but since we're gathering all of the player info anyway, wouldn't it be cool to see if we could help users with their sports bets as well? Currently users have the ability to check live prop odds for NFL players and see if it's wise to bet the over or under on those prop bets. In the future we plan to also allow users to create parlays to see which bets make sense and which don't.
The Tech
Building this has given me a chance to really learn the ins and outs of AI SDKs, ShadCN, NextJS, Redis, Postgres and so many more design systems. It's given me a chance to collaborate with industry experts and learn from them. I'm really excited to see where this goes and what other cool things I can build with AI.