Categories:
Prompt check recognizer middleware
Description of prompt-check-recognizer-middleware, that manages the scenario when a user is requested to chose between different options
Introduction
The prompt-check-recognizer-middleware checks whether there is a prompt dialog currently active and, if so, evaluates the input message to check if there is a match (the user has selected one of the options offered by the choice prompt). In this situation, a temporary recognizerResult is generated to prevent the nlp-recognizer-middleware from running.

prompt-check-recognizer-middleware has a disableRecognition flag to disable the recognition when prompt has not choices.
The source code of this recognizer is included in Aura Bot Platform recognizers - Github repository.
prompt-check-recognizer-middleware flow
The following diagram shows in detail the internal logic of the prompt-check-recognizer-middleware.
