So you’ve set up your new chat bot using the Microsoft Bot Framework, and you need to catch messages before they’re read by your dialogs or FormFlows to apply some global or preemptive logic. Luckily, the Bot Framework team thought ahead and built in a concept for handling message interception, called Scorables.
What Are Scorables?
A Scorable is a class that you can register with Autofac (the dependency injection solution used by Bot Framework), that will silently sit in between your externally-facing code accepting incoming user messages, and your internal dialog code. Each one will get the chance to handle the incoming message, and even compete for priority (which is where the “score” originates).
When To Use Scorables
Since they have full access to Autofac and the dialog stack, they can allow you to do anything from:
applying logic across your entire set of dialogs without duplicating…
New Channels, New Docs, New Ways to Make Great Bots
On May 10th, Microsoft announced numerous updates to the Bot Framework designed to help developers make great conversationalists.
1 New Channels
Three new channels are available today, increasing your bot’s reach to even more of the Microsoft audience, as well as people engaged in many of the world’s most popular messaging experiences.
The Cortana channel enables you to extend Cortana by authoring Skills. Visit the Cortana developer portal to learn how to add your skills to Cortana.
The Bing channel allows users to discover and chat with your bot directly in the Bing search result page. Bing bots are authored using the Bot Framework and connected via the Bing channel. The Bing Bot development experience allows bot developers to publish their bots to Bing, where they appear in the Bing Bots Rich Answer. Users will…
The Microsoft Educator Community recently launched a new bot built with the Bot Framework to provide educators with a personal human-like assistant that can direct them quickly to relevant content. One of the key roles of the bot is to help educators better engage with Office 365 and develop their teaching skills with Microsoft’s Office products.
Since the bot was added to the site in January, engagement with the bot has been high, with over 40,000 messages from educators being exchanged. Educators have found the bot to be human-like, valuable, and easy to use. They shared positive praise for its assistance and helpfulness. In fact, Microsoft is beginning to see a trend towards educators preferring to start their engagement on the site with the bot. Educators who use the bot during their visit to the site have 3-times longer session duration…