Inspiration
We're sports enthusiasts! This involves challenging ourselves from time to time to become better at squash or train for a triathlon for example. Since we're no physiotherapists or sports scientists, we rely on training platforms like TrainingPeaks and others to provide us with training plans.
While these are fleshed out plans, they lack personalization and are not very adaptable. If you're staying longer at work or spontaneously wanna meet up with friends, you have to painstakingly reschedule the training sessions. Also, unrelated workouts (playing volleyball with friends etc.) that were strenuous are not affecting workout plans.
We're looking for a system that is able to generate professional training plans for us while also taking into account that life has surprises in store and we can't just blindly follow a rigid, unpersonalized schedule.
What it does & How we built it
We use the Google Calendar & WHOOP APIs to obtain realtime updates through Webhooks about new training sessions, quality of sleep, recovery, and schedule changes.
Webhooks are handled by a Python Flask application that serves as the service for a Flutter mobile application for iOS and Android.
OpenAI GPT4 is used to generate training plans based on a range of provided personal parameters.
Challenges we ran into
- Read-write-read issues caused by calendar changes causing training plan updates causing calendar changes causing... well, you get the idea.
- Undocumented authentication quirks of WHOOP API
Accomplishments that we're proud of
The fact that we built something that we wanna use :)
Feature set:
- Detects if there is a new scheduling issue in the calendar and will update the training plan to try and resolve collisions
- Reacts to all activities and adjusts the training plan as best as possible
- Updates the training plan based on arbitrary input from the user
- The training plan is synced to the personal calendar
What we learned
- $15 of OpenAI credits get you pretty far
What's next for AI Coach
We'll try to solve more of the problems that annoy us when it comes to fitness plans.
Log in or sign up for Devpost to join the conversation.