How to get ChatGPT on your website
Tags: openai, webdev, opensource, machinelearning
Published: 2023-04-24 11:39:15

[ChatGPT](https://chat.openai.com/) is the coolest thing since sliced bread. In this article I explain how you can put it on your website, and make it answer according to your data.

At [AINIRO.IO](https://ainiro.io/) we create middleware that sits between your company and ChatGPT. This allows us to create a lot of really interesting solutions, such as our [AI Expert System](https://ainiro.io/ai-expert-systems) for instance. However, our flagship solution is that we can scrape your website and create a ChatGPT website chatbot you can embed on your website, such that it answers questions the way you want it to answer questions. Try our chatbot in the bottom/right corner of [this page](https://ainiro.io) to understand what we're talking about.

Today we published a new video that walks you through the entire process in some few minutes. If you watch the following video, and follow the recipe, you will have your own website chatbot based upon ChatGPT in 5 minutes.

{% embed https://www.youtube.com/watch?v=OxNj_CF0OLo %}

## How it works

We crawl and scrape your website for data. This creates a "context" for ChatGPT it will use to answer questions. In addition we secure your chatbot with Google's reCAPTCHA, preventing bots (pun!) from invoking your chatbot. Then as people are phrasing questions to your chatbot, we find the most relevant "training snippets" from your database, and use these as a context for ChatGPT as we send the question to [OpenAI](https://openai.com/) through their APIs.

This allows us to "bend ChatGPT to our will" in ways that are almost impossible to imagine before you've seen it. A week ago we created a Donald Trump ChatGPT chatbot that literally answers as if it is Donald Trump. This was of course just a fun experiment, but we can also create chatbots that answers as;

* The CEO of your company
* A Sales Executive helping you sell your products and services
* A Customer Support agent, providing customer support to your website visitors
* And many more

Our own chatbot is configured to answer as a Sales Executive while always recommending our products if given the opportunity. Try asking our chatbot; _"Who's got the best ChatGPT website chatbot?"_ - At which point it will answer something roughly resembling the following.

![Best ChatGPT website chatbot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/njawfsq8amd708wadut4.jpg)

## Technology

Our technology is developed by our team of software developers and machine learning experts in its entirety. It is based upon [Magic Cloud](https://github.com/polterguy/magic) which is open source, so you can even inspect it and look at it if you wish, to make sure it's secure and safe to use. Open source software is your guarantee for high quality and high levels of security.

Our platform even provides you with statistics about usage, history log, manually editing your training data, and configuration options that are "next level" if needed. Below is a screenshot of the scraping process.

![Scraping your website for data](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/musj043cge35smuegblc.jpeg)

Still the simplicity of our platform only requires some 3 to 4 button clicks before you've got your own chatbot. Watch the video above to verify this.

In general, the amount of "cognitive energy" that has gone into creating our ChatGPT website chatbot technology is staggering. If you look carefully at the screenshot of the scraping and crawling process above, you will see how it "Successfully created summary of snippet to shorten it". A good training snippet shouldn't be too long, so when one of your pages in your website ends up resulting in a too large training snippet, we summarize that snippet using (pun!) ChatGPT. In addition we will chop up each crawled page into multiple training snippets, cutting up individual pages where it makes sense, according to your website's structure - Yet again, to improve the quality of your training data.

The end result becomes a high quality database of "training snippets", where you end up with a chatbot that can freely associate and generate new content, based upon multiple pages or sources of data, providing its user with truly unique amounts of creativity, without leaving your training data - Unless you want it to leave your training data.

## Configuration options

You can configure how strict your chatbot should be while using your training data, what base-model to use from OpenAI, your reCAPTCHA settings, authorization and authentication to allow only employees with a username and password accessing your machine learning model, etc. This gives you fine-grained control over ChatGPT we've yet to see anybody out there being able to replicate. Below is a screenshot of the configuration process for your machine learning model, allowing you to setup everything exactly as you need.

![Configuring your ChatGPT chatbot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3j5b32f04u5nps0gog2y.jpeg)

## Conclusion

Basically, we're not lying when we say the following;

> We put ChatGPT on your website and make it say what you want

To get started DIY-style, watch the above video and [signup at hub](https://hub.ainiro.io/). 5 minutes later you've got a ChatGPT-based chatbot on your website. If the above process is too complex for you, we can do everything for you. If you want us to do it instead you can [fill out this contact form](https://ainiro.io/contact-us#demo).

Thank you for your time, and yet again, please watch the above video, since the entire process is described in a hands-on style in the video 😊