Bot Build Management

Hello reader, I hope you have connected your bot to any of available social channels using QnA Maker and the Azure Web App Bot service, as I explained in the last chapter. If you have, congratulations, as your bot is a hero in the outer world and you are

  • PDF / 1,125,588 Bytes
  • 20 Pages / 439.37 x 666.142 pts Page_size
  • 107 Downloads / 337 Views

DOWNLOAD

REPORT


Bot Build Management Hello reader, I hope you have connected your bot to any of available social channels using QnA Maker and the Azure Web App Bot service, as I explained in the last chapter. If you have, congratulations, as your bot is a hero in the outer world and you are now a bot expert! If you have not done this yet, then never mind, just start using QnA Maker and the Azure Web App Bot to create your own FAQ Bot. You can get connected to the wider audience through social channels later. This chapter explains all about bot build management. I shows you how to build an online bot using the Online Code Editor and do it offline using an IDE. In my case, it’s Visual Studio 2017 v15.3. Also, I show you how to implement continuous deployment for your FAQ Bot.

Building a Bot Online Figure 6-1 presents the way to work with bot development code. Using these ways, you can make the bot development process easy. You can go with any of the options presented here and keep upgrading your bot with the latest updates. This section falls under Bot Management in the Azure Web App Bot.

© Kasam Shaikh 2019 K. Shaikh, Developing Bots with QnA Maker Service, https://doi.org/10.1007/978-1-4842-4185-1_6

111

Chapter 6

Bot Build Management

Figure 6-1.  Ways to work with bot code in the Azure Portal

Using the Online Code Editor Using this option, you can make quick changes to your bot code online. Yes, you can make changes to bot code online! You can also build your bot code online, which will reflect changes instantly, all by using the Online Code Editor presented by the Azure Web App Bot, from the Build section under Bot Management. In this chapter, I show you how to make changes to your bot code and then build the code online. In Chapter 3, I mentioned the default response message sent by QnA Maker. If the requested query or input doesn’t match the knowledgebase content, the default response message is “No good match in FAQ,” as shown in Figure 6-2. Now this seems to be a very generic and dull message that’s not too helpful either.

112

Chapter 6

Bot Build Management

Figure 6-2.  The default response message by QnA Maker in the Test Chat window in the Azure Portal You can customize this message as needed, so that it suits your bot’s purpose. I will show you how to change this default message. For this customization, you have to make a few changes to the bot code. I will make these changes to the bot code using the Online Code Editor.

Changing the Bot Code Online Open the Web App Bot Service blade and click on the Build section under Bot Management. There, you will be presented with ways of working with your bot code options, as detailed at the beginning of this chapter. Select the Online Code Editor option. Refer to Figure 6-1 for better navigation. This will open a new tab or window, presenting you with the following options, shown in Figure 6-3.

113

Chapter 6

Bot Build Management

Figure 6-3.  The Online Code Editor The Code Editor uses the same authorization as your Azure Portal. If you notice the URL carefully,