How to make a bot with QnA Marker on Azure and let it speak through Cortana:
Step1. Create a bot service on azure.
Step2. Select the Basic template
Step3. Open Project.json and make sure Microsoft.Bot.Builder.Azure is higher than 3.2.2
{
"frameworks": {
"net46":{
"dependencies": {
"Microsoft.Bot.Builder.Azure": "3.2.2"
}
}
}
}
Step4. Open EchoDialog.csx
Step5. Override StartAsync to:
Step6. Override MessageReceivedAsync to process incoming messages and get answer from QnA Maker
Step7. Add the following code to get answer from QnA Marker
Step1. Create a bot service on azure.
Step2. Select the Basic template
Step3. Open Project.json and make sure Microsoft.Bot.Builder.Azure is higher than 3.2.2
{
"frameworks": {
"net46":{
"dependencies": {
"Microsoft.Bot.Builder.Azure": "3.2.2"
}
}
}
}
Step4. Open EchoDialog.csx
Step5. Override StartAsync to:
Step6. Override MessageReceivedAsync to process incoming messages and get answer from QnA Maker
Step7. Add the following code to get answer from QnA Marker
留言
張貼留言