Microsoft Bot Framework – Part 2: Publish Bot Service to Azure

This blog post is Part 2 of how to create a chat bot with Microsoft Bot Framework which can answer FAQs on your website. This is in continuation to my previous post where I explained how to create a QnA service using Microsoft QnA service maker. You can read Part 1 of my post here.

In this post, I will demonstrate how to deploy the service we previously created on Azure. The only pre-requisite is to have an Azure account. You can sign up for free.

  • Log in to your Microsoft Azure account and search for “Microsoft Bot Framework”, you should get one result “Bot Service”. Select the Bot Service to proceed and click Create. At the time of writing Bot Service is still in preview.Azure-BotService
  • Next, provide the name of your app, select hosting plan and click Create. The app service will be created within few minutes.
  • Next, select the service created in the last step and you will get a screen similar to below.

RegisterBot.PNG

  • Follow the steps to register your bot with Microsoft App Id.
  • In the next step, choose the language you are comfortable in developing your bot framework. Currently, C# and NodeJS are supported.

Note:  Your initial code will be auto-generated when you create a bot. So, you do not need to jump to the code right away.

  • Next, you get an option to choose a template. Select template Questions and Answer and click Create.

CreateBot

  • In the next step, you can integrate the QnA service created in Part 1.  Sign in with your QnA maker account credentials, select your existing knowledge base from the drop-down and click OK.

QnAMakerSelectKnowledgeBase

 

  • This will provision your bot and deploy your Bot Service. It can take few minutes to complete this step.
  • Next, you will be asked how to work with your code. You can choose to edit in online editor, download source code Zip or set up continuous deployment from your source control.
  • That’s it, you can now test your Bot by clicking “Test”  button on the top right.

TestingMicrosoftBot

 

In the next post, I will explain how to connect to different channels like Skype, Web Chat, Facebook Messenger etc. from your Bot Framework.

Stay Tune! 🙂

Advertisements

One thought on “Microsoft Bot Framework – Part 2: Publish Bot Service to Azure

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s