How to add a ChatGPT chatbot to GRAV
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.
In GRAV
- Log into your GRAV account and on your dashboard, select Configuration on the left sidebar.
- Select Content on the System configuration list and under Process, make sure Twig is checked and Markdown is unchecked.
- Click on Save (Top Right) to save your changes if any.
Let's insert our chatbot snippet
- Select Pages on the left sidebar.
- Select the page you want to edit to add your chatbot snippet to.
- On the editor page, select Normal (the Expert option allows for more settings that we are not going to use now).
- Insert your snippet above (or below) any HTML content in the editor input dialogue box.
- 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.
- Your chatbot button will now be displayed on your GRAV website.
- If you click on the button it will display the chatbot dialogue.
Your chatbot is now added to your GRAV website and your customers can start interacting with it!
Not finding what you need? Reach out to our support team for help.
Contact Support