QnA Maker Bot | Microsoft Bot Framework tutorial
Вставка
- Опубліковано 11 чер 2024
- Join us in this tutorial as we create a QnA Maker bot, leveraging Knowledge Base and the Azure Qna Maker Bot service with the Microsoft Bot Framework.
These technologies are the building blocks of artificial intelligence and are lots of fun to work with!
Tutorial links & downloads:
msbot
github.com/Microsoft/botbuild...
Azure CLI
docs.microsoft.com/en-us/cli/...
ngrok
github.com/Microsoft/BotFrame...
ngrok.com/
BotBuilder Samples Repository
github.com/Microsoft/BotBuild...
Completed bot code:
github.com/jspruance/qna-bot-... - Наука та технологія
These videos are simply outstanding.
Hey guy thanks for a great tutorial i got caught up on msbot i found was depricated but i still followed though and everything is fun very thrilled to do this easy to follow as you are good for role leading reminds me of dosdude 1 he is good at explaining imacs. Thanks :)
Finally it worked. thank you so much.
Please, come back with the tuto for the Luis Integration !
Hey dude, will you release your next video which you mentioned integration of LUIS? because you do really good job and many need your tutorials, thanks you a lot :)
Great video - Windows key + plus key for magnifier zoom in or download zoom it to zoom in on the screen
Awesome video, i did my first chatbot using this! But MS has released the new SDK v4 and that changes a few things, there is no .bot file anymore, so there are some code changes needed. But this is an excellent place to start. Really loved the pace and attention to detail, am looking forward to more videos from you! LUIS, nodejs and more..
Hey, a lot has changed from this tutorial. Can you send me a link to a more updated tutorial? Thanks!
Hi @@davenathaniel787 I just updated the code a little bit using this - docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-add-qna?view=azure-bot-service-4.0&tabs=javascript
yes, a lot has changed...I'm working on an updated tutorial for 4.5 / 4.6. trying to finish it in the next week...stay tuned!
Really good effort. Thank you
thanks Anu, appreciate it!
Add the video for the LUIS integration !! All your videos are really great .
Very nice, thank you
Hey @Cloud Path I think the reason you had rhe "Oops something wen't wrong" response at 43:17 was because at 34:52 you put your default string inside of a the TurnContex("answer") instead of a turnContext.sendActivity("answer"). Is that it?
can you please let me know where to find the luis integration of knowledge base
good one
i see that the latest version(2020) of Index.js is different from the video(2019). can you please make a new latest video with update code
thanks for this video
It would be really helpfull if u could make a video for Luis integration..... :)
HelloTeam,
I created the knowledge base and webapp bot service with bot template as basic bot.But I am not able to connect the bot with my knowledge base. As there are no fields under application configuration where I can provide the QNA hostname and id and Knowledgebase Id.Can you please suggest how to establish the connection through the portal without doing it locally.
The azure bot service is same as MicrosoftBot framework SDK..?? Can you please explain. am little confused. And without azure cant we develop a bot..? so that it runs locally? and also now v4 has released right so may I know the changes.
Thanks
Is this video still usable? There is so much that is different and I couldn't create a .bot file.
Hello, this is working locally right? how we can switch it on the cloud?
Good stuffs 👍 My bot is a mixture of luis+qnamaker(multiple KBs, same qns but different answers). But I can't figure out how to keep the context of the conversation. I'm trying to use the metadata filtering method. Will be good if u have a tutorial on that. Thanks!
i'm planning to do a video showing how to build a LUIS bot soon...stay tuned
@@BlockExplorerMedia We keep waiting for :((((
Hey at 2:34 should we install git to open that terminal?
Hi my friend. Any news for the newest version ? Sorry, there are no .bot file available. See you soon ? Thanks !
How do you authenticate and then continue chatting only if authorized?
Hi , I have followed all the steps, I don't have the .bot file created. What do I do (18:29)
Any update on this tutorial for the new ways on creating the .env file for bot?
hi. Everything has been going well in the tutorial video but i am now stuck because i cannot find the .bot file at 18:25. Please help
the new bot framework doesn't create the .bot file. Instead use docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-add-qna?view=azure-bot-service-4.0&tabs=javascript to know how to integrate QnA with new settings.
18:24 my .bot file has not been created. any solution for this
Hi. Firstly, many thanks for this very helpful and well produced tutorial. Like the other comments, I'm experiencing difficulty working with the new architecture and the .env file. I followed your instructions right up to creating a new bot. Then instead of editing the .bot file (which is deprecated), I followed the instructions from docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-add-qna?view=azure-bot-service-4.0&tabs=javascript. However, upon testing the bot I repeatedly get the "The bot encountered an error or bug. To continue to run this bot, please fix the bot source code." error message. Your tutorial is the closest, most informative one I've come across to date and I wonder if you might be at all able to provide some insight here please? I appreciate that this is not at all your responsibility and completely understand if you're unable to help right now. Thanks again.
Takes a little grit. I got it to work, just look at the code snippets and work through some of the errors you get. The solution is easier than you think.
can you come back with a video with integration of more then one costum action .thanks
if i make a chatbot with microsoft bot framework then azure provide free service or it is paid??
because this chatbot integrated in my website soo please help.
it's not free unfortunately - here's some pricing info:
azure.microsoft.com/en-us/pricing/details/bot-service/
Hey , thanks for the video, can you advise on steps as .bot file is no longer there...Thx
everything that was previously in the bot file should now be in an '.env' file. updated tutorial coming soon.
Here is what I did that seems to work. Open a command prompt then navigate to the folder where you have your bot. In that folder run "npm install dotenv" This will create the .env file in that folder. Also - Thanks for the awesome tutorials!!! Really good stuff.
@@BlockExplorerMedia is an updated tutorial done.
@@adityaghosh8601 Do you have the same issue of .bot file?
@@mrudulchoksi6344 template has changed so there was issue.
Hello, Thanks for your video. I am using Mac and (npm install -g msbot) is not working. Secondly, I downloaded the Bot emulator but how to link this with the azure? Thanks.
run it with sudo command sudo nom install -g msbot
That was really awesome as a brief description @cloud path, I encounter a couple issues one of them is 23:07 i am not able to input nmp i botbuilder-ai as it says nmp command not found, although i have prerequisite tools node.js etc
Can you help
its "npm" and not nmp
@@jahnavireddy1018 Ya Ma'am it was mere a spelling i figured it out but still not able to run it if you help anyways , I am a noobe in coding domain. Encountering following issues 1)internal/modules/cjs/loader.js:797
throw err;
2): Cannot find module 'botframework-config'
3)Require stack:
- C:\projects\qnabot\index.js
I tried resolving them but got in a lil more trouble, If you can guide/help a bit
Yea same. Even I have issues running it.
@@mihirmehta6736 even I am figuring out how to work it out. If I get I'll tell you surely
try 'npm install' from the root level of the bot folder. verify it succeeded (no errors), then 'npm run start' also from the root.
Can we deploy this qnamaker onto a website?
hi Jahnavi, yes you can deploy the qna maker bot to a website. I believe this is what you want:
docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-webchat?view=azure-bot-service-4.0
I am currently making more Bot Framework videos for the newest 4.5/4.6 versions - stay tuned!
My folder does not have a .bot file, anyone else has this issue?
create a file with the same projectname.bot
very good, thanks, looks like the .bot file has already been deprecated
yes it has been deprecated. i will probably do another updated bot tutorial for the 4.5 (or 4.6) release. the SDK is changing fast!
until then, you can checkout the botbuilder samples repo - the samples have been updated recently to reflect the latest best practices:
github.com/microsoft/BotBuilder-Samples/tree/master/samples/javascript_nodejs
Hi!
Where to add knowledge base information like endpoint and kbid 'cause ".bot" file is deprecated and not to be seen in latest bot creations using yeoman.
cant find .bot file
hi Surendar. the '.bot' file has recently been deprecated. the new recommendation is to use a '.env' file to store secrets and keys for you bot. i hope to release an updated video soon, this framework changes fast!
@@BlockExplorerMedia many thanks for your response.
@@BlockExplorerMedia here are what i found for this configure (refer to this link docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-qna?view=azure-bot-service-4.0&tabs=js ):
QnAKnowledgebaseId=""
QnAAuthKey=""
QnAEndpointHostName=""
@@BlockExplorerMedia are you planning on creating an updated version? The tutorial is great, however the code is deprecated and would love to see how you handle the new ways. Thanks in advance.
Hey man, I myself am a developer. Would you like to collab?
hi Arpit. well my hands are pretty full just trying to create videos for this channel but I'm always open to new ideas. you can find my contact info in the about section - feel free to let me know what you have in mind. thanks for your support!
@@BlockExplorerMedia Hey thanks for replying. I went to the about page but can't find an email or something to directly message you. I found you through Reddit so I messaged you over there. Can you reply me over there? If not, let me know your email. Thanks.
To migrate from .bot file to .env do the following -> docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-add-qna?view=azure-bot-service-4.0&tabs=javascript
lets say the information we get from creating our knowledge base is :
POST /knowledgebases/< QnAKnowledgebaseId >/generateAnswer
Host: < QnAEndpointHostName >
Authorization: EndpointKey < QnAAuthKey >
Content-Type: application/json
{"question":""}
UPDATE your .env file as :
MicrosoftAppId=""
MicrosoftAppPassword=""
ScmType=None
QnAKnowledgebaseId="< QnAKnowledgebaseId HERE>"
QnAAuthKey="< QnAAuthKey HERE>"
QnAEndpointHostName="< QnAEndpointHostName HERE>"
That's why I hate Microsoft dev tools. Just to answer some predefined questions you have to spend most of the time during configurations. Microsoft dev sucks!!!
Any update on this tutorial for the new ways on creating the .env file for bot?
hey Jerome, sorry but I'm probably not coming back to this subject anytime soon. i was working on the MS Bot Framework at the time but I left 2 years ago so I'm pretty far behind with what's changed since then. they should have some decent tutorials and sample code on the BF site though. good luck!