When building, many designers want the control and flexibility to force specific reprompts based on which turn an end-user is on in the request.

This How To outlines how this can be achieved by using .lg

How It Works

Step 1: Select Other in your prompt configuration:

Screen Shot 2022-08-15 at 10.51.08 AM.png

Step 2: Under Prompt Configurations , define your desired number of times you wish to try to reprompt by setting the Max turn count (by default this will be 3):

Screen Shot 2022-08-15 at 10.51.25 AM.png

Step 3: Under ****Recognizers select the Show code option :

Screen Shot 2022-08-15 at 10.51.54 AM.png

Step 4: Use the following If/Else argument to define the specific prompt your bot will trigger for each turn (reprompt) :