Building Your Bot Quickly Using Azure Bot Service

In this tutorial, you will learn what Azure Bot Service is and how you accelerate your Bot development using Azure Bot Service.

What is Azure Bot Service?

Microsoft states that Azure Bot Service is the first public bot-service which is built on top of the Microsoft Bot Framework and Serverless computing Azure Service Functions.

Bot Service provides us the following out of the box services.

Azure

You can build your bots using C# or Node.js

You can build bots for the following channels.

  • Slack,
  • Facebook Messenger,
  • Skype,
  • Teams,
  • Web chat,
  • Email,
  • GroupMe,
  • Kik,
  • Telegram
  • Twilio

Pretty excited? Yeah, I am too. Let’s create our first bot using the Azure Bot Service. As shown in the below screen capture, click on “+” button to open the New Blade and select Intelligence and Analytics service and then click on Bot Service.

Azure

You will be taken to the Bot Service blade where you just enter the name of the Bot Service, Resource Group and the location along with the subscription where you would like to provision your Bot Service.

Azure

Once you are ready, click on Create button to create your first Bot Service. As shown below, the Bot service has been created successfully.

Azure

Note

Unlike other App Services, you cannot choose an app service plan for bots. It’s by default created based on the location (SoutheastAsiaPlan as highlighted above) you choose with the tier “Consumption,” which means, it’s charged only based on the utilization of the Azure Computing power and also scaled automatically based on the demand without any configurations.

Click on the Bot Service to start configuring the bot. You will be taken to the following screen after clicking on the Bot Service.

Azure

Click on the Create Microsoft App ID and Password button which is highlighted above to create a new app for our bot. The Application Registration Portal will be opened in a new browser tab where you would need to be authenticated with your Microsoft Account.

Once authenticated, you will be taken to the following page to generate a new APP ID along with a Password. Click on Generate an app Password to continue to create a new Password as shown below.

Azure

Save the password in a secure place and click on both OK and finish and go back to the Bot Framework buttons one after the other.

You will be taken back to the Bot Service page as shown below.

Azure

Provide the password in the paste password from the Microsoft App registration portal textbox. As soon as you provide the password, all the details below will get enabled for you to move forward.

The next step is to choose your favorite language. In this case, I selected C# as highlighted in the below screen capture.

Azure

And then choose the type of Bot that you would like to create based on your requirements as shown below.

Azure

Now, click on Create bot button. The next step is to connect the new Azure Bot Service with the LUIS API. You are required to log in to your Cognitive Service account as shown below.

Azure

I selected “Sign in using Microsoft Account” as shown above.

Azure

Using the above step, you will be authorizing LUIS api to access your account details. Click YES in the above step.

Azure

It has prompted me to create a new Cognitive Services LUIS Account. Accept the Online Services Agreement and click on OK button.

The current tab will have closed and you will be taken back to the original browser tab with the following screen

Azure

That’s it. You have created a new Bot in just few minutes (less than 5 minutes). Below is the screen capture of the Integrated Environment of your Bot Service.

Azure

You can perform the following actions right from a single view without navigating to multiple tools.

  • Edit the code within the browser (Once you setup your Continuous integration with your Versioning Systems; you shouldn’t edit the code here)
  • Test your chat console
  • Add your app to different channels (using Channels tab)
  • Publish the app
  • View the Logs of your Web books.

Please note that the new Azure Bot Service just helps us build Bots pretty quickly and avoid all the plumbing stuff and other integration services that a developer needs to do while creating a Bot. However, the process of creating the intents and training your LUIS app will remain the same.

Happy Bot-ing! Hope you enjoyed reading the article. You can read the original article here (https://praveenkumarsreeram.com/2016/11/17/build-your-bot-quickly-using-azure-bot-service/ )