PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.3.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.3.2
8.8.4 8.8.3 8.8.2 8.8.1 8.8.0 8.7.9 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 All 540 releases
← All changes | includes/integration/openai/admin/settings.php +27 -33 8.5.3 → 8.3.2 View file →
@@ -1,48 +1,22 @@
1 1 <div class="row g-0">
2 - <div class="col-sm-6">
2 + <div class="col-sm-12">
3 3 <div class="form-check form-switch my-4">
4 4 <input class="form-check-input" type="checkbox" <?php
5 - if (!defined('ABSPATH')) exit; // Exit if accessed directly
6 - echo (get_option( 'ai_enabled') == 1) ? esc_attr( 'checked','chatbot') :'';?> role="switch" value="" id="is_ai_enabled">
5 +if (!defined('ABSPATH')) exit; // Exit if accessed directly
6 +echo (get_option( 'ai_enabled') == 1) ? esc_attr( 'checked','chatbot') :'';?> role="switch" value="" id="is_ai_enabled">
7 7 <label class="form-check-label" for="is_ai_enabled">
8 - <?php esc_html_e( 'Enable OpenAI','chatbot'); ?>
8 + <?php esc_html_e( 'Enable OpenAI','chatbot'); ?><span style="color:red"> <?php esc_html_e( '(if you want results from OpenAI only, disable Site Search from Settings->Start Menu)','chatbot'); ?></span>
9 9 </label>
10 - <span style="color:red"> <?php esc_html_e( '(if you want results from OpenAI only, disable Site Search from Settings->Start Menu)','chatbot'); ?></span>
11 10 </div>
12 - </div>
13 - <div class="col-sm-6">
14 11 <div class="mb-3">
15 12 <div class="form-check form-switch my-4">
16 13 <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'is_stream_enabled', '1' ) == '1' ) ? esc_attr( 'checked', 'chatbot' ) : ''; ?> role="switch" value="" id="is_stream_enabled">
17 14 <label class="form-check-label" for="is_stream_enabled">
18 - <?php esc_html_e( 'Enable Streaming ', 'chatbot' ); ?>
15 + <?php esc_html_e( 'Enable Streaming (stream AI responses in real-time as they are generated)', 'chatbot' ); ?>
19 16 </label>
20 - <span> <?php esc_html_e( '(stream AI responses in real-time as they are generated)', 'chatbot' ); ?></span>
21 -
22 17 </div>
23 18 </div>
24 - </div>
25 -</div>
26 -<div class="row g-0">
27 - <div class="col-sm-12">
28 - <!-- /POST TYPE -->
29 - <div class="mb-3 form-check">
30 - <label for="api_key" class="form-label"><?php esc_html_e( 'Api key','chatbot');?></label>
31 - <input type="password" class="form-control" id="api_key" name="api_key" placeholder="Api key" value="<?php echo esc_attr(get_option( 'open_ai_api_key')); ?>">
32 - <span><?php esc_html_e('Get your API key from','chatbot'); ?> <a href="https://platform.openai.com/settings/organization/api-keys" target="_blank"><?php esc_html_e('HERE','chatbot'); ?></a></span><br>
33 - <span style="color:red"><?php esc_html_e('It requires a paid OpenAI API plan', 'chatbot'); ?> </span>
34 - </div>
35 - <div class="mb-3 form-check">
36 - <label for="qcld_openai_system_content"><?php esc_attr_e( 'System Command (Use it to Instruct ChatGPT how to behave). You can write a detailed prompt here that includes details about your services, products, and how to contact you or anything relevant to get','chatbot');?> <span class="qcls_openAI_customized"><?php esc_attr_e( 'Customized Results','chatbot');?></span> <?php esc_attr_e( '. Upto 3000 words is fine.','chatbot');?>
37 -
38 - <br><br>
39 -
40 - </label>
41 - <textarea type="text" class="form-control" id="qcld_openai_system_content" placeholder="<?php echo esc_attr('You are a helpful and intelligent assistant for the website "' . site_url() . '". Use live website data and the provided context to respond accurately and briefly. Stay relevant and do not introduce additional topics.','chatbot'); ?>"><?php echo esc_html( get_option( 'qcld_openai_system_content')); ?></textarea>
42 - <label><small><?php esc_html_e("To set the ChatBot's tone and character set a system message according to your need",'chatbot'); ?></small></label></br>
43 - <label><small><?php esc_html_e("Example: You are a helpful and intelligent assistant for the website " . site_url() . ". Use live website data and the provided context to respond accurately and briefly. Stay relevant and do not introduce additional topics.",'chatbot'); ?></small></label>
44 - </div>
45 19 <div class="form-check form-switch my-4">
46 20 <input class="form-check-input" type="checkbox" <?php echo (get_option('context_awareness_enabled') == '1') ? esc_attr( 'checked','chatbot') :'';?> role="switch" value="" id="is_context_awareness_enabled">
47 21 <label class="form-check-label" for="is_context_awareness_enabled">
48 22 <?php esc_html_e( 'Context awareness','chatbot'); ?>
@@ -96,9 +70,14 @@
96 70 </div>
97 71
98 72
99 73
100 -
74 + <!-- /POST TYPE -->
75 + <div class="mb-3 form-check">
76 + <label for="api_key" class="form-label"><?php esc_html_e( 'Api key','chatbot');?></label>
77 + <input type="password" class="form-control" id="api_key" name="api_key" placeholder="Api key" value="<?php echo esc_attr(get_option( 'open_ai_api_key')); ?>">
78 + <span style="color:red"><?php esc_html_e('It requires a paid OpenAI API plan', 'chatbot'); ?> </span>
79 + </div>
101 80 <div class="qcld-wpbot-pricing-filter-form-check">
102 81 </div>
103 82 <div class="mb-3 form-check">
104 83 <label for="max_tokens" id="openai_engines" class="form-label"><?php esc_html_e( 'OpenAI Model','chatbot');?></label>
@@ -119,9 +98,25 @@
119 98 <option value="gpt-3.5-turbo" <?php echo ((get_option( 'openai_engines') == 'gpt-3.5-turbo') ? esc_attr('selected') : '') ; ?>><?php esc_html_e( 'GPT-3 turbo','chatbot'); ?></option>
120 99 </select>
121 100 </div>
122 101
102 + <div class="mb-3 form-check">
103 + <label for="qcld_openai_system_content"><?php esc_attr_e( 'System Command (Use it to Instruct ChatGPT how to behave). You can write a detailed prompt here that includes details about your services, products, and how to contact you or anything relevant to get','chatbot');?> <span class="qcls_openAI_customized"><?php esc_attr_e( 'Customized Results','chatbot');?></span> <?php esc_attr_e( '. Upto 3000 words is fine.','chatbot');?>
104 +
105 + <br><br>
106 + <?php esc_attr_e( '**','chatbot');?>
107 + <a href="https://wpbot.pro/docs/knowledgebase/how-wpbot-chatbot-free-users-can-get-customized-results-from-the-chatbot-how-to-train-the-chatbot/#customize" class="qcls_openAI_customized_link" target="_blank">
108 + <?php esc_attr_e( 'Check this article','chatbot');?>
109 + </a>
110 +
111 + <?php esc_attr_e( 'for more details abou how to get Customized Results from OpenAI.','chatbot');?>
112 + <br>
123 113
114 + </label>
115 + <textarea type="text" class="form-control" id="qcld_openai_system_content" placeholder="<?php echo esc_attr('You are a helpful Assistant. Be concise and relevant in your answers and do not introduce new topic.','chatbot'); ?>"><?php echo esc_html( get_option( 'qcld_openai_system_content')); ?></textarea>
116 + <label><small><?php esc_html_e("To set the ChatBot's tone and character set a system message according to your need",'chatbot'); ?></small></label></br>
117 + <label><small><?php esc_html_e("Example: You are a helpful Assistant. Be concise and relevant in your answers and do not introduce new topic.",'chatbot'); ?></small></label>
118 + </div>
124 119 <div class="mb-3 form-check">
125 120 <label for="qcld_openai_append_content"><?php esc_attr_e( 'Prompt to be Appended at the End of the User Query (Optional)','chatbot');?></label>
126 121 <textarea type="text" class="form-control" id="qcld_openai_append_content" placeholder="<?php echo esc_attr('Content for the response'); ?>"><?php echo esc_html( get_option( 'qcld_openai_append_content')); ?></textarea>
127 122
@@ -149,9 +144,8 @@
149 144
150 145 <div class="mb-3">
151 146 <a class="btn btn-success" id="save_setting"><?php esc_html_e( 'Save settings','chatbot');?></a>
152 147 </div>
153 - </br>
154 148 <div class="mb-3 form-check">
155 149 <a class="btn btn-warning" id="qcld_check_connection"><?php esc_html_e( 'Check Connection ','chatbot');?><i class="dashicons dashicons-image-rotate" id="rotationloader"></i></a> <?php echo esc_html('Save the Settings first and then press the Check Connection button'); ?><br/>
156 150 <div id="qcld_openAI_trubleshooter"></div>
157 151 </div>