The provided sample bot is very simple. It will retrieve all of it's configuration values from a KeyVault. The only static Application Settings provided (region and KeyVaultName) from the WebApp are used to identify the KeyVault and some regionalized values.
The bot has two states (Waiting and Echo Intent):
- In Waiting state it does nothing with the input but moves to Echo Intent state
- In _Echo Intent state it echos the result of LUIS
The bot will always tell it's location from where it responded. You can use this to track/check if a failover succeeds and with which region you are connected to.
If you start the bot, it will be in Echo Intent state).
You can achieve the Waiting state by entering cancel
in Echo Intent state.
By any input in Waiting state you will come back to Echo Intent state.
If you connect with the Webchat, you have to enter something in order to get the bot active (see here why there is no automatic Welcome Message like with Emulator).
Here we are entering cancel
in order to get the Bot into Waiting state
Here the result message of the bot. It will now accept any input but just switching to Echo Intent state.
Here you see the message which indicates the Echo Intent state. Now enter something else.
Now you will get the LUIS Json formatted result echoed back.