-
-
This is initialization and assignment of all the variables that will be used in the program.
-
This code calculates your BMR and saves the user info in a database so that it can be used throughout the program.
-
This code displays the information (name, BMR, and goal) that the user entered on the last screen.
-
This code calculates the amount of average calories you should eat to reach your goal. The BMR is multiplied by a number to get calories.
-
This code opens the chatbot screen where the user can talk to AI and get advice on how to meet their goals.
-
This code is for logging the food and calories you ate during the day.
-
This code is for the chatbot where the user asks for advice.
Inspiration
We were inspired by the Stanford AI in healthcare program (AIMI) so we wanted to contribute our app to making it easier for people to manage and track their eating habits so that they can achieve their goals and stay healthy.
What it does
The app calculates your BMR, allows you to track meals throughout the day, tells you how many calories to eat in a day based on your health goal. It also allows the user to get advice from an AI chatbot on how to meet their goals by eating certain foods.
How we built it
We built it on MIT-App-Inventor and used API’s from OpenAI.
Challenges we ran into
We needed to create databases to store certain information when switching screens.
Accomplishments that we're proud of
We successfully integrated AI into our program, and we incorporated text-to-speech functions to make the app more accessible.
What we learned
AI can be used to support humans by helping them achieve their goals. We also learned how to integrate APIs into apps.
What's next for Diet Advice Chat Bot
We’re looking forward to getting real users to provide feedback and help us improve this app. We would also like to enter our app into more competitions in the future.
Built With
- api
- database
- mit-app-inventor
Log in or sign up for Devpost to join the conversation.