Triggering A Specific Dialog In Microsoft Bot Framework Composer
Ensure Your User Reach The Right Dialog & Can Cancel Or Digress
Building agility into a chatbot often ads much overhead, but is integral to the success of the product…
What surprised me about Composer is the capability to create interruptions in dialogs with ease. These interruptions can be seen as a form of digression. Another aspect I cover here is how easily a global help dialog can be established.
Lastly I cover the linking of intents to a journey sequence or dialog as Composer refers to it.
The Microsoft Bot Composer Framework interface is very minimalistic. On the left is a menu of key components used to craft a conversational UI. Bot Responses can be sued to create dynamic bot dailogs for responding to a user. Create dynamic response bot wording based on variables and data.
There is a blue button to restart your chatbot once changes have been made. The Emulator can be launched directly from Composer.
The Authoring canvas is where you build out your dialog sequence. Different actions are used to constitute the dialog. The Properties Panel holds the details of each action. You will find much of your configuration takes place here.
The intent for triggering the dialog is linked to the user input and is covered in the next section.
Triggering A Journey
Triggering a dialog or journey sequence is done in an unique way within Composer. Your starting point is creating a Language Under standing segment which is based on a LUIS model, or Regular Expressions.
From here we create a trigger. This trigger is linked to the Language Understanding (LU) you created.
Language Understanding (LU) is used by a bot to understand language naturally and contextually to determine what next to do in a conversation flow.
In the Bot Framework Composer, the process is achieved through setting up recognizers and providing training data in the dialog so that the intents and entities contained in the message can be captured.
These values will then be passed on to triggers which define how the bot responds using the appropriate actions.
LU has the following characteristics when used in the Bot Framework Composer:
- LU is training data for LUIS recognizer.
- LU is authored in the inline editor or in User Input using the .lu file format.
- Composer currently supports LU technologies such as LUIS.
This example from the MyRobot project shows the menu where you can select LUIS or a regular expression. As you can see I have create three Regular Expressions: weather, help and cancel. Composer will spot these words in the user conversation and direct the dialog accordingly.
You can imagine on a smaller scale this can work quite well, but as soon as the chatbot scales this approach will hit its limitations. Subtle differences in user intent will be missed.
Here I create a trigger based on the intent created. You can see that the trigger can also be set by other conditions.
Once the trigger is set, it can be linked to a dialog to be invoked. Pre-processing can be done prior to calling the journey.
One feature I found helpful is a global cancel option. Anywhere within the conversation the user can decide to cancel and end the dialog.
This is helps to allow breakout from any journey sequence without having to add it all along the conversation.
Allowing interruptions in your input actions gives you the option to let your user digress. The digression can be as short as one action lending support to the user.
It is a very convenient way to temporarily break out of a sequence or dialog and return to the exact same point in the conversation.
These are the fundamentals of creating a basic conversational interface with Composer. Initially this approach seems strange, but once you have stepped through the process a few times it starts making sense.
Read More Here…
Hi, I'm Cobus... Currently I conceptualize, mock-up, wire-frame, prototype and develop final products. Primarily…
Cobus Greyling - Medium
Read writing from Cobus Greyling on Medium. NLP/NLU, Chatbots, Voice, Conversational UI/UX, CX Designer, Developer…
Bot Framework Composer Documentation - Quickstarts, Tutorials, Samples
Bot Framework Composer is a visual designer that lets you quickly and easily build sophisticated conversational bots…