CHAT GPT-3 Google Docs- Create Your Own A. I Text Editor in Minutes

CHAT GPT-3 Google Docs- Create Your Own A. I Text Editor in Minutes

Today we’re gonna be learning how to create our own text editor using the power of CHAT GPT-3. So we are gonna be plugging Google Docs directly into open AI using an API key. This will allow us to harness the power of CHAT GPT-3 to create different models within our Google Docs. Let me show you an example.

So as I come over here, you can see I have a new menu, which I’ve named G P T three blog. And so let’s say, for example, I want to create an article about blogs that will be my keyword word. I’ll just highlight it and then generate ideas. Now this is asking G P T three for ideas of blogs around the subject of dogs.

Now it’s selected a list of 10, uh, subjects that we could discuss. Uh, for the sake of this demo, let’s just choose the top one and let’s ask g p t three to make this title more enticing, more, I don’t wanna say clickbaity, but, uh, a nicer title for our users. So, generate title. There we go. Finding the perfect pooch.

How to choose the right Breed dog for your family. F. Okay, our article is coming along nicely, so next we want an introduction. So what we do again is similar to as before, just highlight our new title and then we’ll go on to generate introduction.

Uh, we can delete the rest of this, I suppose. Let’s move. And looking good. So now we are gonna need a, uh, outline for our blog. Let’s just style this up a little bit. Title, big spit down. Great. So now we’re gonna ask for G P T three decree a blog outline. So this would be, what subjects are we gonna cover within this block?

So similar to us before we just copy this. Just paste it here temporarily. And then we go to log outline. So this will give us our subjects. Obviously we don’t need to cover all of this. And for the sake of the demo, I won’t, uh, we’ll just do the first couple and then we have it. So we already have an introduction, so that can go right off the bats.

Uh, so we’ve got our first topic, overview, the of the importance of finding the right breed dog for your family. Um, so once again, go to here. And now we just generate paragraph super. Let’s move this here and style it nicely. Next we want benefits of having a dog style it up

and let’s ask for a paragraph again.

Awesome. Our blog’s coming along nicely. Um, let’s say we want to have a picture of a dog here to break things up a little bit. So let’s just write a photo of a happy dog with a bone. Highlight that text. And then generate image, and there we have it, our happy dog. Um, then we can just basically just go through building out our article, paragraph by paragraph.

We can ask the, um, the AI to create a whole article, but it’s normally better to have some sense of direction and human control over the article. Otherwise, you might just end up getting a lot of gobby goop rubbish in rubbish outs. So finally, to end our article, we can just select everything that we have.

And then generate conclusion. So this will summarize everything that we’ve spoken about and give us a nice little happy ending. And there we have it, our conclusion. So as you can see, using this method, you can build out an entire article within a couple of minutes. No need to pay for any expensive or subscribe to any super powerful a AI writers.

You can do everything. Custom within Google Docs. So how do we do it? It’s actually super easy and you don’t need to know any coding knowledge to do this. It’s just a matter of copy and paste. And this method allows you to customize the outputs to your niche or specifications. So let me walk you through it from scratch.

So first of all, you need an open AI API key. Head over to Open AI Register, and then you can collect your API key there from the api. Once you have your key, go back to Google Docs and then we have four bits of code here that I’ve highlighted in different colors. So let’s start with the first one. Select that, go over to our new sheet, and we’re gonna call this GP three.

Power. So one junior Google Docs head over to extensions and app Scripts. Once inside App Scripts, we can delete our boiler plates code, which is already there, and paste in our new code. So this is gonna be for our menu, which is on our Google Docs page, the dropdown. So the menu comprises of two elements, the parent holder and the subcategories.

So let’s call our parent holder GPT three Magic. And at the moment we’ve got two subcategories, generate ideas and generate images. And let’s save this and have a look to see how that works. And here we have our menu, TPT three Magic. Obviously right now, none of them work because they’re not connected to any functions, but the basics is there.

Let’s head back over to our code next. We need our fixed variables, so let’s take that and paste that into our app script. So our fixed variables is basically our API key. So insert your API key here within the quotation marks. I will deactivate this key before I upload this video, so you no point trying to take this one from me.

And then the second one is the model, uh, that we’re gonna be using. So on this point we’re gonna be using Da Vinci three. You can use Da Vinci two. The, uh, the older version if you. But, uh, I’d highly recommend going with the latest one, which is currently Da Vinci three. So now we have our menu and our variables in place.

We can start adding our functions and doing the interesting stuff. So let’s just copy this prompt I’ve made earlier and paste it in to our app script. So we want this menu item to connect to this function. And now we need to say, what do we want this function to do? To do this, you simply write in plain English the command that you give the ai.

So in our case generates five log ideas around the word, and then we got plus selected texts. So in the demo we had. So it will generate five blog ideas around the word do, and that’s our first function. To add another function, we can simply highlight that menu, paste it a new one. Change. Let’s say we want to create a paragraph, so this will be what’s on the menu item.

Oh, got the dot. And then let’s call it generate. Para and then we collect, select this prompt and we want to create a new one. So just copy, paste, generate. We called it para didn’t we? There we go. And then we give it a new command. So with that selected text, write, uh, paragraph. So let’s actually change that to write a detailed paragraph about, and then it’ll be set a text.

So in our case it will be subtitle and it’ll write a detailed paragraph about that. Done. Let’s save that and have a look to see how that runs back to our Google Docs refresh. Okay, so we can do, let’s do cats now. Generate idea. Ah, that’s a good point. So first time you do this, you’re gonna need to allow permissions.

Um, so that’s just a case of click and continue. Continue. As Google hasn’t verified it, it automatically gives you the warning and then go to protect it and allow, and then you rerun it. Here we go. Here are five ideas about blog titles, and then we can simply paste that and write a paragraph about it. And there we have it.

So obviously using this technique you can do different prompts. I continue writing, give a conclusion, write headlines, give an outro, and anything else that your niche might require. The possibilities with this method are, To two images. It is a little bit slightly different. I’ll show you how to do that now.

Head back over to our code and then select the generate image with the images. By the way, you can choose between three settings. There’s 256 by 256 pixels. Five 12 by five 12 or 1 0 2 4 by 1 0 2 4. Unfortunately it doesn’t have any in between. Um, I would highly recommend going with five 12 unless you want super big ones, but five 12 is fine.

So let’s head back over to our app script and we can paste in the image. This is called Generate image. We, we already have it up there on our menu and. There is no over settings that you need for this because it generates images based on the selected word, so we can save that head back over here. Uh, black kitten

as it is a prompt, the more details you write, the better. I blow a photo of a black kitten sleeping so we don’t get the weird eyes. And then generate image, and there we have it. That a kitten in some sense. What is that? Is that a z. All right, so anyway, we have our cat and we have our blog, and that’s how you build it out.

So you can add as many as you want, be as detailed or quirky as you want. And that is how we use the power of G P T three within Google Docs and not need to spend a lot of money on other AI writers that do similar, uh, with their own models. This way you can customize it to yourself. Anyway, I hope you enjoyed the tutorial.