<aside> ⏰ Recommended Duration: 2.5 hours

</aside>

Overview

Your task is to implement the frontend portion for a small feature of Granted. We want to show a form where an AI system dynamically generates each question. When a user replies to a question, the server validates the answer, determines the next question, and responds with the information necessary for the frontend to display the next question. You will focus on defining the API contract for the backend server and building the frontend for the dynamic form.

Your implementation should support the following question types:

Here is a video showing one possible implementation:

Screen Recording 2024-08-19 at 4.38.16 PM.mov

Things to keep in mind