QnA maker And Dialogflow Knowledge Base - azure

I have QnA Maker and Dialogflow knowledge base. I am trying to develop a faq bot. I need to know which is better to use the Dialogflow knowledge base or QnA Maker. Can some one tell me which is better?

Those two options are highly acceptable. As QnA is some easier method. While we need to accept in some cases like even QnA maker is created with Knowledge base. The best solution can be using Knowledge base to create FAQ bot.
Refer the links to create knowledge base and FAQ bot.
To create knowledge base, refer the below link
https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/quickstarts/create-publish-knowledge-base
To create Bot, using the below link. But need to complete the procedure of link 1
https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/tutorials/create-faq-bot-with-azure-bot-service

Related

QnA Maker "Context Only" not working in live Bot or Emulator

I'm developing an Azure Bot using Bot Framework Composer.
I've got my QnA knowledgebase set-up with a number of Context-Only questions.
These questions work perfectly when testing in the QnA portal.
I've tested with both my original QnA knowledge base & also the Bot generated knowledge bases.
However when testing via emulator, or working with the Bot in a live environment it bypasses the Context-Only element entirely.
I need the Context-Only elements to work as we have a number of identical departments in different locations - so the same question will require a different answer depending on where our users are based.
Not sure what more info to provide, but if anyone has any insight I'd gratefully welcome it.
I reproduced the thread and tested it in QnA emulator and web chat. In both cases it worked for and got a response from the bot.
Go to https://language.azure.com/
Choose the Custom question answering
Choose Custom question answering
Click on “Open custom question answering”
Click on “Create new project”
Click on “Edit knowledge base”
Click on Add questions pair
Tested in Studio. Worked well
Click on “Deploy knowledge base”
Click on create a bot.
Create a bot
Go to “Test in web chat”. Test there. It worked for me.
We can create synonyms as the context-based elements. When we have context-based, the model can be trained for short form questions, instead of complete pattern of the question.
Managed to resolve this by adding my Bot to Bot Emulator, and adding the QnA knowledgebase as a service.
This allowed me to trace the QnA pairs, publish & train within emulator & drive the questions down the correct Context-Only route.

Power Virtual Agents Automatically suggest a solution before connecting to a live agent

I was looking for a basic ability for bot to learn from the questions and answers the agents provide that can be used as suggestion the chatbot replies to users before it connects them to live agent. I looked up QnA maker does similar stuff and can I be able to integrate it over here?
Go to https://language.cognitive.azure.com/
Click on Create
Choose Custom Question Answering
After creating, go to that project
Click on Edit Knowledge Base and create question and answer pairs.
After creating the Knowledge base, go to deploy the knowledge base
Click on Deploy
Create a bot and attach the existing knowledge base to bot before going to the Live Chat

Azure bot Languages

I have a hard time understanding how I create a bot in a language other than English. Following the documentation here, I'm just supposed to select the language in creating a new BOT, but I do not have such an option.
I'm probably missing something.
The final goal - to create a Hebrew-speaking IVR for dynamics 365 omnichannel voice.
The Select the language you want to use in step 2 is referring to programming language. You're being asked to choose between C# and Node in the selector above the list of templates.
The instructions for how to create a multilingual bot are further down in that document. You just haven't gotten far enough in the document yet. After following the steps for building a basic bot, the document then shows you how to update language settings, and from there you can follow the rest of the document to add support for your language.
The Composer application itself will only display in English, but you can author bot responses in other languages.

To use Azure LUIS with voice do i need to get the text first?

I think the title explains my doubt.
I've tried before the Speech to Text feature from Azure.
The question is:
Is there a way to use the sound binary to Azure LUIS instead of the text?
Yes, LUIS can accept speech input instead of text. LUIS provides this tutorial on how to setup speech services. The tutorial is in C#, however it appears their GitHub repo has samples in other languages, if of use.
Hope of help!
if you are creating a speech bot, here is a new approach.
so it leverages azure speech (TTS and SR), integrate with bot service in a more easy way
https://learn.microsoft.com/en-us/azure/bot-service/directline-speech-bot?view=azure-bot-service-4.0

how to write own logic without using qnamaker

I am still trying to understand Chatbots. Currently i have already made chatbot which is integrated in skype. I have Sharepoint online where user search for FAQ. If they dont find then they ask BOT which sends request to LUIS and Qnamaker.
Qnamaker then sends response back by looking it into its database. I upload FAQ from sharepoint to Qnamaker using sharepoint workflows. But i want to write my own logic and get rid of Qnamaker.
What are ways to do it? Any good tutorials? I also wanted to know how the flow happens. For example if we dont use Qnamaker then we fire queries in sharepoint based on what user asked? I dont understand how i can fire queries in sharepoint if user makes typo then we will not get anything from sharepoint. So any tips on how to implement this without using qnamaker is highly appreciated?
The FAQ bot generator is a subset of the main Microsoft bot framework. You should do some research on the Microsoft Bot Framework. The link above takes you right to the documentation overview of the bot framework and from there you can get into developing one. They have links to a few sample projects as well as a large number of code snippets within some of the article explanations. It has a full setup guide that will walk you through the initial setup so it should be easy to get a basic echo bot running, but if you are not a programmer you should stick to the FAQ generator.
I suggest you use either node.js or c# to develop the bot since these are directly supported by the framework. I am personally using c# to build my bot from the ground up. The purpose of mine is to be used within a customer facing android/ios app that will help with questions, checking the status of different things, and even paying bills.
Just remember you will need to manually set up your cloud hosting. I host mine in azure alongside a web interface I built for it (you can build the website inside your bot if you are using c#, just replace the default.htm file in the web.config with the main page of the interface).

Resources