How to Create your own ChatGPT (ish) in 5 minutes
Tags: openai, machinelearning, webdev
Published: 2023-02-03 17:21:33

Most developers are probably aware of that [OpenAI](https://openai.com) provides an API at this point. By intelligently using this API, you can actually _"create your own ChatGPT chatbot"_. Your own private ChatGPT that answers questions the _way you want it to answer questions_. To see an example of this, check out our [ChatGPT chatbot](https://aista.com). If you're too lazy to click the link, there's a screenshot below.

![Create your own ChatGPT](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/58yuogz20ajnuht1q6tz.jpg)

The basic idea is really simple. You point it at a website, our system scrapes your site, and you get your own custom ChatGPT version that knows everything about **YOU** and **YOUR COMPANY**, and only speaks nicely about your services. Watch the video below to understand the process.

{% embed https://www.youtube.com/watch?v=BBBDQd-mdGE %}

The way it works, is that our system automatically crawls your website, scrapes it for Hx elements and paragraphs, chops up your content into _"training snippets"_, which are then used as its _"knowledge"_ when answering questions. Many have claimed this _"isn't really ChatGPT"_. All of those people are wrong. This is the _full ChatGPT AI model_ - Equally capable as the full version of ChatGPT, because it _is_ the full version of ChatGPT. The only difference being that it doesn't remember context, implying you have to phrase your questions such that the whole question is in each prompt.

## Use cases for software developers

One really nifty use case for such chatbots are to document your software project. If you're obsessed about Open Source such as we are, you probably have some documentation for your open source software project - Or your closed source software project for that matter. Realise that the explanation our chatbot gave me below is for a _"tiny keyword in a tiny programming language that I'm probably the only guy on the planet currently using"_. Still it provides a _better_ explanation than what I am capable of providing myself.

![Example of how ChatGPT can be trained](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lay0xrizqryzz3p1batk.jpeg)

Basically, by scraping the website for your software project, we're capable of _"increasing ChatGPT's IQ by 1 million"_ (in a way, if you like simple explanations). Below is the whole explanation as provided by ChatGPT.

## When should I use the [whitelist] keyword?

The **[whitelist]** keyword should be used when you need to allow a partially untrusted source to pass in a piece of Hyperlambda for evaluation in a secure manner. The **[whitelist]** keyword allows you to declare a block of lambda, where only a sub-set of your vocabulary is available for the code to invoke. This ensures that the code can only access the slots that you have explicitly whitelisted, and cannot access nodes outside of the **[.lambda]** object itself.

I could have tried explaining the whitelist keyword for months, without being able to explain it as good as the above explanation. If you want to try this out on your own website or software project, you can find our stuff below.

* [Create your own ChatGPT based chatbot in 5 minutes](https://aista.com)