Inspiration

We got inspiration from that fact that so many people are facing mental health challenges during the pandemic. However a lot of people are unaware of simple ways that can increase their mental health such as exercise, helping others, and developing strong communication skills. HealthBot encourages users to partake in activities that will benefit their mental health.

What it does

We created a chatbot that gives a personalized response to the user’s input. The chatbot will ask the user questions pertaining to their mental health and overall day to day life. After the user fills out a google form with some of their information, such as name, phone number, and favorite activities, they text the number shown at the submission page of the google form. After texting the number, they can have a full conversation with the bot where they get to talk about their day a little bit, and get reminded of things that are important for leading a healthy life.

How we built it

We built it by using Twilio, Python, Google Forms, and Google Spreadsheets. First, we created a google form that the user would fill out in order to text the chatbot. Then we made a google spreadsheet that stores the user’s information, which can be accessed by our program in order to personalize the conversation with the chatbot. We used Twilio and Python to create the code that the chatbot would perform. We used a lot of conditional statements to account for the different responses the user could give to our questions, which was another way of making sure that the responses the bot gave were fitting. We kept running our code every few cases to make sure that we catch our bugs/problems earlier in the process, rather than later.

Challenges we ran into

Our main challenge was trying to figure out how to make the chat bot follow a conversation with the user. Originally, we noticed that the bot can only take one SMS response, and information previously sent by the user in the chat would be forgotten. We were going to completely change how our chat bot worked because we didn’t think we could figure out how to keep a conversation going, but we decided to try a few more times. By using a global array, we were able to fix the problem, and our project worked just the way we wanted it to.

Accomplishments that we're proud of

We are very proud that we were able to successfully finish our first hackathon! We didn’t have much experience going into the project, but we were able to learn so much in such a short amount of time! We are also proud of the project that we created and how well it turned out for us.

What we learned

We learned that it is possible to make something cool even though we are beginners.We learned how to collaborate with each other to develop a product that works.

What's next for Mental Health Chatbot

Up next, we hope to send the users graphical visualizations of their weekly and monthly mental health!

Share this project:

Updates