Exam bot, how to separate wrong answers


I need to make an exam bot which have open questions. I planned to check right answers with intents, so if a word, correct answer, is recognized with enough confident, bot continues to next question.

But how to deal with wrong answers? It is not feasible to use intents, because user can write almost anything. So how to make an “If-statement” that if it is correct, move to next question, if its anything else, move to action x ??

Sounds like you want a form:

Since you can fill slots from_text you could accept any answer for a answer slot, and take action based on the value by rejecting an incorrect answer in your custom validation method.

I’m not so sure about the idea of marking an answer as “correct” based on intent, but I guess it depends on your exact use case whether that makes sense.