Flexible forms?

so I’m trying to create a bot that will calculate a student’s grade. The grades are weighted (i.e. quizzes are 20% midterm is 30%, Final is 30%, participation 5%, etc.) I have an external file that has the categories and weights. These categories and weights change every semester, so when a student activates the “whatsmygrade” intent, I’d like the bot to look at the file and construct the form. Maybe this is action knowledge base problem, but that doesn’t exactly seem right? This seems more like a spontaneous form generation problem(which I’m not sure is possible), but I seek the communities guidance.