/Restaurant-Chatbot-With-Azure

Chatbot named "Armando's pizza" that simulates a cashier in a pizzeria, you can ask about the menù, reserve a table, inquire about the ingredients, order a pizza and normally converse with it.

Primary LanguageJavaScript

Restaurant Chatbot With Azure

Description

Chatbot named "Armando's pizza" that simulates a cashier in a pizzeria, you can ask about the menù, reserve a table, inquire about the ingredients, order a pizza and normally converse with it. You can also ask things like age, what it does in life, in short, converse as if it were a person.

This bot has been created using Bot Framework that:

  • Use LUIS to implement core AI capabilities
  • Implement a multi-turn conversation using Dialogs
  • Handle user interruptions for such things as Help or Cancel
  • Prompt for and validate requests for information from the user
  • Handle any unexpected errors
  • Use QnA Maker Service service to answer questions based on a FAQ text file used as input.

Demo video

video button

Prerequisites

  • Azure account
  • Node.js version 10.14 or higher
  • QnA knowledge base setup and application configuration steps can be found here.
  • Luis setup and application configuration steps can be found here

Note: for Qna and Luis services, you need only to import the file that are in the folder called "cognitiveModels". And remember to edit/ create the ".env" file in the root with your keys and parameters if you want test your bot in local.

To run the bot locally

  • Download the bot code from the Build blade in the Azure Portal (make sure you click "Yes" when asked "Include app settings in the downloaded zip file?"). Copy the .env file from the downloaded folder to this project's folder.

  • Install modules

    npm install
  • Run the bot

    npm start

Testing the bot using Bot Framework Emulator

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.

  • Install the Bot Framework Emulator version 4.5.2 or greater from here

Connect to the bot using Bot Framework Emulator

  • Launch Bot Framework Emulator
  • File -> Open Bot
  • Enter a Bot URL of http://localhost:3978/api/messages

Deploy the bot to Azure

After creating the bot and testing it locally, you can deploy it to Azure to make it accessible from anywhere. To learn how, you must understand some basic concept: