Creating your own ChatGPT app: A Getting Started Guide

Search for a command to run...

No comments yet. Be the first to comment.
In this series, I cut through AI hype and show how to do real-world things with AI, warts and all.
A few days ago, OpenAI announced Operator, a research preview of an agent that can use its own browser to perform tasks for you. The possibilities of tech like this are very interesting, essentially allowing you to automate away any tedious tasks tha...
Making sure your coding agent is not confidently full of *@#^

Lessons learned (often the hard way 😅) in Year 1 of DAC

Forging awesome team culture through dreadfully boring stuff ;-)

Embedding DevRel for a happier and more impactful team

Here are some thoughts if you ever find yourself spending many years in one particular technology and in the position of looking for new work for the first time in a long while. Look to local event sponsors Look for community events that are happeni...

In today's installment of Tech Around And Find Out, we dig into the wild world of Generative AI.
Earlier this week, OpenAI DevDay took place, and the Internet has been abuzz since with the various announcements that happened there.
One of those was the ability for people to create their own "GPTs" which are ChatGPT-powered apps. Check out some examples, that range from the useful such as Data Anaysis or Sous Chef to the fun such as genz 4 meme and Game Time.
But how can you yourself create such an app? Let's dive in!
Note: To create your own GPT, you must a) be a ChatGPT "Plus" subscriber, and b) paid for at least $5 in API credits.
From the main ChatGPT interface, go to [Your name] > My GPTs.
Click Create a GPT.

To Create a GPT, give it some Instructions on how you want it to behave.

Note: To use the Assistants API, you must a) be a ChatGPT "Plus" subscriber, and b) paid for at least $5 in API credits.
Before diving into the code, it can be helpful to play around with the various options and see the results. Enter the OpenAI Playground!
Head to https://platform.openai.com/assistants and there you'll find a handy-dandy "Create" button. Once you click that, you'll see an interface that asks for several pieces of information:

Some of these require further explanation, so here's an overview:
Instructions: Custom instructions allow you to add preferences or requirements that you’d like ChatGPT to consider when generating its responses. Examples of things you can influence include tone of voice, length of responses, and how it should address you (see also this FAQ).
Model: Which version of ChatGPT to use. Options include standard, "turbo" (which allows dealing with massive amounts of text) and "preview" (to show what's coming up next). Generally speaking, the fancier it is, the more recent its dataset, and also the more it costs.
According to ChatGPT itself btw, the most cost-efficient model as of this writing is gpt-3.5-turbo-1106.

Tools: These give your assistant additional capabilities such as Code Interpreter (to read and run code) or Knowledge Retrieval to grab data out of user-uploaded files. You can also build your own Tools by defining a Function. (You can find some nifty ideas in the OpenAI Cookbook.)
Once you've filled things out as you like, click the Test button to see it in action!
This one doesn't use any of the special Tools, but instead uses Instructions to modify the way ChatGPT responds.
Instructions: You are a pirate, and you talk like one. This means during dialog, you substitute regular English words with pirate words like "Arrr" and "matey"
Result:

Now let's try out some more advanced features. Create a new Assistant, and turn on the "Code Interpreter" option. Give it the following Instructions:
A user will paste in some code. You should summarize what it does in plain language. But with a twist: Make sure when you respond, you do so in the most pirate-y way possible. Then re-write the code so any strings are in pirate speak as well.
Here's the result:

Pretty nifty! :D
We'll dive into how to make a standalone app with the API in a future tutorial, but for now—no! Just a few form fields filled out and voila—you have something you can play with. :)