What is Azure Bot Service ?
For introduction to chat bots please refer this link here
Azure Bot Service is a intelligent, serverless bot development service introduced by Microsoft Azure on Azure Portal. This service is used to develop conversational bots with the help of various templates, cognitive services by Microsoft.
For more information on LUIS visit here
Prerequisites for building a chat bot on Microsoft Azure Portal:
- MSDN account for Azure
- Knowledge of any one of the languages (C# or Node JS)
- Basic knowledge of Artificial intelligence
Building a Simple Chat Bot
#1 – Go to Azure Portal and search for Bot Service under Data + Analytics
#2 – Create a BOT by filling the details like Bot Name, Subscription(default), Resource Group(Create New), and Location of your Choice.
Click on Create
#3 – After clicking on create it will take some seconds to create your BOT. After the Bot is created, you have to create Microsoft App ID and password.
Also Azure provide multiple templates for developing BOT, as shown below:
- Language Understanding (using LUIS)
- Question and Answer
Choose the t appropriate template, we have chosen Language Understanding (using LUIS).
Check on ‘I agree’ and proceed. Again it will take some seconds time to configure and build the BOT.
#7 – Now go to LUIS portal , your app will automatically be listed under my apps. Click on your app to customize.
This will open your LUIS app Dashboard with all analytics about your app and a side menu with attributes to customize the service.
Intents: An intent represents actions the user wants to perform. It is a purpose or goal expressed in a user’s input, such as booking a flight, paying a bill, or finding a news article. How to Add intents?
Utterances: An utterance is the textual input from the user, that your app needs to interpret. It may be a sentence, like “Book me a ticket to Delhi”. How to add Utterances?
Entities: An entity represents an instance of a class of object that is relevant to a user’s intent. In the utterance “Book me a ticket to Paris”, “Paris” is an entity of type location. How to add Entities?
In this example, “Location” is the entity for utterance “Book a flight to Delhi” for Intent “Book Flight”
#8 – Train & Publish the app from LUIS portal.
Write the Node JS Code to access the JSON data returned by the LUIS API and providing appropriate response to users queries (Utterances) .
Here it is, Your BOT is ready!
For deploying the chat bot to different channels like Skype or Slack etc. Please visit here