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:
![Example of the answer that is automatically generated by Gemini - WordPress Question and Answer Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c98cddd0f8c60bb3fbfeb/file-dwSqOivPKr.png)
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.
![User created for posting automatic answers - WordPress Forum Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c7e7be1989867dcefcd19/file-Irnn10Njp6.png)
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.
![Navigation to the Gemini integration settings - Questions and Answers Forum Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c7e91e1989867dcefcd1a/file-8jyZpya5mC.png)
The options in this section are:
![Gemini integration settings - WordPress Questions and Answers](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c86765940934e140f39eb/file-sqRJYdM7T7.png)
- 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.
Example of the Gemini user display name 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.
How placeholders are related to the form fields - 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.
![The option for integrating the Gemini feature with the Experts add-on - WordPress Q and A Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c88205940934e140f39ef/file-PrsorJckWW.png)
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.
!['Update' button - WordPress Question and Answer Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/6411fab32291250577b83b5d/file-nCtsoXKDpL.png)
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.
![Managing categories and experts - WordPress Forum Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/641207e8c8237b017c0c9d8d/file-p1tLO3n85I.png)
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.
![Assigning the Gemini user as an expert to the category - Questions and Answers Forum Plugin](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c9445e1989867dcefcd3f/file-0FxUHuyoVR.png)
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
![Example of the expert answer by Gemini - WordPress Questions and Answers](http://d33v4339jhl8k0.cloudfront.net/docs/assets/558f9e89e4b01a224b42f278/images/664c981ed593d719515c96be/file-wjqnt8aPCu.gif)
![]() |
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 |