The frontend of Emotify was built using React Native and contains three main pages for the user to visit. On the first page, the user can type out how they are feeling or a situation that they may be experiencing at the moment that then leads to an alternate page with a Spotify playlist made to boost your mood! This would be done by sending a prompt to OpenAI that would convert the text into keywords that would be sent to Spotify’s API to get songs related to those keywords. A button on this second page then leads to the third page, where the user can find comforting messages and useful information about the positive effects of music on mental health. A button can also be found on the final page to bring the user back to the start of our app, restarting the process whenever you want!
I worked on the API requests for this project, working with Postman to get the correct data to the OpenAI APIs to return our data. ChatGPT had just come out at this time, so working with a brand new API for the first time was challenging, but I learned a lot with this project, as did my team.