Full transcript of “Build an AI Chatbot on your Custom Data 🔥”. Click a timestamp to open the video at that moment. Need another video? Use the YouTube transcript generator.
0:00 We have all used chat gpt but if I tell you to make a bot which works on your given knowledge base That means you have some data and you are trained on it, then how will you make it? Well, in today's video we are going to see about a platform like this which will help you to make chatbots very easily Then you can also put those chatbots on your website The best thing I found about this platform was that it is very easy to make a bot you can do something like you have given a website you can tell this bot that if there is any information in this website then I want the answer to my question and it will pull the answer to your question according to that knowledge base then we can also configure that if your bot does not get the answer then it will ask from chat gpt and finally you will get what you want.
0:46 We can add a lot of additional elements to it. We can add audio, we can add video. If you want to play an audio in English, then you can add this answer. Let's move to chat GPT. You will get to see such things there. We explore this chat bot. I will show you how to sign up. How to make a basic bot and then if you want to make an advanced bot on your knowledge base how will you make it let's go to the computer screen let's get started so guys as you can see I have come to my computer screen and I have given a link in the description by clicking on it you will reach here and botpress.com will open you can make a chatbot by using this let's say you have your own data, you have a knowledge base, you have a lot of data, you have proprietary data, you can't always give that data to chatgpt and ask the question answer,
1:34 I'll tell you why, let's talk about a website, ndtv.com, I will tell you about ndtv.com, if you have heard about NDTV, then you must know, if I have written here site NDTV.com, you are seeing how many results have come here, you will never want to give the data of so many web pages after storing it, you will not want to give it to chargeGPT, why you will not want to give, because if you give data like this, then it will take a lot of time, plus there are limits of chargeGPT, there are limits of your tokens, it will never take your data completely. So what you have to do is that you can train a bot on botpress, you can say that put NDTV.com in my knowledge base. And NDTV.com will be put in your knowledge base, then you can ask questions, if the answer to your question is not given, then you can configure your bot like this.
2:21 If the answer to the question is not there, ask chargegbd, chatgbd will tell you. So let's continue with Google, let's sign up. And the signup process is very straightforward, let's continue with Google. If you want, you can continue with GitHub, I will continue with GitHub too, okay. Just so that it becomes easy, and here I will authorize Botpress, you will be redirected to app.botpress.cloud, and these are all your bots which you can make by clicking, all the bots you will make will be shown here, but I will click on plus here and make a new bot and after clicking on plus, I will start editing my bot I will make the first bot and I will recommend you to make this bot Learn Botpress, with this you will get to learn botpress if you click on use template, then WordPress will teach you how to use WordPress.
3:08 So I have clicked on use template and finally I have come here, I also don't want to play with this bot, I will close it and if I want I can rename my bot, I will make a new bot. Now I can make a bot by using any template, so here I will on edit And after this, my other two templates will also be unlocked The first board you have to make You have to make this one, the one with the pod press You both will not be able to make this Because the pod press wants you to learn first and then make the board So I can start from scratch now By the way, they have a lot of templates available Like you want to make a messenger board I click on use template Like you want to make a messenger board Or let's say you want to make a bot related to Instagram, you can do all those things, but in this video I will tell you the basics and I will make a very useful bot for you, listen to the use case, what is the use case, the use case is that I have a website ndtv.com from which I read the news, you may read from someone else, there are many, there is Times of India, there is Republic Republic, and many more news channels.
4:06 If you want to see the basic news, you can go to a website. And once you go to that website, you have one option that you read all the news. Definitely, I am not telling you any replacement for that. Let's say I want to know how much money did the movie earn? I can't tell you the chat. Let us say I want to know that how much money has the movie earned. I can't tell you the chat gpt because it is news. So I have to ask NDTV in a way. I have to train on NDTV and I don't want to take so much hassle. Who will take so much time to train on NDTV chatbot by writing code. So now come to the botpress. What you do here is start and see here i am zooming you can scroll and zoom and pan like this now see here it is written this bot is empty please add knowledge in the default knowledge base
4:52 and cards in the node, so what i will do is delete this node and click on delete and confirm now there is a start point and an end point listen carefully, now right click on standard node add a new card after adding the card, I will choose raw input, so you guys write raw here and select raw input and you can see here that I have selected raw input so as soon as I have selected raw input I will say start then after that raw input will give the user, that means user will give any answer I will ask the user, what do you want what do you want to ask and after that i will give the output here so here i will start this bot here you can click on new conversation and i will ask
5:38 hey how are you i have asked a basic question it will not be able to answer what do you want to ask, I have Maybe here in the question, what do you want, I have done a little spacing wrong, let's fix it, now ask me what do you want to ask, I will say how are you, okay, and it will end after this, nothing happened, okay, in total, the thing is that the time is over, your bot has not done anything, so if you want your bot to do something then click on raw input and you can see this click on card and check enable knowledge answering this will enable you to add a knowledge base so i will add a knowledge base here for this i will click on default knowledge base and if you want you can add a new knowledge base so i will click on knowledge base and if you want you can add things in this default knowledge base
6:25 or you can make a new knowledge base by clicking on this book so you can create and delete knowledge base as much as you want I will use this default knowledge base only I will do one thing, I will make a new knowledge base I will keep it's name as Harry, ok this is the data given by Harry what all you can add in knowledge base you can add web pages, web search, you can add text documents so I can do one thing here, I go to documents, I will add a document, here I can drag any kind of PDF, HTML, TXT. I have a file called Jod.txt, I will show you what this file is, I will open it and show you, I will select it, in Jod.txt I have written, Jawans music was given by Harry's father who is a very nice person. His favorite fruit is watermelon. I have written a very random thing, okay. And I will close it and I will confirm it.
7:11 This document, jod.txt will be uploaded. Remember, Harry's father's favorite fruit is watermelon, okay. So I have written here. Then I will click on knowledge base. I can add text documents, documents, many things here, okay. So I can click on add base, I can add text document, documents I can add many things, so I will click on add document I can add anything here, or I can do one more thing I can delete this knowledge source I can disable it and delete it, disable means Temporarily if I want to disable it I will click on plus knowledge base and click on text document I can type here, Harry's best Friend is Rohan ok, let's say I wrote this after writing this what I will do is this data is my knowledge base now I will show you one thing
7:58 I will go to bot again I will start a new conversation and ask who is Harry's best friend? A very simple question from my knowledge base Let's see if he can answer it or not And here he told me that Harry's best friend is Rohan He also told me where he came from See 1 is written He said that in the rich text you gave me It is written that Harry's best friend is Rohan Okay, so we have done all these things Now what I am going to do is a very amazing thing. I will show you one thing, just to make you check that he is not able to tell this thing. If you write here How much did Jawan earn? I asked a very basic question that how much money did Jawan earn? Now, he will not be able to tell. He will say that no valid answer found.
8:44 The knowledge base you have given, related to this, so now what will he do, he will end it, but now I will show you that if I come to my knowledge base, which is hairy, add from url and here i will write https://www.ndtv.com and i have confirmed it and you can see here that it has been indexed, now see i have copied this news article and put it here, ok and it has been indexed, i will close it here and now you can see i will ask here that i will come to main and see here which question has been answered as a producer who is producer of jawan
9:31 so I wrote here who is producer of jawan and you guys see here that as soon as I write who is producer of jawan and it came here that producer of movie jawan is shahrukh khan you see here that he got knowledge from here so in this way you can add multiple pages you can see here, from here, from this one, he got the knowledge so in this way you can add multiple pages and all the pages he will parse like ndtv.com is very enormous, you can add specific pages and they will be parsed in your knowledge base, so if I add the whole domain, then he has parsed only a few pages which is shown here, it is not possible to parse all the pages because there are millions of pages but again, you can give the link of whatever you want and you can pass it and here you can add as many pages as you want if you have any information in pieces what I mean to say is that if you have any information in a document
10:18 you can hold your business documents and ask questions about your business and it will tell you how to analyze so assume you have any data related about your business, he will tell you how to analyze so assume you have some data related to your business, even if it is a small business or a small shop, ask him about it and ask him questions that how can I improve, which products should I sell, how can I expand my business sky is the limit, so this is what happened here, thing now suppose he didn't get any answer suppose i ask him how did planet earth came into existence i asked him he won't be able to answer because he doesn't have any knowledge see no valid answer found so if i want to tell chat gpt so what i will do
11:03 i will add a new standard node understand it step by step I will add a card and here I will write AI and AI generated text I have written AI generated text I will write another card and this AI generated text I will add a simple text I will add a simple text after this generated text So I will add a text here And after this what I will do is The input of this will come here I will link this card with this and I will link this card with this Okay from the end So it will come here Standard input will be found in the knowledge base first If not found in the knowledge base, then it will come here And this standard 2 both are red because I have to give prompt
11:48 now see when raw input is here understand my point carefully when raw input is here whatever user will input you can store it in a variable so I will store it in a variable I will name it as Harry input and I will create this variable this is saved in Harry input now I will create this variable this is saved in Harry input now I will say that my AI generated text will take Harry input as an input and what will output do I will say that the output will be named as Harry output ok I have created a variable so it will save the output in Harry output and this text which is message to send, which the bot will say what will that be? Harry output, so I have selected Harry output and that's it, now let's see, I will ask him how did planet earth came into existence
12:39 let's start a new conversation and ask him the same question so I asked him this question, first of all he will search in knowledge base and in fact he won't get it in knowledge base and after this as soon as he won't get it in knowledge base he will move ahead and in AI generated text he will go to the Harry input so i guess i have just started first i should start the conversation with a hi after that we can ask him this kind of questions I guess I have just started First I should start the conversation with a hi After that we can ask questions like this Now AI task is run and you can see that AI will tell us about it Let's wait And see this Origin of planet earth is a fascinating subject that has intrigued scientists and philosophers for centuries It has told me the whole thing Means AI is also connected to it
13:26 so here he told me the summary that this is how your work is done so i will auto close it and you can ask any number of questions and your work will be done now listen to me carefully what is the problem in this bot, it is a very good bot there is no problem, if i want i can also put an audio here suppose i want to play a music or i record an audio and upload it here, infact i will do one thing i will add a card, here audio and in audio i will drag an audio file, it will be named AI AI, initializing AI let's ask AI, initializing AI, let's ask AI, ok text to mp3 on youtube, sorry on google, may be i will get a tool
14:11 in which i can write let's ask AI, may be i will get its mp3 can i download it as an mp3, yes i can now what i will do is, i will drag it here, you see how i will drag it it will be uploaded mp3 and let's ask AI and now let's see if I ask anything, let's say I ask him How did planet earth came into existence? Will he play or not? We will see now, okay? So he doesn't know the answer to this question, okay? He said what do you want to ask? I started the conversation Then what do you want to ask, I started the conversation then what do you want to ask, it said how did planet earth came into existence no, it didn't see this, let's ask AI so if I had kept this earlier, let's ask AI would have been played earlier so I can send this kind of audio
14:59 I can send audio here which is a very good feature so you can do this kind of work with the help of botpress Now the problem I told you that there is a problem with this bot And we will solve it and that is When there is something in my knowledge base, like I ask Who is Jawan's producer So he will also ask this from AI, that is once I have actually started my conversation, I should write high And when he asks what do you want to ask, then I should write. So, you see, who is Jawan's producer, if I write, so he told me that Audley is the producer of movie Jawan, and where did he pick it from, he picked it from here, and let's ask AI, and Jawan's producer is Dilrau, this is what AI told me so I don't want AI to tell me, I don't want this
15:46 I want in fact that I will delete this link I will say that if my knowledge base can't tell me then AI should tell me, you understand? there is a difference so I will make a new standard note here, I will add card and I will write expression here and I will remove always from this expression okay, I don't want to keep it always true and i will write expression here and i will remove always from this expression i don't want to keep always true i will delete this and i will write turn, turn is an object and i will write here .knowledge agent .responded, it means that did the knowledge agent respond or not if it didn't, I have put a note that if not, then what to do then come here, then come here
16:31 otherwise what to do, otherwise end it so you see here that it will go on this card and it is written here because it is not connected to another node ok so here we will connect this to end, let me cut this, actually there are two things, one is that with whom you want to connect this and then if it is not resolved then what you want to do, okay, so let me zoom out this, I will zoom out slowly and I will connect this thing from here, okay, now you see, now I will start the conversation again, I will say hi, first I will write hi and then I will write how did planet earth came into existence, now AI will tell you but if I ask who is Jawan's producer, okay, and
17:20 I will enter and actually Jawan's producer is both Otli and SRK. So, sometimes Otli is telling and sometimes SRK is telling. So, don't get confused. Therefore, I don't have... So, you can see Otli is the director of movie Jawan. Praise Charu Khan is a serious producer. However, there is no specific mention. So, it told me that the answer came from knowledge base. And this time, AI has no role. But AI did nothing. Which is a sign that this card is working for us now if I ask him about planet earth, how did planet earth came into existence suppose I ask him and this conversation started and what do you want to ask now I will say how did planet earth came into existence and now you see now he is going to AI, no you will see now it is going to AI
18:06 no valid answer found and you can use many more cards you can make a complex bot but this is a very basic one you can train it on your knowledge base you can use it for free which is the best thing about wordpress you have to try it out and wordpress you should try it out and as soon as you try it out you will know about its powers and their documentation is very good as i told you i was able to read the documentation for an hour, less than an hour in fact i read it in few minutes, enjoyed the documentation and after that i was able to do all this if you want to use this in detail you should be able to read the documentation or wordpress docs and you can see here
18:52 that you can read the documentation of wordpress and you can use this bot very well now I will publish this and tell you about the bot, I will click on publish so that I can publish this bot and it is publishing let's wait waiting for it to publish and here it is published successfully now I will click on share I can share my bot and you can see my bot is here vr powered by botpress I will write here hey and I wrote here Now it looks like a real chatbot And it is thinking And finally it is asking Who is the director of Jawan?
19:42 I asked him who is the director of Jawan movie and because I have given him this webpage, he knows who is the director the director of movie Jawan is Otli, wow amazing now I ask him how did planet earth came into existence let's wait for its answer What do you want to ask? It started again because we had ended it, so I will ask it again How did planet earth came into existence? and after this you will see that it will tell you that this is how planet earth came into existence and this audio Let's ask AI so this way you can
20:28 make your own bot and publish it and give it to your users so that they can use it you can embed this bot on any website so that on your existing website these bots can chat with users I hope you enjoyed making this AI chatbot and you can explore other things on it now a question you might have is that why are you ending the conversation I can keep it here again without ending it and if there is any specific thing that I feel that the user's query has been answered then I will end it but you explore all these things, I am ending the conversation after a question so that should actually not concern you and make such good bots like this and if you make a good bot, let me know in the description I would love to interact with your bot Thank you so much for watching guys!