PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.1.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.1.2
8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 All 534 releases
← All changes | includes/integration/gemini/admin/settings.php +27 -91 8.6.07.1.2 View file →
@@ -1,13 +1,11 @@
1 -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2 1
3 2
4 3 <div class="card-body p-sm-0">
5 4
6 5 <ul class="nav nav-tabs">
7 - <li class="active"><a data-toggle="tab" href="#wp-chatbot-gemini-settings"><i class="dashicons dashicons-admin-home"></i><?php echo esc_html__('Gemini settings', 'chatbot'); ?></a></li>
8 - <li><a data-toggle="tab" href="#wp-chatbot-gemini-rag"><i class="dashicons dashicons-admin-generic"></i><?php echo esc_html__('RAG', 'chatbot'); ?></a></li>
9 - <li><a data-toggle="tab" href="#wp-chatbot-gemini-help"><i class="dashicons dashicons-editor-help"></i><?php echo esc_html__('Gemini Help', 'chatbot'); ?></a></li>
6 + <li class="active"><a data-toggle="tab" href="#wp-chatbot-gemini-settings"><i class="fa fa-cog"></i><?php echo esc_html__('Gemini settings', 'wpchatbot'); ?></a></li>
7 + <li><a data-toggle="tab" href="#wp-chatbot-gemini-help"><i class="fa fa-question-circle"></i><?php echo esc_html__('Gemini Help', 'wpchatbot'); ?></a></li>
10 8 </ul>
11 9
12 10 <div class="tab-content">
13 11 <div id="wp-chatbot-gemini-settings" class="tab-pane in active">
@@ -15,11 +13,11 @@
15 13
16 14 <div class="row gx-0">
17 15 <div class="mb-3">
18 16 <div class="form-check form-switch my-4">
19 - <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_gemini_enabled') == 1) ? esc_attr('checked','chatbot') :'';?> role="switch" value="" id="<?php esc_attr_e('qcld_gemini_enabled','chatbot'); ?>">
20 - <label class="form-check-label" for="<?php esc_attr_e('qcld_gemini_enabled','chatbot'); ?>">
21 - <?php esc_html_e('Enable Gemini AI','chatbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from Gemini only, disable Site Search from Settings->Start Menu)','chatbot'); ?></span>
17 + <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_gemini_enabled') == 1) ? esc_attr('checked','wpbot') :'';?> role="switch" value="" id="<?php esc_attr_e('qcld_gemini_enabled','wpbot'); ?>">
18 + <label class="form-check-label" for="<?php esc_attr_e('qcld_gemini_enabled','wpbot'); ?>">
19 + <?php esc_html_e('Enable Gemini AI','wpbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from Gemini only, disable Site Search from Settings->Start Menu)','wpbot'); ?></span>
22 20 </label>
23 21 </div>
24 22 </div>
25 23 </div>
@@ -24,11 +22,11 @@
24 22 </div>
25 23 </div>
26 24 <div class="row gx-0">
27 25 <div class="form-check form-switch my-4">
28 - <input class="form-check-input" type="checkbox" <?php echo (get_option('gemeni_context_awareness_enabled') == '1') ? esc_attr( 'checked','chatbot') :'';?> role="switch" value="" id="gemini_is_context_awareness_enabled">
26 + <input class="form-check-input" type="checkbox" <?php echo (get_option('gemeni_context_awareness_enabled') == '1') ? esc_attr( 'checked','wpbot') :'';?> role="switch" value="" id="gemini_is_context_awareness_enabled">
29 27 <label class="form-check-label" for="gemini_is_context_awareness_enabled">
30 - <?php esc_html_e( 'Context awareness','chatbot'); ?>
28 + <?php esc_html_e( 'Context awareness','wpbot'); ?>
31 29 </label>
32 30
33 31 </div>
34 32 </div>
@@ -34,17 +32,17 @@
34 32 </div>
35 33 <div class="row gx-0">
36 34 <div class="mb-3">
37 35 <div class="form-check form-switch my-4">
38 - <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_gemini_page_suggestion_enabled') == '1') ? esc_attr( 'checked','chatbot') :'';?> role="switch" value="" id="qcld_gemini_page_suggestion_enabled">
39 - <label class="form-check-label" for="<?php esc_attr_e( 'qcld_gemini_page_suggestion_enabled','chatbot'); ?>">
40 - <?php esc_html_e( 'Enable page suggestions with Gemini Result','chatbot'); ?>
36 + <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_gemini_page_suggestion_enabled') == '1') ? esc_attr( 'checked','wpbot') :'';?> role="switch" value="" id="qcld_gemini_page_suggestion_enabled">
37 + <label class="form-check-label" for="<?php esc_attr_e( 'qcld_gemini_page_suggestion_enabled','wpbot'); ?>">
38 + <?php esc_html_e( 'Enable page suggestions with Gemini Result','wpbot'); ?>
41 39 </label>
42 40 </div>
43 41
44 42 <!-- POST TYPE -->
45 43 <div class="form-check form-switch my-4">
46 - <label><?php esc_html_e( 'Select POST TYPE(s) to include with search results', 'chatbot' ); ?></label>
44 + <label><?php esc_html_e( 'Select POST TYPE(s) to include with search results', 'wpchatbot' ); ?></label>
47 45 <div id="wp-chatbot-post-converter">
48 46 <ul class="checkbox-list">
49 47 <?php
50 48 $get_cpt_args = array(
@@ -56,17 +54,17 @@
56 54 $is_pro = !in_array($post_type->name, ['post', 'page']);
57 55 ?>
58 56 <div class="form-check form-check-inline">
59 57 <input
60 - id="site_gemini_search_posttypes_<?php echo esc_html( $post_type->name ); ?>"
58 + id="site_gemini_search_posttypes_<?php echo $post_type->name; ?>"
61 59 type="checkbox"
62 60 name="site_gemini_search_posttypes[]"
63 - value="<?php echo esc_html( $post_type->name ); ?>"
61 + value="<?php echo $post_type->name; ?>"
64 62 <?php echo (($is_pro) ? 'disabled' : ''); ?>
65 63
66 64 <?php echo ((get_option('qcld_openai_relevant_post') != '') && in_array($post_type->name, get_option('qcld_openai_relevant_post'))) ? 'checked' : ''; ?>>
67 - <label class="form-check-label <?php echo ($is_pro ? 'pro-locked' : ''); ?>" for="site_gemini_search_posttypes_<?php echo esc_html( $post_type->name ); ?>">
68 - <?php echo esc_html( $post_type->name ); ?>
65 + <label class="form-check-label <?php echo ($is_pro ? 'pro-locked' : ''); ?>" for="site_gemini_search_posttypes_<?php echo $post_type->name; ?>">
66 + <?php echo $post_type->name; ?>
69 67 <?php if ($is_pro) { ?>
70 68 <span class="pro-badge">Pro</span>
71 69 <?php } ?>
72 70 </label>
@@ -83,37 +81,18 @@
83 81 </div>
84 82 </div>
85 83 <div class="row gx-0">
86 84 <div class="mb-3 form-check ">
87 - <label for="qcld_gemini_api_key" class="form-label"><?php esc_html_e('Gemini API Key','chatbot');?></label>
88 - <input type="password" class="form-control" id="qcld_gemini_api_key" name="qcld_gemini_api_key" placeholder="Enter your Gemini API Key" value="<?php echo esc_attr(get_option('qcld_gemini_api_key')); ?>">
89 - <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://aistudio.google.com/app/api-keys. ','chatbot'); ?></br><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span></small>
85 + <label for="qcld_gemini_api_key" class="form-label"><?php esc_html_e('Gemini API Key','wpbot');?></label>
86 + <input type="password" class="form-control" id="qcld_gemini_api_key" name="qcld_gemini_api_key" placeholder="Enter your Gemini API Key" value="<?php esc_attr_e(get_option('qcld_gemini_api_key'),'wpbot'); ?>">
87 + <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://gemini.ai/settings/keys','wpbot'); ?></small>
90 88 </div>
91 89 </div>
92 - <div class="row gx-0">
93 - <div class="mb-3 form-check ">
94 - <label for="qcld_gemini_model" class="form-label"><?php esc_html_e('Gemini Model','chatbot');?></label>
95 - <div class="input-group">
96 - <select class="form-control" id="qcld_gemini_model" name="qcld_gemini_model">
97 - <?php
98 - $selected_model = get_option('qcld_gemini_model');
99 - if($selected_model){
100 - echo '<option value="'.esc_attr($selected_model).'" selected>'.esc_html($selected_model).'</option>';
101 - } else {
102 - echo '<option value="gemini-2.5-flash" selected>gemini-2.5-flash</option>';
103 - }
104 - ?>
105 - </select>
106 - <button type="button" class="btn btn-primary" id="qcld_gemini_fetch_models"><?php esc_html_e('Fetch Models', 'chatbot'); ?></button>
107 - </div>
108 - <small class="form-text text-muted"><?php esc_html_e('Select your Gemini model. Click "Fetch Models" to update the list if you just added your API key.','chatbot'); ?><br><span style="color:red"><?php esc_html_e('Please select a your paid model all model on the list are might not be available for free plans', 'chatbot'); ?> </span></small>
109 - </div>
110 - </div>
111 90 <div class="row g-0">
112 91
113 92 <div class="row gx-0">
114 93 <div class="mb-3 form-check ">
115 - <label for="qcld_gemini_prepend_content" class="form-label"><?php esc_html_e('Your Prompt to be Added before the User Query for Customized Results (Optional)','chatbot');?></label>
94 + <label for="qcld_gemini_prepend_content" class="form-label"><?php esc_html_e('Your Prompt to be Added before the User Query for Customized Results (Optional)','wpbot');?></label>
116 95 <input type="text" class="form-control" id="qcld_gemini_prepend_content" name="qcld_gemini_prepend_content" placeholder="Content for the response" value="<?php echo esc_attr( get_option('qcld_gemini_prepend_content') ); ?>">
117 96
118 97 </div>
119 98 </div>
@@ -119,9 +98,9 @@
119 98 </div>
120 99
121 100 <div class="row gx-0">
122 101 <div class="mb-3 form-check ">
123 - <label for="qcld_gemini_append_content" class="form-label"><?php esc_html_e('Your Prompt to be Appended at the End of the User Query for Customized Results (Optional)','chatbot');?></label>
102 + <label for="qcld_gemini_append_content" class="form-label"><?php esc_html_e('Your Prompt to be Appended at the End of the User Query for Customized Results (Optional)','wpbot');?></label>
124 103 <input type="text" class="form-control" id="qcld_gemini_append_content" name="qcld_gemini_append_content" placeholder="Content for the response" value="<?php echo esc_attr( get_option('qcld_gemini_append_content') ); ?>">
125 104
126 105 </div>
127 106 </div>
@@ -126,56 +105,14 @@
126 105 </div>
127 106 </div>
128 107 </div>
129 108 <div class="mb-3">
130 - <a class="btn btn-success" id="qcld_save_gemini_setting"><?php esc_html_e('Save settings','chatbot');?></a>
109 + <a class="btn btn-success" id="qcld_save_gemini_setting"><?php esc_html_e('Save settings','wpbot');?></a>
131 110 </div>
132 111 </div>
133 112
134 113
135 114 </div>
136 - <div id="wp-chatbot-gemini-rag" class="tab-pane">
137 - <div class="col-sm-12">
138 - <div class="wrap">
139 - <h3>Gemini RAG Settings</h3>
140 - <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-gemini" href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>">Knowledgebase</a> for Post types and other data to embed. </p><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span>
141 - <div class="form-check form-switch my-4">
142 - <input class="form-check-input"
143 - type="checkbox"
144 - id="is_page_rag_enabled_gemini"
145 - <?php echo (get_option('is_page_rag_enabled') == '1') ? 'checked' : ''; ?>>
146 - <label class="form-check-label" for="is_page_rag_enabled_gemini">
147 - Enable RAG
148 - </label>
149 - </div>
150 - <div class="mb-3">
151 - <a class="btn btn-success" id="qcld_save_gemini_setting"><?php esc_html_e( 'Save settings','chatbot');?></a>
152 - </div>
153 - </div>
154 - <div class="qcld-row">
155 - <div class="alert alert-info mt-20" role="alert">
156 - <p><b><?php echo esc_html__( 'Fine Tuning VS GPT Assistants VS RAG:', 'chatbot'); ?></b></p>
157 - <p>
158 - <?php echo esc_html__( 'We suggest using GPT Assistants or RAG instead of Fine Tuning as Fine Tuning requires a lot of properly formatted data and GPT Assistants are easier to set up. You can still use your website data to train the bot.', 'chatbot'); ?>
159 - </p></br>
160 - <p>
161 - <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b>
162 - <ol>
163 - <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'chatbot'); ?></li>
164 - <li><?php echo esc_html__( 'Click "Embed All Selected Sources" button, after selecting the sources from the', 'chatbot'); ?> <a href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>" target="_blank">knowledgebase tab</a></li>
165 - <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li>
166 - <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li>
167 - <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li>
168 - <li><?php echo esc_html__( 'You need to configure the OpenAI API key, AI Model and System Command under the main OpenAI Settings', 'chatbot'); ?></li>
169 - </ol>
170 - <strong><?php echo esc_html__( 'You can update or re-embed content at any time without retraining.', 'chatbot'); ?></strong>
171 - </p>
172 -
173 - </div>
174 -
175 - </div>
176 - </div>
177 - </div>
178 115 <div id="wp-chatbot-gemini-help" class="tab-pane">
179 116 <div class="accordion" id="qcldopenaiaccordion">
180 117 <div class="card">
181 118 <div class="card-header" id="panelsStayOpen-headingZero-gemini">
@@ -180,18 +117,18 @@
180 117 <div class="card">
181 118 <div class="card-header" id="panelsStayOpen-headingZero-gemini">
182 119 <h2 class="mb-0">
183 120 <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#panelsStayOpen-collapseZero-gemini" aria-expanded="true" aria-controls="panelsStayOpen-collapseZero-gemini">
184 - <?php esc_html_e( 'Getting Started with gemini','chatbot');?>
121 + <?php esc_html_e( 'Getting Started with gemini','wpbot');?>
185 122 </button>
186 123 </h2>
187 124 </div>
188 - <div id="panelsStayOpen-collapseZero-gemini" class="collapse" aria-labelledby="panelsStayOpen-headingZero-gemini" data-parent="#qcldopenaiaccordion">
125 + <div id="panelsStayOpen-collapseZero-gemini" class="collapse show" aria-labelledby="panelsStayOpen-headingZero-gemini" data-parent="#qcldopenaiaccordion">
189 126 <div class="card-body-gemini">
190 - <h5><?php esc_html_e( 'Gemini is an unified Interface or Aggregator for LLMs. You can choose from hundreds of different AI models from OpenAI to Deepseek or Claude to get AI responses.','chatbot');?></h5>
191 - <h5><?php esc_html_e( 'All you have to do is add the Gemini API Key and select an Gemini Model.','chatbot');?></h5>
192 - <h5><?php esc_html_e( 'Grab your OpenAI API key from','chatbot');?> <a href="https://gemini.ai/settings/keys">HERE</a></h5>
193 - <p><?php esc_html_e( 'Please make sure that DialogFlow, OpenAI are Disabled if you want Gemini to work.','chatbot');?></p>
127 + <h5><?php esc_html_e( 'Gemini is an unified Interface or Aggregator for LLMs. You can choose from hundreds of different AI models from OpenAI to Deepseek or Claude to get AI responses.','wpbot');?></h5>
128 + <h5><?php esc_html_e( 'All you have to do is add the Gemini API Key and select an Gemini Model.','wpbot');?></h5>
129 + <h5><?php esc_html_e( 'Grab your OpenAI API key from','wpbot');?> <a href="https://gemini.ai/settings/keys">HERE</a></h5>
130 + <p><?php esc_html_e( 'Please make sure that DialogFlow, OpenAI are Disabled if you want Gemini to work.','wpbot');?></p>
194 131 </div>
195 132 </div>
196 133 </div>
197 134
@@ -199,6 +136,5 @@
199 136
200 137 </div>
201 138 </div>
202 139 </div>
203 - </div>
204 140