Create Azure Bot Service using QnA maker

QnA Maker makes it very easy to onboard your existing data to create a knowledge base. You can now create a new QnA Maker knowledge base from FAQ pages, manuals, structured documents or add them with these simple steps:
1. Create an account and sign in to the QnA maker portal. Then click on “Create a Knowledge base”. Now go through the 5 steps to create your knowledge base:
Step1: Create a QnA service in Microsoft Azure. Click on a Create a QnA service
This will redirect it to the azure portal to create the QnA maker.
Fill the necessary details. Look at the pricing tier.

One is the free one and another is the standard(paid). Click on create. It will deploy the QnA maker service on Azure. Then proceed to step 2
Step2: Connect your QnA service to your KB.
Step3: Name your Knowledge Base.
 Step 4: Populate your Knowledge Base. You can add any files, URLs.
 Step 5: Create your knowledge base
Click on Create your KB. This will take few moments to create knowledge base for your data.
You will get the list of all your data. You can add any set of question/Answers.
Once done, click on Save and train. You can test the application. Now finally click on Publish
Post publish, you will receive the keys that you need to save. This will contain Host, endpoint and KB keys which will be used when we create a Bot service.
Now let’s create an Azure Bot service:
In the Azure portal, search for Web App Bot and enter the required details:
Select the Bot template. Under that select Question and Answer template
Then you need to create an app Id and password and Create your Bot.
Now, connect your QnA maker knowledge base to Bot. Click on Application Settings under your Bot app.
Enter the keys that we got when we published the knowledge base here:
QnAAuthKey- Enter the Endpoint key
QnAEndPointHostname- Enter the Host name
QnAknowledgeBaseId- Enter the Knowledge Base key
Now we are done with the configuration. You can test the app in the portal itself:
You can integrate this to different channels like in your web app, Skype and many other platforms. Let’s see how to add this in a web app
You will have various channel options. Let’s select web app.
Clicking web app will give you the Embed code that you can use on your web app
Finally, after integration My app was:

Comments