Introduction
Hi guys, let's explore a way of creating a health care Covid-19 FAQs BoT (after Creating it's Knowledge Base KB) using an Assessment Template provided in the Azure Portal.
Try to get familiar with the major high-level steps to create a BoT by checking my previous Blog.
Now let's get into the process of Building the FAQs BoT. Here is a simple diagrammatical understanding of the Overall Architecture involved in this process.
**Follow this:- https://docs.microsoft.com/en-in/learn/modules/build-a-faq-chat-bot-with-qna-maker-and-azure-bot-service/1-introduction (For a clear overview)
QnAMaker + KB Creation
Log onto Qnamaker.ai
Click on Learn more to create a new KB following this https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/Quickstarts/create-publish-knowledge-base
Click Create a Knowledge base
Click Create a QnAService leads to https://portal.azure.com/#create/Microsoft.CognitiveServicesQnAMaker
Just start filling the relevant details.
****Let's use some latest trending news, say Corona. It’s can be related to content on creating a health care BoTs using the information from the below links:
- https://www.cdc.gov/coronavirus/2019-nCoV/lab/index.html
- https://www.cdc.gov/coronavirus/2019-ncov/faq.html
- https://www.who.int/news-room/q-a-detail/q-a-coronaviruses
- https://hastoragedevops.blob.core.windows.net/public/official.tsv
**Don’t forget to fill any more mandate fields if required.
Add more QnA pairs of your own if required as a part of Customized QnA pairs >> Add alternative suitable Questions to the Questions available >> View Options >> Select Show Metadata >> Select View 10/50 per page
Check Settings for More Options like Manage, Export, Import, Share the KB, etc.
Now Connect your QnA Service to your KB >> Name your KB >> Populate your KB >> Add the above URLs >> Select Professional option for the BoT Chat Type >> Submit
All you need is the QnAMaker service and knowledgebase created. This provides you with a RESTful endpoint to get connect to your application or to integrate with a bot framework as mentioned above.
Note
QnAMaker service, Azure search, Azure App service, and Application Insights are all part of Azure and we need to have the subscription ready.
FAQ BoT Creation
Log on to portal.office.com with your Admin details.
Similarly, sign into portal.azure.com
Go to the Search bar and type- Healthcare bot >> Select Microsoft Healthcare Bot
Just start filling the details and click on Subscribe.
It navigates to the screen where you can select suitable templates available under the Healthcare BoT section.
Click Configure Account >> Create
It will redirect you to https://us.healthbot.microsoft.com/account/covid-19faqs-tedwm6j/scenarios/manage >> Select Template COVID-19 FAQs >> Integration >> Secrets >> Keep a note of them for final deployment after all Integrations, Customizations, Tunings, Testings, etc.
Alternate Method for Reaching Your FAQ BoT
Go to https://admin.healthbot.microsoft.com/
Click on the Hyperlinked Display name of the bot.
It will redirect you to https://us.healthbot.microsoft.com/account/covid-19faqs-tedwm6j/scenarios/manage
Select FAQs Template
Enter the QnAService Key saved previously
Click Import Template, it automatically takes it. Once successful >> Start chatting >> You will get related answers from the above created KB as shown
Switch to Code/Design View as per your further Customization Enhancements.
Click the Save option once finished with all your Testings (Using the Run option)
Go back to https://us.healthbot.microsoft.com/account/covid-19faqs-tedwm6j/scenarios/manage
Get the BoT ID for MS Teams
Go to Teams and search for your BoT based channel by using New Channel option and entering the MS Teams BoT ID.
You can try adding more Files by clicking Resources(Related Images) >> Files >> + New >> Browse >> Create (Only one file can be added at a time)
Go to Users >> Manage >> + New >> Select permissions drop down choice options >> Create (1 User at a time)
Go to portal.azure.com
Once you get notified from the Bell icon that above process is completed, go to App Catalog site:- https://<TenantName>.sharepoint.com/sites/appcatalog/AppCatalog/Forms/AllItems.aspx
Steps After Completing Changes to Your SPFx Solution (Use Direct Line details)
Go through my previous Blog[https://www.c-sharpcorner.com/blogs/covid19-assessment-bot-development-and-deployment] and check
out Deploying and Adding COVID-19 Microsoft BoT as an extension in SharePoint Online site section to follow the same steps for SPFx Extension implementation on a Modern SharePoint Site Page.
Additional Commands for any further Customizations
Gulp clean
Gulp bundle --ship
gulp package-solution –ship
Gulp Serve
Upload in the AppCatalog Portal and check for any errors. Troubleshoot them on any Errors.
Add the app in your site coll
Start Testing on the Developed BoT
Do more Customizations using the Design/Code view for final Touch up
Click Save once finished with all updating
Check for your BoT here:- https://admin.healthbot.microsoft.com/
Assign Permissions using Share Options
Go to Channels and get the BoT IDs or Secret Keys for various Publishing options at various locations.
Happy Covid-19 FAQs BOT Development, Deployment & Usage in your organization with the above simple process. Cheers!