Fastest way to create a Question/Answer bot using QnA Maker & Microsoft Bot Framework

Microsoft has provided an easy to use QnA Maker service which gives ability to build, train and publish a simple question and answer bot based on FAQ URLs, structured documents or editorial content in minutes.

Just register on below url.
https://qnamaker.ai/

Once registered it gives option to create new service.

After creating the new service, it gives option to input a FAQ page url or upload FAQ files (formats - .tsv, .pdf, .doc, .docx, .xlsx) or start with blank data & enter your own questions and answers.
For the article I choose FAQ url, once the url is entered, service scans the content from the page & creates the Knowledge Base.


The knowledge base can be trained & saved and can be published to be used in the bot or any other application.
Service also provide a very handy interface to Test the request response. Just use the "Test" option on the left hand side.

Now as our QnA service is published, we can go to Azure portal & create a new bot.

Give a Name to the bot, add valid azure details & create the new bot. Once deployed it should open options to authenticate your bot with the Bot framework.

We can create a new Bot Microsoft App or we can copy the Microsoft App ID & Password from the Bot framework portal.

Then we can choose the development language C# or Node.js and finally we have choose "Question And Answer" template for the bot. Agree the terms & create new bot.

The QnA Maker will step in here & will ask for the Knowledge base. We can use the Knowledge base which we created earlier.

The Azure Bot service will create the bindings and will create all the code for the simple Q&A bot. You can directly test the bot from the Azure portal itself.

You can now publish the bot to Skype, Bing, Facebook or any other channel you want.
Hope this helps.

Happy Coding,
Parshuram

Comments

Popular posts from this blog

6000 KM Road Trip

Export MS Access report to Excel..Font Problem

Testing AWS Rekognition from POSTMAN