I know that there are already plugins like https://github.com/wilenius/moodle-qbank_questiongen / https://moodle.org/plugins/qbank_questiongen which let you generate completely new questions using Gen AI.
This is a different idea, to assist humans while editing questions, but human working with AI, for example:
- Suppose you are creating a Mutliple choice question and have written the question, and the right answer, and you want to say to the AI: "Please suggest some distractors (wrong answers) to complete this question."
- Or, you have the questions and the various answers (could be Multiple-choice again, but this might also work for Short-answer, numerical, etc.) and you want to ask the AI "Please suggest some feedback for each possible answer, which will help students understand."
So, to do this, we will need
- JavaScript to enhance those editing form.
- And, when the student clicks the button (or whatever), we need to use the Moodle AI subsystem to generate what is asked for.
- And, once it is generated, insert the new content into the form for the question author to review.