#Bots – (II) Publish to #Azure and register your Bot into Microsoft Bot Network

Hi !

In my previous post I explained how to create a simple Hello Bot project using Visual Studio 2015. Once we have created this bot (step 1), our next steps are:

  1. Create Hello Bot app using Visual Studio
  2. Publish the bot to Azure and register the bot in Microsoft Bot Framework
  3. Connect the bot to specific channels

So, let’s go with the Azure publish process. This is something very usual so I won’t get into the small step by step details (see the references section). You need an Azure subscription and then you can move on.

Select your project in Visual Studio 2015, get the context menu and select “Publish”.

image

This will start the Azure publish wizard. We’ll create an App Service. And for this demo I’ll name it “BotApplicationElBrunoTest

image

So, the Visual Studio publish wizard will be started, and a couple of seconds later we’ll have our Bot App published into an Azure App Service.

image

At this moment is important to annotate the url of our service [http://botapplicationelbrunotest.azurewebsites.net/]

Now is moment to register our bot into the Microsoft Bot Framework.

image

We go to the “My Bots” section and we can register our new bot. Most of the fields are very descriptive, and we need to define and endpoint for our bot. This is our previous Azure URl with the /api/messages suffix.

image

And that’s it! Our bot is registered in the Bot Framework directory. By default the bot are enabled with a Webchat channel.

image

We can try this channel using the test feature in the bottom left of the page

image

However, is better to do this using the Microsoft Bot Emulator app. Once we add the correct url in the app, we can try something like this

2016 05 05 Bot Azure publish

Once we got the bot registered, we need to update the AppId and AppSecret values on the web.config file in Visual Studio. After we update this values, we need to publish again to Azure our project and that’s it!

Clipboard01

So, we only need to add one more Step, that’ will be the latest post for this series 😀

Greetings @ Toronto

-El Bruno

References

Advertisements

5 thoughts on “#Bots – (II) Publish to #Azure and register your Bot into Microsoft Bot Network

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