Introduction
In our previous article, we learned how to Create and Connect a chatbot with Azure Bot Service. In this article, we are going to create an intelligent bot application using Microsoft Bot Framework.
ngrok Software
So first we need to download ngrok software. What is ngrok ?
"ngrok" is a network tunneling software. The Bot Framework Emulator works with ngrok to communicate with bots hosted remotely. Click this link https://ngrok.com/download to download ngrok network tunneling software.
Bot Framework Emulator
The Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. So we need to download Bot Framework Emulator for both local and server testing. So please go through this link to download Bot Framework Emulator click here.
After successful download please run the exe file for Bot Framework Emulator. Then first time it will open a "App Settings Window" there we need to provide the exact path of ngrok in our system ( Provide "ngrok" saved folder path in our system ).
The following screenshot "ngrok" saved into C drive Downloads folder ( C:\Users\RajeeshMenoth\Downloads\ngrok ).

Web.config
When you are connecting to remote server or anything other than local host then we need to provide the following credentials "BotId" & "MicrosoftAppId" & "MicrosoftAppPassword" in Web.Config and Bot Framework Emulator. This we will get it from azure "AppSettings" in our created Web App Bot.
- <configuration>
- <appSettings>
- <!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
- <add key="BotId" value="YourBotId" />
- <add key="MicrosoftAppId" value="" />
- <add key="MicrosoftAppPassword" value="" />
- </appSettings>
- </configuration>
Click on "File -> New -> Project -> Visual C# -> Bot Application"


Note
If the Bot Application Template is not present in the Visual Studio 2015 then please go to "Tools -> Extensions and Updates". Then search and Install the "Bot Application" in our Visual Studio.
If the Bot Application Template is not present in the Visual Studio 2015 then please go to "Tools -> Extensions and Updates". Then search and Install the "Bot Application" in our Visual Studio.
Code
I just changed the default code for Web App Bot. Then we added our own logic into this C# Code in Bot Application.




Jitendra WaghalePosted Aug 26, 2018, 2:39 PM
This is very helpful, Thanks for sharing!!
Paul CookPosted Jun 22, 2018, 7:38 AM
Very nice article. The guidence which is required to give is given here. I have also read one good article https://bit.ly/2JZw8nt which is related to chatbot. Hope people may find helpful.
Sagar Pandurang KapPosted Jan 15, 2018, 12:27 AM
Amazing article.Helpful.Keep Posting..
Gupta AnirudhaPosted Jan 12, 2018, 12:26 PM
@Rajesh can you make a demo with Luis.ai intent? That's would be great.