Duplicate Scripts to Create New Scripts
To create your own AI chatbot, use the ChatGPT script as a starting point.
Duplicating an Existing Script
To duplicate a script, invoke Script Kit, find your script, and hit CMD + D
or the right arrow, or click and search for duplicate.
![demo](https://res.cloudinary.com/johnlindquist/image
Transcript
00:00 To create your own AI chatbot we'll use the chat GPT script as a starting point. So to duplicate this script we'll hit command-d or the right arrow, or click here, and search for duplicate. And once you run duplicate or open or any of those actions it will prompt you to name your script. We'll name this AdventureTime. Once I hit enter, because this is a new installation, it'll ask us which editor we want to use.
00:24 We'll use VS Code, and now it will use VS Code anytime you open a script. I'll hit enter, and you'll see the content of the script automatically open in BS code. So we named our script AdventureTime, so it's named Adventure-Time.js. And if I open Script Kit again and hit Command-O with ChatGPT focused, it'll open that script and you'll see that the contents of this script and this script match. The 1 thing it did was strip the name from the script, so we'll give it a name of Adventure Time, and then we'll get rid of the markdown which shows up.
00:55 Let's save. The markdown shows up in the preview when that script is focused. Now the description and the Twitter, once you run your script you'll see that information shows up in the top bar. Here's the description in the top left and here's a link to your profile in the top right. And if you click on that it'll take you to that user's page.
01:13 So when you're sharing scripts It's a good way to take credit for your work. For our Adventure Time script we're going to focus on the system message prompt. If you've used AIs in the past you're probably used to seeing this sort of setup where you type in a string, hit enter, and it adds to that string. But now interacting with AIs is turning more into a chat where the system defines the context, your messages show up here, and then the AI responds with messages. So there's a clear separation of where each of those strings are coming from.
01:41 And the system can be considered the most important because it defines the conversation as a whole. For our AdventureTime script I'm going to paste in a prompt I prepared earlier to create a choose your own adventure conversation. The user starts the story, the AI takes over, and then the AI offers options 1, 2, 3, and the user selects an option by typing 1, 2, or 3. And the story ends if something bad happens to the user. So we'll run this.
02:06 I'll hit enter with Adventure Time selected. We'll start with something pretty dangerous. I jumped out of an airplane without a parachute. Hit enter. I'll flap my arms and try and fly like a bird.
02:34 And apparently that was a bad choice because our story is now over.