I am trying the Microsoft BOT Framework and here you can find my first experiences.
First I followed the instructions available in Create a bot with the Bot Builder SDK for .NET and in the following you can find some notes and screenshots that could help to understand, if needed, the steps explained in that quick start, and then make the sample bot run bot on the bot emulator and then deployed in Azure.
First of all, to have your VS have the templates related to the Bot, copy the Bot Application, Bot Controller, and Bot Dialog .zip files to your Visual Studio 2017 project templates directory located in %USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\
You will then find a specific selectable Bot Application template when you will create a new project.
To test with the botframework-emulator, download it, install it and run it. Set the endpoint of the BOT (e.g. http://localhost:3979/api/messages ) where the base URL can be taken both from the URL of the browser page opened when you run the bot project with Visual Studio or in the project properties: remember to add to that string the /api/messages to let the endpoint be defined properly!
For this time, because the bot is not registered yet, in the emulator you have to leave blank the Microsoft App ID and Microsoft App Password fields: you will have to set them only after you register your bot in the MyBot section of the Bot Framework portal.
Clicking on the CONNECT button (and having the bot project running in Visual Studio), you can send messages to that bot and have it answers to you, as designed in his code.
Now, if you want to register and run that sample BOT in Azure, you have publish it: this will give you the site URL that you will have to change in https when you register this bot in the Bot Framework portal (as clearly stated in the suggestion of the Messaging endpoint input field when you register it).
Now, for sure you want to delete all the resources associated to that just created sample bot! You need to manage in the following places:
- in the Azure portal (where you could be charged for them),
- in the Application Registration portal
- in the Bot Framework portal
That’s all, for now …