Users can enter their answers and get instant feedback. After making an attempt, they have the option to request an explanation, which is then generated by the AI.
Take a look at a simple example.
Use the editor to create a template for a question. The template can contain variables that will be replaced with randomly-selected values from a range that you specify.
The editor supports LaTex syntax for mathematical expressions, as well as an eval expression for evaluating arithmetic within questions and answers.
Check out the interactive demo to see how it works.