Let us continue with our previous posts on using Microsoft Bot Framework to create a simple bot application that creates a lead in CRM.
- Getting Started with Microsoft Bot Framework
- Using Dialogs in Microsoft Bot Framework.
- Using FormFlow in Microsoft Bot Framework.
- Using LUIS AI in Microsoft Bot Framework.– Part 1
- Using LUIS AI in Microsoft Bot Framework.- Part 2
In this post, we will be publishing our Bot application to Azure and also test it on Skype. Skype is one of the channel already configured for us.
Open the Azure Portal (Create a free trial if you do not have an account)
Right click on the application and select Publish.
Select Microsoft Azure App Service as the publish target.
Create the app service
Validate the connection and on successful connection click on Publish.
The published Bot Application –
Now to register our bot go to bot framework developer site
Sign in and Click on Register a bot
Enter all the required details.
Here URL will be the Destination URL of Azure where the Bot Application was published.
Click on Manage Microsoft App ID and Password
Click on Generate an Microsoft App ID and password.
Save the password and app id which will be used for configuration later.
Enter the App Id and click on Register to register the Bot.
We will get the message “Bot created” on successful registration.
Back in our bot application, open its web.config and specify value for app id and password and republish the app.
Once it is published successfully, inside our bot we can click on Test to check the connection.
We’d get the message “Endpoint authorization succeeded”.
Scrolling down we can see two channels web and skype already configured.
Click on Add to Skype to add the bot as a contact to skype.
Click on “Add to Contacts”
Sign in with your Skype Credentials.
We can see the Bot added to our contacts.
This is how we can easily publish the Bot to azure and add it to Skype.
Hope it helps..