[0:00] in this video I'm going to take you [0:01] through creating your own custom [0:03] knowledge AI chatbot in 5 to 10 minutes [0:06] that's trained on your own data using a [0:09] platform known as Co now complete [0:13] transparency this video is sponsored by [0:15] Co however it is a completely free [0:18] platform that runs on top of GPT 4 now [0:21] if you wanted to use GPT 4 through open [0:24] ai's website you'd have to pay like 20 [0:26] bucks a month but here on Co you get to [0:28] use it for free on top of all the [0:31] additional chatbot Integrations that [0:34] this platform provides now I've been [0:36] using this platform for a couple weeks [0:38] at this point and I think it is super [0:40] cool and I know a lot of you guys are [0:42] trying to learn Ai and one of the best [0:44] ways to learn AI is to sort of get your [0:47] hands dirty and start building stuff now [0:51] with Coes it's super easy to start [0:53] building with AI even if you have no [0:56] coding experience so I've had this idea [0:59] for a while now about making a chatbot [1:02] that uses my own content you know my [1:05] YouTube video scripts my ebook my [1:07] courses so that users can interact with [1:10] this chatbot to get advice based around [1:13] the content that I've made and the [1:16] things that I've said and aside from my [1:17] own knowledge chatbot I know a lot of [1:20] people or a lot of companies even could [1:23] benefit by creating their own chatbot [1:25] from their own data sources so with that [1:28] being said let's go ahead and dive into [1:30] creating this chatbot so head on over to [1:34] co.com and once you create an account [1:38] click the create bot button here in the [1:40] top left of the screen select your [1:43] personal workspace give the bot a name [1:46] so I'll name this uh coding with Kenny [1:50] we'll give the bot a brief description [1:52] so I'll just say a knowledge bot trained [1:57] on Kenny Gunman's [2:00] content then we can upload a profile [2:02] picture or we can use this handy [2:05] generate AI button right here to [2:07] generate an icon for our bot so this [2:10] will take a second to [2:12] load once that's done we'll click [2:16] confirm and then from here we'll be [2:18] taken to our bot dashboard where we can [2:21] now create our bot so the very first [2:24] thing that we should do is design the [2:27] Persona or I guess prompt engineer the [2:29] bot so it behaves the way that we want [2:32] it to for example I want this bot to [2:36] give the user coding advice from the [2:38] knowledge that I upload which we'll do [2:41] here in a second and recommended content [2:44] from my YouTube channel so I could write [2:47] something in the Persona here like [2:49] you're a coding bot designed to [2:53] recommend coding resources and YouTube [2:57] videos from Kenny [3:00] G's YouTube [3:03] channel you're able to help Rec [3:09] recommend resources based on an [3:13] individual's skill level so I would say [3:17] this is a good start for our Bots [3:20] persona but then I could go ahead and [3:22] use CO's optimize feature right here [3:26] click this [3:27] button this will take a minute or so to [3:33] run and as you see Co went ahead and [3:36] took our initial prompt and made it into [3:39] something that is much more optimized it [3:42] created a character for our bot which is [3:44] denoted by this character hashtag here [3:47] it equipped it with all of these [3:49] different skill sets such as diagnosing [3:51] the user's coding skill level [3:54] recommending coding resources and then [3:56] recommending YouTube videos from my [3:59] YouTu YouTube channel right here so I'll [4:02] hit use to go ahead and use this [4:04] generated data now I already created a [4:08] Persona and prompt section for this bot [4:11] that works very well for my use case [4:14] right here so I'm going to go ahead and [4:16] copy and paste it in like this now the [4:19] next thing that we need to do is upload [4:21] our knowledge so right now this bot [4:24] isn't trained on anything and it's [4:26] strictly the gp4 model so if I ask it [4:29] some sort of question it will give me a [4:31] generic AI response for example if I [4:34] asked it something like what are some [4:37] tips for [4:39] selftaught programmers it'll take a [4:41] second and then it's going to go ahead [4:43] and give me this pretty generic response [4:47] of mastering the basics practicing [4:49] regularly work on real world projects so [4:52] let's go ahead and upload my own data [4:54] just to see how much this response [4:56] changes so I have over a 100 pages of [5:00] PDF data from all the content that I've [5:03] created over the years for example [5:05] inside of learning material here I have [5:08] this 19-page ebook that I created titled [5:11] 02 full-time programmer in five steps [5:15] inside of YouTube video scripts here I [5:18] have 10 YouTube video scripts that I've [5:21] downloaded and I've turned into PDF [5:24] documents so I'm going to go ahead and [5:25] upload all of these documents directly [5:27] into Coes and integrate them into my bot [5:31] so I can do that by going back to the [5:33] Coes dashboard clicking this plus button [5:36] under the knowledge section now I've [5:39] already uploaded these documents as you [5:41] see right here while I was testing this [5:44] bot but let me go ahead and show you how [5:46] you can add your own documents so what [5:48] you want to do is click this create [5:51] knowledge button right here create a [5:53] name for your knowledge source so I'll [5:56] name this one YouTube vid Scripts add a [6:00] description if you want click the [6:01] confirm button now this is where you [6:03] will upload your knowledge AKA your [6:06] documents and you do that by clicking [6:08] this add unit button right here now I'll [6:11] personally be using PDF document but as [6:13] you can see you can use virtually any [6:16] type of document you want you can use [6:17] text documents you can use Microsoft [6:19] Word documents you can even connect [6:22] right to your Google doc drive you can [6:24] connect to notion or you could even [6:27] scrape data from web pages but because [6:29] I'm using local PDF documents on my [6:32] machine I'll go ahead and click local [6:35] documents click next and then alls I [6:38] need to do is drag and drop the [6:41] documents that I have right here so I go [6:44] into YouTube video scripts I'll select [6:46] all of these and I will drag them [6:49] straight into codes like this they [6:51] should upload pretty quickly from here [6:54] I'll click the next button now this is [6:56] where you can let codes automatically [6:58] parse through your document or you can [7:00] set up custom rules for parsing yourself [7:04] I think Co does a great job doing this [7:06] automatically so I'll go ahead and leave [7:08] automatic selected I'll click next and [7:11] then we simply just wait it should only [7:14] take a minute or so and once that is [7:16] done we'll click the confirm button and [7:19] after that simply go back to knowledge [7:21] and upload all of the other data sources [7:24] that you have from here we will simply [7:26] go back to our bot dashboard so this [7:29] coding with kennybot right here click [7:32] the plus button under the knowledge [7:34] section We'll add our YouTube vid script [7:38] knowledge data source that we just [7:39] uploaded we'll also add newsletters and [7:42] then learning material here we'll close [7:44] out of that and just like that we've [7:47] created a knowledge bot that is ran on [7:49] top of gp4 with our own custom data and [7:53] just to show you that this is working [7:56] let's go ahead and ask the coot the same [7:58] question of [7:59] what are some tips for self toop [8:01] programmers so I'm going to go ahead and [8:03] copy this with contrl C I'll paste it in [8:06] right here I'll ask the bot again what [8:08] are some tips for self-taught [8:10] programmers and as you see it is [8:12] searching through our [8:13] knowledge and providing us with a [8:16] completely different answer than the [8:18] first time so let's look through this [8:21] response here now these things are [8:24] things that I've said many times before [8:26] in YouTube videos which makes sense [8:28] because I uploaded my YouTube video [8:30] scripts directly to the knowledge [8:32] section of this bot and just to prove [8:35] this to you let me see if I can find the [8:37] video where I said self-learning isn't [8:40] the easier route all right so I said it [8:42] right here in this video self toop [8:45] programmers listen up and as you see in [8:47] this chapter I say selftaught isn't the [8:50] easier option we'll go ahead and play a [8:52] few seconds of this clip you need to [8:54] understand that being selftaught isn't [8:56] the easier route by any means I think a [8:58] lot of people there you go directly from [9:01] one of my YouTube video scripts so that [9:03] my friend is how you can very easily [9:06] create a knowledge bot that is trained [9:08] on your own data now with Co it doesn't [9:11] stop there as I mentioned I want to [9:14] create a knowledge bot that not only [9:16] gives advice based on the data that I've [9:19] uploaded to the bot but also recommends [9:22] YouTube videos from my own channel now [9:25] out of the box gp4 can't recommend [9:28] YouTube videos however this is where the [9:30] plethora of other helpful features of Co [9:34] comes into play now Co has a huge amount [9:38] of plugins that I can add directly into [9:41] my bot to get it to do additional tasks [9:44] such as searching for YouTube videos so [9:47] I'll head over to this plugins section [9:49] in my bot dashboard here I'll click the [9:52] plus button to add a plugin so I'll go [9:55] to the search bar here and I'll search [9:56] for the YouTube plugin I'll select it [10:00] right here and then I'll add the search [10:02] video plugin directly from the YouTube [10:05] plugin so now that this has been added [10:08] we can close out of this here and now my [10:11] bot can search for YouTube videos it's [10:13] as easy as that so if I type in [10:16] something to my bot like can you provide [10:20] me with a video on good coding habits [10:25] that I can adopt as a programmer I hit [10:29] enter it will use the YouTube plugin and [10:32] then it will recommend a video directly [10:35] from my YouTube channel so now that we [10:38] have our knowledge-based chatbot created [10:40] we are ready to deploy that and again [10:43] that is something that is super easy [10:45] with Co we simply click the publish [10:47] button in the top right of the screen [10:50] here Co will ask for a few more pieces [10:53] of data such as a uh bot opener and [10:57] opening questions that a user ask you [11:00] can fill this out if you want or you can [11:02] skip it I'll just hit confirm to go with [11:05] the default it gives [11:08] me and then from here we can deploy our [11:11] bot to various different locations so [11:14] the first one and the default one is [11:16] directly to the co bot store So Co has a [11:20] bot store where you can deploy your Bot [11:23] to and you can use Bots that were [11:26] deployed by other people but you can [11:28] also integrate with platforms such as [11:31] slack and Discord so you could install [11:35] this directly into your Discord server [11:38] and the users of your server could ask [11:40] the bot questions and it would answer it [11:43] so I think that is a really cool feature [11:46] however I'm just going to publish this [11:47] directly to the co bot store for now [11:50] just because that is the easier route [11:52] and I do that by clicking this publish [11:54] button right here and there we have it [11:56] our bot is now deployed so I'll click [11:59] this button right here to open up the [12:01] bot in the bot store and that my friends [12:04] is how you create a knowledge chatbot [12:06] using Coes I hope this video was helpful [12:09] to you and make sure you head on over to [12:11] co to start building your own chat Bots [12:14] today thank you for watching the video [12:16] and I will see you all in the next one [12:19] peace