How to add ChatGPT to a HTML website

How to add ChatGPT to a HTML website

If you’re looking for information on how to embed your custom trained chatbot in your HTML website, you’re in the right place! Here’s how to add ChatGPT to an HTML website with Chatwith.
 

Add your chatbot to your HTML website

Adding your chatbot to your website can be done in two steps that take just a minute!
 

In the Chatwith dashboard

Select your chatbot from the dropdown menu at the top, click on the Install chatbot section in the sidebar, then click on the Copy code button to copy your code snippet.
 
notion image
 

In your website code

You can install the chatbot on a website in two ways:
  • Using JS code snippet: Copy the provided code snippet and paste it into the <head> section of your website's HTML code.
  • As an iframe embed: Copy the provided iframe code and insert it into your website's HTML code, wherever you want the chatbot to appear.