WordPress Glossary Plugin (CMTG) - Integrations - ChatGPT


Adding Content Generated by GPT to the Glossary

Back to User Guide

This feature is available only in the Ecommerce edition since the version 4.2.0 of the WordPress Glossary plugin

TIP: Try our Live Demo in action.

Introduction

The plugin allows to automatically generate definitions for glossary terms using ChatGPT. 

ChatGPT is an artificial intelligence program created by OpenAI that is capable of understanding human language and can have a conversation with people just like another human being. It works by using complex algorithms and deep learning models to analyze and understand the meaning of words and sentences. 

ChatGPT processes text using tokens. Tokens are pieces of words used for natural language processing. For English text, 1 token equals about 4 characters or 0.75 words. Learn more how Tokens work. Every time the plugin request the term definition, it spends tokens which are paid. When you register your account, OpenAI gives a start credit which you can spend. When your credit is run out, you can pay to continue using the service. You can check the Pricing Plans.

Read more about possibilities of ChatGPT in our article: Integrating ChatGPT With Tooltip Plugin For WordPress

Front-end Example

Example of the ChatGPT definition generated for empty term:

Example of the ChatGPT definition generated for empty term - Glossary Plugin WordPress
Example of the ChatGPT definition generated for empty term

Example of displaying ChatGPT definition together with manually added definition: 

Example of displaying ChatGPT definition together with manually added definition - Tooltip Plugin WordPress
Example of displaying ChatGPT definition together with manually added definition

Enabling ChatGPT in the Plugin Settings

To find the settings of the integration, navigate to Admin Dashboard â†’ CM Tooltip Glossary Ecommerce → Settings â†’ Ecommerce Settings tab.

Ecommerce settings - Tooltip WordPress Plugin
Ecommerce settings

Scroll down and find the section Chat GPT. It has the following options:

ChatGPT integration settings - Wiki Plugin for WordPress
ChatGPT integration settings
  • Enabled - Enable the feature to automatically generate term definitions using ChatGPT.
  • Chat GPT API Key - In order to make the feature work, you need to enter OpenAI API. It can be obtained on OpenAI site. It's simple - head to the site, sign up and follow the instructions.
  • Chat GPT Prompt Template - Specify the request which the plugin will be sending to ChatGPT for getting the term definition. Important: this template must contain the placeholder {term}.
  • Chat GPT AI Role - Here you can define the role for the Chat GPT assistant to make your term definitions more specialized. This way, if you define the assistant as an expert in some certain area, it will generate the definitions related to your main topic. Note: this option was introduced in version 4.2.3.
  • Chat GPT Model - The plugin supports two versions of ChatGPT which you can choose - GPT 3.5 and GPT 4 (beta). Have a note that currently the version GPT 4 may not be available for you as it is in a limited beta stage and requires joining the waitlist on the OpenAI page. Note: this option was introduced in version 4.2.3.
  • Chat GPT Reply Length - Define the maximum length of the reply from ChatGPT. This affects the final length of the term.
  • Chat GPT Temperature - This option allows to define how accurate the generated definition will be. This value ranges from 0 to 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Note: this option was introduced in version 4.2.3.
  • Only show Chat GPT when content is empty - Enable it, if you want the definition generated by ChatGPT to be added only in case if the term is empty (when you didn't add the definition manually). If the option is disabled, the ChatGPT definition will be displayed below the definition which you wrote by yourself.
  • Show Chat GPT data in Tooltip - Enable it, if you want the definition generated by ChatGPT to be displayed in tooltips.

    Displaying ChatGPT definition in the tooltip - Wiki for WordPress
    Displaying ChatGPT definition in the tooltip
  • Show Chat GPT data in Glossary term display - Enable it, if you want the definition generated by ChatGPT to be displayed on the term page.

    Displaying ChatGPT definition on the term page - Wiki WordPress Plugin
    Displaying ChatGPT definition on the term page
  • Wrap the output from Chat GPT in custom HTML template - Enable it, if you want to wrap the definition generated by ChatGPT with custom HTML template. The template can be specified in the option Chat GPT Wrapper Template.
  • Chat GPT Wrapper Template - Specify the custom template to wrap the definition generated by ChatGPT. The template accepts placeholders {term} as a requested term, and {content} as an obtained definition. 

    Example

    Let's use the following HTML template:

    <hr><div><strong>Definition of "<u>{term}</u>" by Chat GPT:</strong> {content}</div>

    1. With custom template
    2. Without custom template

      Example of using custom HTML template - WordPress as a Wiki
      Example of using custom HTML template
  • Flush the Cache - Click this button to clean the database from third-party services definitions, including definition generated by ChatGPT. Once the definition of the term is generated, the plugin stores the ChatGPT definitions in the database to save the resources and to make sure that the content of your website stays the same. But if you want to, you can flush the cache and have AI regenerate the answer. 

Disabling ChatGPT definitions in specific terms

You can override the plugin general settings for showing definitions generated by ChatGPT in specific terms.

To do this, find the metabox CM Tooltip - Term Properties on the term editing page. Check the option Disable Chat GPT API for this term, then click the button Update to save the changes. It will completely remove any ChatGPT content from the tooltip and the term page:

Disabling ChatGPT API for the specific term - WordPress Internal Linking Plugin
Disabling ChatGPT API for the specific term

Double Click Support

The plugin supports a double-click feature with ChatGPT integration.

It means that every time a word is double-clicked anywhere on the page (even without being defined as a Glossary term), a temporary tooltip will be displayed, containing the definition generated by ChatGPT. If somebody double-clicked on some word, the definition generated by ChatGPT will be cached on your site. So the plugin will not request this word every time somebody double clicks on it, as the result is already stored on your site (until you flush the cache).

Front-end Example

Using double-click feature - WordPress Glossary Plugin
Using double-click feature

The settings for enabling this feature are located under the same tab Ecommerce Settings

Ecommerce settings - WordPress Knowledge Base Plugin
Ecommerce settings

Find the section Doubleclick settings. The options are:

Double-click settings - Knowledge Base WordPress Plugin
Double-click settings
  • Enable doubleclick API call - Enable this option.
  • Doubleclick service - Open the dropdown and choose Chat GPT.
  • Enable saving the results as terms - If this option is enabled, the admin will be able to save the generated by ChatGPT definition from the front-end. It's just enough to click Save in the appeareing tooltip, and the new term will be created in your glossary. It also allows to regererate the definition by clicking the relevant button in case if the result is not appropriate. Note: this option was introduced in version 4.2.3.

    Example of regenerating and saving the temporary term - Glossary Plugin WordPress
    Example of regenerating and saving the temporary term
  • Doubleclick "Save" label - Here you can change the label for the Save button. Note: this option was introduced in version 4.2.3.
  • Doubleclick "Regenerate" label - Here you can change the label for the Regenerate button. Note: this option was introduced in version 4.2.3.
  • Doubleclick underline color - Here you can define the underline color for a temporary tooltip which is generated by the Doubleclick feature. The color should be set in the hex format. For more complex styling you can use the selector:.glossaryLink.temporary{//your styles here} Note: this option was introduced in version 4.2.3.

    Example of the temporary tooltip definition which is underlined with different color - Tooltip Plugin WordPress
    Example of the temporary tooltip definition which is underlined with different color

Click the button Save Changes at the bottom of the page.

Saving the changes - Tooltip WordPress Plugin
Saving the changes

Important

The main ChatGPT settings should be enabled and configured to work with Double-click feature.

Enabling the ChatGPT feature - Wiki Plugin for WordPress
Enabling the ChatGPT feature

Learn more about other integrations supported by DoubleClick API: WordPress Glossary Plugin (CMTG) - Integrations - Double Click


More information about the WordPress Glossary Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.