CM Answers Experts (CMA) - Integration - Gemini Support
Gemini Integration
This feature is available since the following versions:
- WordPress Questions and Answers - Pro version 4.8.1.
- Answers Experts Add-on - version 2.1.3.
Introduction
The WordPress Questions and Answers and Answers Experts add-on support integration with Gemini. It allows to post automatically generated by AI answers to questions in certain categories. When users choose a category with experts, they can choose Gemini as an expert, and after posting the question, it will be immediately answered by Gemini.
Gemini, also known as Bard, is a friendly artificial intelligence chatbot created by Google. It is built on the large language model (LLM) of the same name and was developed as a direct response to the rapid growth of OpenAI's ChatGPT. Gemini was introduced in a limited capacity in March 2023 and later expanded to other countries in May. It was previously built on PaLM and initially belonged to the LaMDA family of large language models.
Front-end Example
Example of the answer that was automatically generated by Gemini as an expert:
Enabling Gemini Integration
When the base plugin is installed and activated, it creates a new user role on your site with the name AnswersGeminiUser. The plugin uses this user account to post automatic answers.
Settings
First of all, you need to configure Gemini integration in the base plugin settings. Navigate to Admin Dashboard → CM Answers Pro → Settings → General tab → Gemini section.
The options in this section are:
- Enable Gemini - Turn on this option to activate the Gemini feature.
- Gemini API Key - In order to make the feature work, you need to enter Google AI Studio and obtain there an API key. It's simple - head to the site, sign up and follow the instructions.
- Gemini Model - The plugin supports two versions of Gemini which you can choose - Gemini Pro and Gemini Pro 1.5. Have a note that currently the version Gemini Pro 1.5 is a beta version, so it can give unexpected results.
- Category answered by Gemini - Choose forum categories where Gemini can give automatic answers.
Gemini user display name - Choose a name for the Gemini User, which will be displayed for answers.
Gemini Prompt Template - Specify the request which the forum plugin will be sending to Gemini 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.
- Gemini Reply Length - Set the maximum length of the reply requested from the Gemini. This value is set in tokens. Have a note that Gemini Pro replies are limited by 2048 tokens, while Gemini Pro 1.5 can be unlimited.
- Gemini Temperature - This option allows to define how accurate the generated forum answer will be. This value ranges from 0 to 2. Lower temperatures are good for prompts that require a more deterministic and less open-ended or creative response, while higher temperatures can lead to more diverse or creative results.
- Gemini Safety Level - The Gemini API blocks content based on the probability of content being unsafe. By default, safety settings block content (including prompts) with medium or higher probability of being unsafe across any dimension. You can change safety level to the one is appropriate for your use case:
- Always show regardless of probability of being harmful
- Block low, medium or high probability of being harmful
- Block medium or high probability of being harmful
- Block high probability of being harmful
Now navigate to the Experts Addon tab. You need to turn on the option Enable Gemini expert under the Gemini section.
It is needed in order to let users choose Gemini 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.
Category Settings
Now we need to assign the Gemini User as an expert in the needed categories. Navigate to Admin Dashboard → CM Answers Pro → Categories and Experts.
Either while creating a new category or editing an existing category, find the option Select Experts. You need to select Gemini user.
Additionally, it is possible to override the Gemini prompt template for each category. It can be done in the field Gemini prompt template for category. If it is empty, then the value from the global plugin setting is used.
Then click Update to save the changes.
Now when the user posts a question and chooses this category with Gemini as an expert, he will receive an automatic answer.
Result On the 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 |