Tesing On PostMan:
You can skip this part if you think that you are getting expected response on
QNA portal
Tesing On Emulator:
Note: Once you are done up to this point as expected you are ready to deploy your bot on azure.
Bot Web App Service on Azure:
Note: Copy the
URL
which has been marked red. It should be likehttps://YourBotServiceName.azurewebsites.net
Publish Your Bot From visual Stuido:
Note: The app service you have created earlier you should get that service on
app service instance
menu item like below. Select your app service and click onFinish
Azure Bot:
Now you need to register your azure bot
under azure bot registration pannel. Like below:
Steps: 1 Go To Azure Portal Create a resource Blade
Steps: 2 Type Azure Bot
Click on Create
then fill-up the form as below: And click on Review Create
then click on Create
. Wait until the deployment finish.
Note: You can get appId
and App Secret
by creating App Registration
Azure Active Directory
as below:
Steps: 3 Once the deployment finished, click on go to resource
it would lead you to below page.
Note: Point to remember, the document you were following it seems that you didn't follow this steps. Becasue recently azure bot has a update which is
Azure Web App Bot is deprecated
but the document you were follwing is little older. So you propably missed this very important steps.
Configure Azure Bot Service URL:
This is the steps you missed on your bot which is very important to interact with your
web app service
andAzure Bot
other than bot cannot recognize the interaction between web app service toBot
So now click on
configuration
undersettings
menu theURL
you have copied earlier from yourBot web app service
like belowpaste here it should be like this format
https://YourAppService.azurewebsites.net/api/messages
Should be like below:
Final Test On Azure Web Chat:
Note:
If you are still having issue then go to channels on your Bot and check if you are getting any error like this. In that case check your azure active directoryapp Id
, andapp secrect
is correct.In addition if you need official QNA sample you can
download from here
Hope it would guided you accordingly
CodePudding user response:
To get you started you might also try this approach:
- Create a new QnAMaker Knowledge base with at least one question and answer pair.
- Train the KB and Publish it.
- After you published the KB, you will see a button labelled Create Bot
- Click this button, it will create a web app bot. You will be able to select the language you prefer
- Open the web app bot and use Test in Webchat to test it.
After these steps you will have a working chatbot running on Azure. After that you can download the sourcecode and add the stuff you need.
Remark: Web app bots are officially depreciated but this shortcut is still working. And existing web app bots will be supported.