Skip to content

JoostVanVelthoven/FindTuDelftWorkspaceBot

Repository files navigation

Azure chatbot with TU Delft API

Goal

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.

Steps

Phase 1: install the demo bot and test!

  1. Create a Azure account (More info)

  2. Go to https://portal.azure.com

  3. Create a bot in the portal

create the bot

  1. Choice a name for the bot and create the bot. (Auto generate keys is highly recommend)
  2. Go to your bot 'blade' by Bot Services and select your bot.
  3. Go to build and open online editor

Botblade

  1. Delete all files
  2. Go to the Git-page and clone
https://github.com/JoostVanVelthoven/FindTuDelftWorkspaceBot  

Phase 2: Ask more questions to your users

  1. Go to the explorer-tab and change /dialog/RootDialog.cs
  2. Ask the user his name, his desired building and the number of required workplaces. Repost the users input.
  3. Open the console tab and build the app by running the command:
build.cmd
  1. Go to back to the portal. Test your bot in the 'Test in Web Chat'-blade. To reset a session use: /deleteprofile

  2. In the portal go to Channels. Register Skype as a channel.

  3. Open Skype and test the channel.

Skype

Phase 3: Explore the API

  1. 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.

Phase 4: Integrate API and bot

  1. 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)
  2. Done!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published