CS342 / 2024-Prisma

MIT License
2 stars 1 forks source link

🚀 Major feature request: [DRAFT] Create New Collection For User Goals in Firebase #16

Closed carolinentran closed 6 months ago

carolinentran commented 7 months ago

Use Case

Initially, push notifications will be implemented on static data without trigger conditions.

As the project progresses, we hope to include user input in their goal-setting thresholds on fields like step count, hours of sleep, floors climbed...etc. as trigger conditions for the push notification cloud functions.

Problem

NOTE: I will be editing this issue after meeting with Matt on the goals of this project. I missed the team meeting due to scheduling limitations.

Current: Healthkit data is automatically stored in firebase but user goal-data is not collected nor written into firebase.

Solution

There are two approaches I see for this issue (see alternative). I would like to discuss the following with Matt:

Collecting goal-data from chatbot: Chatbot has functionality for retrieving data and writing in data to firebase collections (gpt messages). It would be ideal to have user goal-data also collected and written in from chatbot messages. This is a stretch goal and may be out of the scopes for this quarter.

Alternatives considered

Approach 2: Collecting goal-data from questionnaires: This may be a simpler, more base-line approach to including user data as we can control the structure of the user input (number selection for step count, selection for time intervals like day, hours, etc). Being able to control the input structure helps with writing into firebase.

Additional context

Referencing code from Web>backend>gpt>messages.py from StanfordHCI/prisma.

Code of Conduct