logo

Inspiration

Depression is a serious mental disorder, not normal mood changes, when recurrent and severe 13% of 12-17-year-olds experience major depression in a year, 20% by adulthood About a third of 13-17-year-olds have an anxiety disorder (38% of girls, 26% of boys) Depression affected many well-performing students at our school, and we thought it was good to take action.

What it does

Xylix is an AI chatbot that will take your input and generate a personalized output based on the type of help you require. Four types of therapeutic help it provides include cognitive behavioral therapy (CBT), interpersonal therapy (IPT), mindfulness-based therapies & psychotherapy. It will automatically choose the best method based on the user's response. ![form]

How we built it

We built Xylix using multiple different languages.

  1. API We built the Xylix API to handle login/registration and saving conversation data. We built this using ExpressJS primarily. We used Axios to send get requests to the OpenAI API. You can view the API code here.
  2. Frontend We built the front end primarily using ReactJS, HTML, CSS, and JS. We also used Axios to connect our React app to our Xylix API.

Challenges we ran into

  • Our inputs were not inputting as the correct type.
  • We encountered many issues while trying to integrate our API with OpenAI which caused our entire backend system to go down every time it crashed.
  • Since some of us were new to JavaScript, we spent a lot of time debugging issues that came up. If we were more experienced, we could've completed this project in half the time.

Accomplishments that we're proud of

  • We built a full backend & frontend for a fully working, full-stack app
  • We got to learn a lot more about JavaScript

What we learned

  • Learned how to connect to the OpenAI API with JavaScript
  • Learned how to build a backend using Express.js
  • Improved our skills in building a frontend with JavaScript

What's next for Xylix

  • Enhanced user interface to make it more user-friendly
  • At registration, you can provide info about yourself to teach the AI about you
  • More options to customize your therapy
  • Make the app more visually appealing

Built With

Share this project:

Updates