Introduction
The Bot Framework enables you to build bots that support different types of interactions with users. You can design conversations in your bot to be freeform. Your bot can also have more guided interactions where it provides the user choices or actions. The conversation can use simple text strings or more complex rich cards that contain text, images, and action buttons. And you can add natural language interactions, which let your users interact with your bots in a natural and expressive way.
In this article, we can deploy a bot to Azure using visual studio 2017, register app with bot portal and test it with the Bot Framework Emulator.
Setup and Create New Bot Application.
You can read my previous article for Getting Started with Bots Using Visual Studio 2017 from here.

You need an Azure account for deploying bot applications to Azure so if you do not have an Azure account, you can click the following url for a free trial Azure subscription. https://azure.microsoft.com/en-us/free/
Register Bot Application
Step 1
Navigate to Bot Framework Portal from https://dev.botframework.com/
Step 2
Click on Sign in button and login with credential
Step 3
Click on Create a Bot or Skill
Step 4
Click on Create a Bot and click on Register
Step 5
Upload relevant app png icon and max size should be 30k
Step 6
Provide your bot's Display Name.
Step 6
Provide a Description of your bot.

Step 7
Provide your bot's Https endpoint in configuration section.
- We have not yet deployed our bot to the cloud so leave the endpoint blank for now. We will return to the Bot Framework Portal later and specify the endpoint after we have deployed our bot.
Step 8
On the next page, click Generate an app password to continue.
Step 9
Copy and securely store the password that is shown, and then click Ok.
Step 10
Click Finish and go back to Bot Framework.
Step 11
Back in the Bot Framework Portal, the App ID field is now populated.
Click 12
Click on Register to complete the registration process.
Update Web Configuration file
Open your project in Visual Studio and update the Microsoft App Id and Microsoft App Password values in your web configuration settings to specify the app ID and password values that were generated for your bot during the above registration process.











Ceal ClemPosted Nov 2, 2019, 5:51 AM
Hi Suthahar, Thanks for this article. Is it possible for you to make an updated version ? Because I feel like the process has changed since the updates in the bot framework (I may be wrong). My problem is when I update the web configuration file and save it, the whole project corrupts and can't be opened any more (!?)
Sir WilliamPosted Mar 13, 2019, 7:00 AM
I am having a problem sending a message, in the emulator it say's "POST 500 directline.postActivity" and in the azure portal cant send the message when trying the web chat.
balagangadhar TPosted Feb 17, 2019, 5:01 AM
I have created a bot with the steps you have explained. But i need to host the application in our company server IIS. How to do that can you please explain. I was just studying about the bot channel registration. is that anything to do with ?
aayan chakrabartiPosted Jan 31, 2019, 11:24 AM
HI i followed the exact steps however the hosted bot works fine in emulator but doesnt work in Web Chat. In the channels tab the issue shown is "There was an error sending this message to your bot: HTTP status code InternalServerError "
Thiruppathi RPosted Jun 9, 2017, 12:01 PM
Nice article.Thanks for sharing...
Manav PandyaPosted Jun 9, 2017, 12:13 AM
Nice one .................