Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.71 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.71 KB

Sample GeoBot

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.

Bot features

The bot has two states (Waiting and Echo Intent):

  1. In Waiting state it does nothing with the input but moves to Echo Intent state
  2. 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.

Bot Conversation Example

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 Web Chat Start

Here the result message of the bot. It will now accept any input but just switching to Echo Intent state. Web Chat Waiting State

Here you see the message which indicates the Echo Intent state. Now enter something else. Web Chat Echo Intent State

Now you will get the LUIS Json formatted result echoed back. Web Chat Echo Intent Result