Microsoft Bot -Part1: Create a sample

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Using Microsoft Bot in applications and report make them more agile and interactive.

there are many ways to use Microsoft Bot.

In this posts and the next one, I will explain how to create a Microsoft Bot in Azure and then embed it in your PowerBI and messenger like Facebook messenger or Telegram.

How to start

The first step is to create a Web App Bot  in Azure

When you creating Web App Bot, it will ask you about the Bot template :

As you can see in below picture, there are five different Bot Template there.

  • Basic (just echo your statement)
  • Form (collect information from the user, for instance, to get information about the food order)
  • Language Understanding (NLP)
  • Question and Answer: it can be used for FAQ
  • Proactive

 

To show the template, I start with a basic one that just echoes the user statement.

after the creation of the Web App bot for the basic purpose,  in the main page, click on the Text in Webchat and “This is Leila” 🙂 , the Bot just repeat the statement, that means bot is running. The C# code behind this Bot is available under the Build option (will show soon)

After creating, the apps, Click on the Channels, where you able to find the application that you able to publish you Bot. As you can see below there are two main ways.

you able to embed the Bot in a website, Like Emde the code in Power BI dashboard tile (will show the example soon) or deploy an application like Skype, Email, Facebook Messenger and Telegram.

Now I click on the Get Bot Embed Code  and copy the code

after clicking on the link, it navigates you to Configure Web Chat, there you able to access the embed code and replace it with the secret code shows in above box

Now navigate to powerbi.microsoft.com/  click on Workspace-> Dashboard-> Create

to create a new dashboard.

After creating a new dashboard, create a new tile, then add Web Content.

By adding the Web Content, you need to provide some details such as Title, Subtitle, the embed code (you already get it from Bot channel)

Now you just need to check the Bot. in the Text area, type “This is Leila” and you will see the same answer in chat channel in Azure.

This a very simple example of how to embed a chatbot here.

But The echo one is not our desire, we want an intelligence chatbot. In the next Post, I will show you how to create a Form for ordering the food for a conference via chatbot.

 

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail
rssyoutuberssyoutube
Leila Etaati
Dr. Leila Etaati is Principal Data Scientist, BI Consultant, and Speaker. She has over 10 years’ experience working with databases and software systems. She was involved in many large-scale projects for big sized companies. Leila has PhD of Information System department, University of Auckland, MS and BS in computer science. Leila is Microsoft Data Platform MVP.

Leave a Reply

Your email address will not be published. Required fields are marked *