How to add ChatGPT to Wordpress

How to add ChatGPT to Wordpress

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

Add your chatbot to your WordPress website

Adding your chatbot to your website can be done in two steps that take just a minute!
💡
You can use our official WordPress plugin to install AI on your website. Simply install the plugin available in the WordPress.org plugin store and follow the instructions: https://wordpress.org/plugins/chatwith

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 WordPress

💡
This guide refers to self-hosted websites from Wordpress.org.
  1. Click on Pages
  1. Select the page you would like to have the chatbot displayed on
  1. At the bottom of the page, type / to bring up the block selector and choose Custom HTML
  1. Paste your Chatwith code snippet
  1. Update the page to save your changes.
 
You can use a WordPress plugin that does the heavy lifting for you.
  1. Choose any of the popular plugins available here: https://wordpress.org/plugins/search/header+script/
  1. After installing a plugin, simply open it and follow the steps for adding a script to your WordPress header.
 
You can reference this article for more ways for adding a custom script to your WordPress site.
 

How to exclude chatbot from some pages?

If you installed the chatbot using a plugin, there is no straightforward way of disabling it on certain pages.
If you’d like to show the chatbot only on a few pages (eg. only the homepage) then we recommend adding the code snippet method (described above) to those pages.
If you’d like to show the chatbot on all pages except a few then we recommend adding a code snippet which hides this HTML element from the current webpage (see this guide).

What is Wordpress?

WordPress is a popular content management system (CMS) that allows individuals and businesses to create and manage their own websites. It offers a flexible and user-friendly platform for all types of websites, from blogs to e-commerce stores. Its extensive range of themes and plugins makes it a versatile choice for web development.

Why add a custom GPT to Wordpress?

Adding a custom GPT to your WordPress site can enhance user engagement, provide personalized customer service, and automate routine tasks. It can also give your website a modern touch, setting it apart from the competition.
Your GPT can answer queries, provide product recommendations, and even entertain your users with jokes and trivia. Offering real-time, interactive communication can increase user satisfaction and boost your site’s conversion rates.