Back to Installing Your Chatbot

How to add a ChatGPT chatbot to GRAV

How to add your custom ChatGPT trained chatbot to your GRAV website.

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

Add your chatbot to your GRAV website

Grav is a modern open source flat-file CMS and it makes use of Markdown. Before we start adding our chatbot, we have to do some setup to the configuration to allow your code snippet to be added.

For GRAV, you have to add your chatbot snippet to each page you want the chatbot to be displayed on, this means that the below instructions will have to be repeated for each page.

In SiteSpeakAI

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.

0 - GRAV - Copy Code (Quest).png

In GRAV

  1. Log into your GRAV account and on your dashboard, select Configuration on the left sidebar.

1 - GRAV - Select Configuration.png

  1. Select Content on the System configuration list and under Process, make sure Twig is checked and Markdown is unchecked.

2 - GRAV - Select Content and make sure Twig is checked and Markdown not.png

  1. Click on Save (Top Right) to save your changes if any.

3 - GRAV - Click on Save to save your changes if any.png

Let's insert our chatbot snippet

  1. Select Pages on the left sidebar.

4 - GRAV - Select Pages.png

  1. Select the page you want to edit to add your chatbot snippet to.

5 - GRAV - Select the page you want to edit.png

  1. On the editor page, select Normal (the Expert option allows for more settings that we are not going to use now).

6 - GRAV - Select Normal.png

  1. Insert your snippet above (or below) any HTML content in the editor input dialogue box.

7 - GRAV - Insert your snippet.png

  1. Click on Save to save your input. GRAV will display a warning regarding potential XSS issues in content. This is due to the fact that the snippet contains a JS script tag. You can ignore this warning.

8 - GRAV - Click on Save to save your input.png

  1. Your chatbot button will now be displayed on your GRAV website.

9 - GRAV - Chatbot button.png

  1. If you click on the button it will display the chatbot dialogue.

10 - GRAV - Chatbot dialogue.png

Your chatbot is now added to your GRAV website and your 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.