WordPress Questions and Answers + Experts Add-on (CMAE) - Use Case - How to Use ChatGPT as an Expert and Automatically Answer User Questions
How to Use ChatGPT as an Expert and Automatically Answer User Questions
Note: This guide uses the following versions:
- WordPress Questions and Answers - Pro version 4.7.2.
- Answers Experts Add-on - version 2.1.2.
Introduction
The WordPress Questions and Answers and Answers Experts add-on support integration with ChatGPT. It allows to post automatically generated by AI answers to questions in certain categories. When users choose a category with experts, they can choose ChatGPT as an expert, and after posting the question, it will be immediately answered by ChatGPT.
Use Case Front-End
Example of the answer that was automatically generated by ChatGPT as an expert:
Use Case Assumptions
In this example use case guide, we'll cover how to configure the integration with ChatGPT, assign it as an expert and automatically answer questions on your forum.
We consider that you have already bought the plugin and add-on, but not installed them yet.
It follows:
- Installing the plugin
- Quick recap
- What is ChatGPT?
- Creating API key
- Enabling ChatGPT integration on your site
- Settings
- Assigning ChatGPT user as an expert
- End result
Installing the Plugin
The process is the same for all CM plugins.
- Download the plugin from your customer dashboard.
- Log in to WordPress and navigate to the WordPress Admin → Plugins settings.
- Click on Add New.
- Activate it and add the license.
Learn more: Getting Started - Installation And First Steps
Quick Recap
This use case guide is focused on the setting up the ChatGPT integration for generating automatic answers to questions. We recommend you first to configure the base plugin. Learn more about it in this use case guide:
It will help to configure the following:
- Creating and setting up a forum
- Adding Forum to Site
- User area and user area shortcodes
- Changing the look and feel
- Restricting access of the forum
- Moderating questions
- Enabling notifications for questions and answers
- Translating the forum interface
What is ChatGPT?
ChatGPT is an AI chatbot that uses natural language processing and machine learning to generate conversations based on user input. It is based on OpenAI's GPT-3 model and can be used to create automated conversations for websites and applications.
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. Every time the plugin request an answer to a question, 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.
Learn more about Tokens and check the Pricing Plans.
In order to connect your forum with ChatGPT, you need to obtain the API Key.
Creating API Key
To get the API key, please do the following:
- Go to the OpenAI website at https://openai.com/.
- Click on the “Get Started” button.
- Fill in your email address and password to create a new account.
- Verify your email address by clicking the link sent to your email.
- Once you have verified your email address, log in to your OpenAI account.
- Click on the “API keys” link in the right-hand navigation menu.
- Click the “Create new Secret key” button.
- Copy the API key that is generated from the popup.
- Keep your API key safe and secure, as it provides access to your OpenAI account and services.
As creating an API key is committed on a third-party service side, so the process of obtaining an API key can have some minor changes from time to time. Follow the instructions on the OpenAI site.
Enabling ChatGPT Integration On Your Site
When the base plugin is installed and activated, it creates a new user role on your site with the name AnswersChatGPTUser. The plugin uses this user account to post automatic answers.
Settings
First of all, you need to configure ChatGPT integration in the base plugin settings. Navigate to Admin Dashboard → CM Answers Pro → Settings → General tab → ChatGPT section.
The options in this section are:
- Enable Chat_GPT - Turn on this option to activate ChatGPT feature.
- Chat GPT API Key - In order to make the feature work, you need to enter ChatGPT API Key. It can be obtained on OpenAI site.
- Category answered by Chat GPT - Choose categories where ChatGPT can give automatic answers.
Chat GPT user display name - Choose a name for ChatGPT User, which will be displayed for answers.
Chat GPT Prompt Template - Specify the request which the plugin will be sending to ChatGPT for getting answers. Important: this template must contain one or both of the following placeholders: {question_title} and/or {question_body}. These placeholders correspond to the fields of the question title and body.
- 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.
- Chat GPT AI Role - Here you can define the role for the Chat GPT assistant to make your answers more specialized. This way, if you define the assistant as an expert in some certain area, it will generate the answers related to your main topic.
Request Example
Let's consider more detailed how the request is formed and sent to the ChatGPT in order to receive an answer. The request defined in the options Chat GPT AI Role and Chat GPT Prompt Template will be combined to generate an answer for certain specialization. The example of the settings on the screenshot above will have the following request:
You're a helpful assistant. {question_title} {question_body}
The way how you define the AI role can have a huge affect of the result and generate totally different answers to the same question.
Here's how ChatGPT answers the question "What is the matrix?" when the ChatGPT AI Role is set to "You are a mathematician.":
And here's how the same question "What is the matrix?" is answered when ChatGPT AI Role is set to "You are a cinephile.":
- Chat GPT Reply Length - Set the maximum length of the reply requested from the ChatGPT. This value is set in tokens. Warning: longer replies use more tokens, so you can reach limit faster. Learn more about Pricing Plans.
- Chat GPT Temperature - This option allows to define how accurate the generated answer 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.
Now navigate to the Experts Addon tab. You need to turn on the option Enable Chat GPT expert under the Chat GPT section.
It is needed in order to let users choose ChatGPT as an expert in certain categories.
When you finished configuring the settings, click the button Update at the bottom of the page to save the changes.
Assigning ChatGPT User As an Expert
Now we need to assign the ChatGPT User as an expert in the needed categories. Navigate to Admin Dashboard → CM Answers Pro → Categories and Experts.
Either while create a new category or editing an existing category, find the option Select Experts. You need to select Chat_GPT user. Then click Update to save the changes.
Now when the user posts a question and chooses this category with ChatGPT as an expert, he will receive an automatic answer.
ChatGPT Prompt Template for Category
With the WordPress Questions and Answers, it is possible to override the ChatGPT prompt template for each category.
It can be done in the field Chat GPT prompt template for category. If it is empty, then the value from the global plugin setting is used.
End Result
Following instructions found in the plugin and guides you should be able to configure the integration with ChatGPT, assign it as an expert and automatically answer questions on your forum.
Use Case Front-End
More information about the Answers Experts WordPress add-on 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 |