Back to Installing Your Chatbot

How to add a ChatGPT chatbot to Github Pages

How to add your custom ChatGPT trained chatbot to your Github Pages website.

You want to embed your custom trained chatbot in your Github Pages website page. Here's how to add ChatGPT to Github Pages with SiteSpeakAI.

Add your chatbot to your Github Pages website

In SiteSpeakAI

Select your chatbot from the dropdown menu at the top, click on the Install Chatbot section in the sidebar and then click on the Copy Code button to copy your code snippet. 0 - Github Pages - Copy Code (Quest).png

In Github Pages

  1. Log into your Github account and select your Github page you want to add the chatbot to 1 - Github Pages - Login and select your Github page).png

  2. Select the index.html file of your page. If you have more pages in your Github website then you will have to repeat the whole process for each page 2 - Github Pages - Select your index.html file.png

  3. On the page editor page, select Edit this file and then select the way you want to edit the file, i.e. Edit in place (This opens an editor to allow editing), github.dev or Github Desktop. For the sake of this tutorial we will use the Edit in place option 3 - Github Pages - Select Edit this file.png

  4. When the editor opens your file in edit mode, scroll down and insert your snippet just above the </head> tag. When done, click on the Commit changes... button to commit your changes to the repository 4 - Github Pages - Insert your snippet and commit changes.png

  5. Click on Commit changes in the Commit changes dialogue box 5 - Github Pages - Click on Commit changes.png

  6. Your chatbot button will now be displayed on your Github Pages website page 6 - Github Pages - Chatbot button on page.png

  7. If you click on the button it will display the chatbot dialogue 7 - Github Pages - Chatbot dialogue on page.png

Your chatbot is now added to your Github Pages website and your visitors/customers can start interacting with it!

Need more help with SiteSpeakAI?

Not finding what you need? Reach out to our support team for help.

Contact Support

Ready to automate your customer support with AI?

Join over 150+ businesses, websites and startups automating their customer support with a custom trained GPT chatbot.