Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Bot Factory Bot Framework Talk to Me

Similar presentations


Presentation on theme: "The Bot Factory Bot Framework Talk to Me"— Presentation transcript:

1 The Bot Factory Bot Framework Talk to Me
Howto generate a Bot with an Excel Sheet and general Bot Problems

2 Design goals…. You need a Bot with sample conversation?
You need a Bot for a presentation? You have to create wireframes and you need dialogs? Create your own Bot without Bot/LUIS knowledge. All what you need is a little bit Visual Studio and Azure experience. 1 Hour to Install the Bot Factory Framework. You can Train/Change the Model in 5 Minutes. Have a look to

3 Problems How to build FAQ Bot Solutions
QnA Maker, greate but not fits to all szenarios. Synonyms LUIS and the 80 Intents Maintain and Mange the content of Question and Answers

4 What descripes a FAQ? E.g. Airline
FAQ Goups Questions Answers Actions Saying Hello Hello Hi, I am a bot! Show Buttons what the Main Bot Action are Saying Goodby Thank you, good bye Thank you, good by Show Button for voting Answerquality Lost Luggage I lost my baggage! Go to the Baggage Counter or call +49…. Show Buttons with Phonenumber, Connect to Call Center Connection information The next Train? One Answer with the connection information Show Buttons with detailed Information From Berlin to Paris? Ticket Problems I lost my paper Ticket Howto get a new one Button with Link to Website I forget my password Baggage Handling How many pieces can i get to the cabbin.

5 What descripes a FAQ? Question 1.1.1 Answer 1.1 Action 1.1
FAQ Group 1 Question 1.2.1 Answer 1.2 Action 1.2 FAQ Group 2 Answer 2.1 Action 2.1

6 QnA Maker Pro Cons Simple No own code project.
Many Questions one Answer No separation of FAQ Groups Search Mechanism based on question and answers Answer sometimes occasional if the questions sounds like the same. More than 1000??? Question and Answer Pairs, Limit unkown. without regard to Synonyms Faster

7 Luis - 1 step solution Pro Cons Control the Intents.
Limited to 80 Intents Put Intent and Questions for that intent together. Little bit slower Easily retrain. Can filter Entities from questions.

8 Idea combination of a 2 level LUIS
LUIS can easily trained with tousens of questions, but only for 80 Intents. One Intent = One FAQ Answer, limited to 80 FAQ Answers. BUT If we make 2 steps!!! First Step get the FAQ Group and Second Step send the question only to the FAQ Luis Group!

9 Luis - 2 step solution! Pro Cons Control the Intents = FAQ Groups.
Limited to 80 x 80 = 6400 Intents for 2 steps Control the Answers in a FAQ Group Littel bit slower, because 2 LUIS Calls. Put Intent and Questions for that intent together. Easily retrain and extensible Can filter Entities from questions

10 Setup Create Bot Create an initial LUIS App, to get a „Programmatic API Key“ Download „TalkToMe“ Solution from Git Repository. Deploy the „BotFrameworkTalkToMe.csproj“ to Azure Get the „Bot_Question_Answers_vTemplate.xlsx“ from the Solution and put all Keys and Id‘s into the Settings Page. Start the ExcelToBotAddIn.csproj and open the „Bot_Question_Answers_vTemplate.xlsx“. Put Questions, FAQ Answers and Actions into the Excel Template Run „Create Bot Model“ from the ExcelToBotAddIn. Test the Bot.

11 Prerequisites - Intro 1.1 Create Login Account outlook.com, 5 min, optional 1.2 Get 1 Month Azure Subscription, 5 min, optional 1.3 Create VM with Visual Studio Template or you use your own. 30 min, optional

12 2 Get Solution Framework
2.1 Download „TalkToMe“ Solution from Git Repository, 5 min. Copy Url, Clone Repository with GIT in VS. 2.2 Open the „Bot_Question_Answers_vTemplate.xlsx“ from the Solution and put all Keys and Id‘s into the Settings Page, 5 min The Template is in the Binaries Directory.

13 3 Azure 3.1 Create Web Role - App Service, 5 min
Get ID’s and setup the Settings Tab in Excel Template 3.2 Create Service Account (RestAPIAccess) for Excel Export, 2 min 3.3 Add Service Account to Web App, 2 min

14 4 Bot Framework 4.1 Create Bot, 5 min
Get Microsoft AppId + Password and setup the Settings Tab in Excel Template 4.2 Add URL to Bot Messaging EndPoint 1 min Add \api\messages

15 5 LUIS 5.1 Create an initial LUIS App, to get a „Programmatic API Key“
Get AppId + ProgrammaticAPIKey and setup the Settings Tab in Excel Template

16 6 Changes in the Solution Framework
6.1 Change IFrame (Video), 2 min Default.htm: <Iframe> set BotID and Web chat credential 6.2 Change Parameter in Web.config (Video), 2 min Change BotId, MicrosoftAppId, MicrosoftAppPassword 6.22 Change LuisDialog.cs, 2 min Dialogs\LuisDialog.cs: Change [LuisModel(„AppId", "ProgrammaticAPIKey")] 6.3 Get publish profile from Azure, 1 min Web App  Get Publishing Profile 6.4 Import publish profile (Video), 5 min. BotFrameworkTalkToMe  Publish  Create new profile  Import Profile 6.5 Deploy the „BotFrameworkTalkToMe.csproj“ to Azure, 10 min BotFrameworkTalkToMe  Publish, Check Website 6.6 Add Parameter to Excel Settings 15 min tbd.

17 7 Excel Add-In 7.1 Start the ExcelToBotAddIn.csproj and open the AddIn with „Bot_Question_Answers_vTemplate.xlsx“ 7.2 FAQ Answers, Questions and Actions or Dialogs into the Excel Template, ?? Min, depends on the count of FAQ Answers 7.3 More Questions and Testing

18 8 Create Model 8.1 Run „Create Bot Model“ from the ExcelToBotAddIn 8.2 Update Settings

19 9 Development and Test the Model
9.1 Create Intents 9.2 Learn Questions 9.5 Test the Model ……..

20 Click Use


Download ppt "The Bot Factory Bot Framework Talk to Me"

Similar presentations


Ads by Google