Bot Framework Composer

Introduction

With the help of Bot Framework Composer, you can build a very complex bot using a very simple approach. The beauty lies in the fact that you need little to no coding, and all you need is just an idea and a minimalistic approach.

Basic Installation

  1. Install Node.js from the following URL: https://nodejs.org/en
  2. Install .NET SDK from the following URL: https://dotnet.microsoft.com/en-us/download/dotnet/3.1
  3. Install the Microsoft Bot Framework Composer from the following URL: https://github.com/microsoft/BotFramework-Composer/releases/download/v2.1.2/BotFramework-Composer-2.1.2-windows-setup.exe

Setting up a Dialog

  1. Click on Create New Project.
  2. Select "empty bot" (using C# as the core language).
  3. Name your bot "AQI_Bot".
    Create a bot
  4. Go to AQI_Bot---> more options(the three colons)----> Add a new dialog.
  5. Name your new dialog as GetAQI.
  6. Your initial dialog flow should look something like this.
    Bot framework composer

Using Open Weather Map's API Documentation

We will be using openweathermap.org data to retrieve the AQI value and the concentration of gases that we desire to know about. For this particular process, we will be sending an HTTP call to open weather's API call URL, and then we will read the data from the JSON formatted output data to retrieve the information that we are concerned about.

Link to Open Weather AQI API documentation: https://openweathermap.org/api/air-pollution

Final Workflow

the final workflow should look something like this.

Bot workflow

Bot

Testing Our Bot

  1. Click on Start a Bot.
  2. Then Click on Open in Web Chat to test your bot with real-time data input.

Note. Attaching the video for this tutorial below for a much deeper understanding

URL. https://www.c-sharpcorner.com/article/creating-bot-using-azure-framework-composer/

Note. The URL for the Conversational language understanding model article is also attached (as discussed in the video).

URL. https://www.c-sharpcorner.com/article/conversational-understanding-model-with-ms-azure/