Create a multi channel chatbot. The bot ask your name, your building and the number of requested places. To answer the user the bot uses the Tu-Delft web REST API.
-
Go to https://portal.azure.com
-
Create a bot in the portal
- Choice a name for the bot and create the bot. (Auto generate keys is highly recommend)
- Go to your bot 'blade' by Bot Services and select your bot.
- Go to build and open online editor
- Delete all files
- Go to the Git-page and clone
https://github.com/JoostVanVelthoven/FindTuDelftWorkspaceBot
- Go to the explorer-tab and change /dialog/RootDialog.cs
- Ask the user his name, his desired building and the number of required workplaces. Repost the users input.
- Open the console tab and build the app by running the command:
build.cmd
-
Go to back to the portal. Test your bot in the 'Test in Web Chat'-blade. To reset a session use:
/deleteprofile
-
In the portal go to Channels. Register Skype as a channel.
-
Open Skype and test the channel.
- Now it's time to use the TU-Delft API! Because debugging Microsoft bots is time consuming we use a test console application (
ApiTestConsole
). Download the source from this repo. (Because of time limitations, the REST API is already implemented in the solution). Try to filter the data.
- With this experience, it is time to implement the API in the bot. Migrate all the code from the console to the bot. (of course using the online editor)
- Done!