PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.7.7
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.7.7
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 8.5.2 All 533 releases
← All changes | admin_ui.php +218 -55 8.6.68.7.7 View file →
@@ -71,35 +71,40 @@
71 71 <section class="wp-chatbot-tab-container-inner">
72 72 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
73 73 <nav>
74 74 <ul>
75 - <li class="tab-current" tab-data="started"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-home"></span> </span> <span class="wpwbot-admin-tab-name">
75 + <li class="tab-current" tab-data="started" data-section="#section-flip-1"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-home"></span> </span> <span class="wpwbot-admin-tab-name">
76 76 <?php esc_html_e('Getting Started', 'chatbot'); ?>
77 77 </span> </a></li>
78 - <li tab-data="general"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-generic"></span></span> <span class="wpwbot-admin-tab-name">
78 + <li tab-data="general" data-section="#section-flip-2"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-generic"></span></span> <span class="wpwbot-admin-tab-name">
79 79 <?php esc_html_e('General settings', 'chatbot'); ?>
80 80 </span> </a></li>
81 - <li tab-data="language"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-translation"></span> </span> <span class="wpwbot-admin-tab-name">
82 - <?php esc_html_e('Change Language', 'chatbot'); ?>
81 + <div class="cxsc-settings_openai_border">
82 + <a href="<?php echo esc_url( $action) .'_openAi' ?>">
83 + <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
84 + </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
85 + </a>
86 + </div>
87 + <div class="cxsc-settings_openai_border">
88 + <a href="<?php echo esc_url( $action) .'_ai_actions' ?>">
89 + <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
90 + </span> <span class=""> <?php esc_html_e('AI Actions', 'chatbot'); ?> </span>
91 + </a>
92 + </div>
93 +
94 + <li tab-data="themes" data-section="#section-flip-3"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-share-alt"></span> </span> <span class="wpwbot-admin-tab-name">
95 + <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
83 96 </span> </a></li>
84 - <li tab-data="social"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-image-filter"></span> </span> <span class="wpwbot-admin-tab-name">
97 + <li tab-data="startmenu" data-section="#section-flip-6"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Action Start Menu', 'chatbot'); ?></span> </a></li>
98 + <li tab-data="social" data-section="#section-flip-51"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-image-filter"></span> </span> <span class="wpwbot-admin-tab-name">
85 99 <?php esc_html_e('Button Configurations', 'chatbot'); ?>
86 100 </span> </a></li>
87 - <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
88 - </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
89 - </a>
90 -</div>
91 -
92 -
93 -
94 - <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-share-alt"></span> </span> <span class="wpwbot-admin-tab-name">
95 - <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
101 + <li tab-data="language" data-section="#section-flip-5"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-translation"></span> </span> <span class="wpwbot-admin-tab-name">
102 + <?php esc_html_e('Change Language', 'chatbot'); ?>
96 103 </span> </a></li>
97 - <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-info-outline"></span> </span> <span class="wpwbot-admin-tab-name">
104 + <li tab-data="support" data-section="#section-flip-4"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-info-outline"></span> </span> <span class="wpwbot-admin-tab-name">
98 105 <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
99 - </span> </a></li>
100 - <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li>
101 -
106 + </span> </a></li>
102 107
103 108 <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name">
104 109 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 110 </span> </a></li>
@@ -104,9 +109,9 @@
104 109 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 110 </span> </a></li>
106 111
107 112
108 - <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
113 + <li tab-data="<?php echo esc_url('rpl'); ?>" data-section="#section-flip-9" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
109 114 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span>
110 115 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
111 116 </span>
112 117 </a>
@@ -114,9 +119,9 @@
114 119
115 120
116 121
117 122
118 - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
123 + <li tab-data="custom_css" data-section="#section-flip-13"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
119 124 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
120 125 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 126 </a>
122 127 </li>
@@ -167,9 +172,9 @@
167 172 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'chatbot'); ?></h3>
168 173 <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'chatbot'); ?></p>
169 174 <h4><?php echo esc_html__('To create answers to user questions you can use:', 'chatbot'); ?></h4>
170 175 <p> <b><?php echo esc_html__('Simple Text Responses', 'chatbot'); ?></b> (built-in), <b style="font-size: 14px"><?php echo esc_html__('FAQ', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Site search', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Product search', 'chatbot'); ?></b>(built-in Pro feature), <b style="font-size: 14px"><?php echo esc_html__('DialogFlow', 'chatbot'); ?></b>(3rd Party) or <b style="font-size: 14px"><?php echo esc_html__('OpenAI', 'chatbot'); ?></b>(3rd Party)</br>
171 -</p>
176 + </p>
172 177 <h4> <?php echo esc_html__('To collect information from your users you can use:', 'chatbot'); ?></h4>
173 178 <p> <b>
174 179 <?php echo esc_html__('Conversational forms', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Mail us', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Call me back', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Collect feedback features', 'chatbot'); ?></b>(built-in)</p>
175 180 <hr>
@@ -204,9 +209,9 @@
204 209 <div class="to-icon-txt fa-4x-txt ">
205 210 <h3>
206 211 <span>// </span><?php esc_html_e('Send eMail, Call Me Back &amp; Feedback Collection', 'chatbot'); ?>
207 212 </h3>
208 - <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Start Menu.', 'chatbot'); ?></p>
213 + <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Action Start Menu.', 'chatbot'); ?></p>
209 214 </div>
210 215 </div>
211 216 <div class="to-icon-box left txt-left">
212 217 <div class="to-icon-txt fa-4x-txt ">
@@ -260,14 +265,14 @@
260 265 </h4>
261 266 </div>
262 267 <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
263 268 <div class="panel-body">
264 - <p><?php esc_html_e('Extend the Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?>&nbsp;<?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?>
269 + <p><?php esc_html_e('Extend the Action Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?>&nbsp;<?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?>
265 270 <?php esc_html_e('conversations', 'chatbot'); ?> <?php esc_html_e('with if else logic', 'chatbot'); ?> . <?php esc_html_e('Conversations or forms can be', 'chatbot'); ?> <?php esc_html_e('eMailed', 'chatbot'); ?> <?php esc_html_e('to you and', 'chatbot'); ?> <?php esc_html_e('saved in the database', 'chatbot'); ?>.
266 271 </p>
267 272 <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4>
268 273 <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'chatbot'); ?></a>
269 - <a class="FormBuilder" href="https://www.quantumcloud.com/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a>
274 + <a class="FormBuilder" href="https://www.quantumcloud.net/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a>
270 275 <h4><?php esc_html_e('What Can You Do with it?', 'chatbot'); ?></h4>
271 276 <p><?php esc_html_e('Conversation Forms allows you to create a wide variety of forms, that might include:', 'chatbot'); ?></p>
272 277 <ul>
273 278 <li><?php esc_html_e('Create menu or button driven conversations', 'chatbot'); ?></li>
@@ -370,16 +375,16 @@
370 375 </div>
371 376 <div class="panel panel-default">
372 377 <div class="panel-heading" role="tab" id="headingSix">
373 378 <h4 class="panel-title">
374 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Start Menu', 'chatbot'); ?> </a>
379 + <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Action Start Menu', 'chatbot'); ?> </a>
375 380 </h4>
376 381 </div>
377 382 <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
378 383 <div class="panel-body">
379 - <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Start menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br>
380 - <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br>
381 - <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?>
384 + <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Action Start Menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Action Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br>
385 + <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Action Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br>
386 + <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Action Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?>
382 387 </div>
383 388 </div>
384 389 </div>
385 390 <div class="panel panel-default">
@@ -389,9 +394,9 @@
389 394 </h4>
390 395 </div>
391 396 <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
392 397 <div class="panel-body">
393 - <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Start Menu.', 'chatbot'); ?></br></br>
398 + <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Action Start Menu.', 'chatbot'); ?></br></br>
394 399 <?php echo esc_html_e('The ChatBot settings area is full of options. Do not be intimidated by that. You do not need to use all the options – just what you need. Head over to the Settings->', 'chatbot'); ?><b><?php echo esc_html_e('Icons and Themes','chatbot'); ?></b> <?php echo esc_html_e('for options to customize your ChatBot. You will also find options to embed the ChatBot on a page, click to chat, FAQ builder etc. under the Setting options.', 'chatbot'); ?>
395 400 </div>
396 401 </div>
397 402 </div>
@@ -598,11 +603,11 @@
598 603 flex-direction: column;
599 604 position: relative;
600 605 }
601 606 .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
602 - border-color: #5b4e96;
607 + border-color: var(--woobot-primary);
603 608 background: #eff6ff;
604 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
609 + box-shadow: 0 0 0 1px var(--woobot-primary), 0 8px 24px rgba(37, 99, 235, 0.15);
605 610 }
606 611 .wpbot-checkbox-card .check-icon {
607 612 position: absolute;
608 613 top: 30px;
@@ -618,10 +623,10 @@
618 623 transition: all 0.2s ease;
619 624 z-index: 2;
620 625 }
621 626 .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
622 - background: #5b4e96;
623 - border-color: #5b4e96;
627 + background: var(--woobot-primary);
628 + border-color: var(--woobot-primary);
624 629 }
625 630 .wpbot-checkbox-card .check-icon svg {
626 631 width: 14px;
627 632 height: 14px;
@@ -649,9 +654,9 @@
649 654 }
650 655 .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
651 656 border-color: #e0e7ff;
652 657 background: #f0fdf4;
653 - color: #5b4e96;
658 + color: var(--woobot-primary);
654 659 }
655 660 .wpbot-checkbox-card h4 {
656 661 margin: 0 0 8px 0 !important;
657 662 font-size: 16px !important;
@@ -694,10 +699,10 @@
694 699 <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
695 700 <div class="card-body">
696 701 <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
697 702 <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
698 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Start Menu", 'chatbot'); ?></h4>
699 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Start Menu.", 'chatbot'); ?></p>
703 + <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Action Start Menu", 'chatbot'); ?></h4>
704 + <p><?php echo esc_html__("Skip asking for name, Email and directly show the Action Start Menu.", 'chatbot'); ?></p>
700 705 </div>
701 706 </label>
702 707 <label class="wpbot-checkbox-card">
703 708 <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
@@ -703,10 +708,10 @@
703 708 <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
704 709 <div class="card-body">
705 710 <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
706 711 <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
707 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Start Menu", 'chatbot'); ?></h4>
708 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Start Menu.", 'chatbot'); ?></p>
712 + <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Action Start Menu", 'chatbot'); ?></h4>
713 + <p><?php echo esc_html__("Skip asking for name, Email and disable the Action Start Menu.", 'chatbot'); ?></p>
709 714 </div>
710 715 </label>
711 716 <label class="wpbot-checkbox-card">
712 717 <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
@@ -712,13 +717,41 @@
712 717 <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
713 718 <div class="card-body">
714 719 <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
715 720 <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
716 - <h4><?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?></h4>
717 - <p><?php esc_html_e('Show Start Menu immediately after greetings.', 'chatbot'); ?></p>
721 + <h4><?php esc_html_e('Show Action Start Menu After Greetings', 'chatbot'); ?></h4>
722 + <p><?php esc_html_e('Show Action Start Menu immediately after greetings.', 'chatbot'); ?></p>
718 723 </div>
719 724 </label>
720 725 </div>
726 + <div class="wpbot-cards-grid-divider"> </div>
727 + <div class="wpbot-cards-grid">
728 + <label class="wpbot-checkbox-card">
729 + <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:var(--woobot-primary); color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span>
730 + <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" disabled />
731 + <div class="card-body">
732 + <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
733 + <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
734 + <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4>
735 + <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p>
736 + <div class="qc_wp_intent_select_container" style="margin-top: 10px; ">
737 + <div style="margin-bottom: 8px;">
738 + <label style="font-weight: 600; font-size: 13px; color: var(--woobot-primary); display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label>
739 + <select name="qlcd_wp_chatbot_intent_for_non_logged_in_user" id="qlcd_wp_chatbot_intent_for_non_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
740 + <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
741 +
742 + </select>
743 + </div>
744 + <div>
745 + <label style="font-weight: 600; font-size: 13px; color: var(--woobot-primary); display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label>
746 + <select name="qlcd_wp_chatbot_intent_for_logged_in_user" id="qlcd_wp_chatbot_intent_for_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
747 + <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
748 + </select>
749 + </div>
750 + </div>
751 + </div>
752 + </label>
753 + </div>
721 754 <div class="wpbot-cards-grid-divider"></div>
722 755 <div class="wpbot-cards-grid">
723 756 <label class="wpbot-checkbox-card">
724 757 <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
@@ -724,10 +757,10 @@
724 757 <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
725 758 <div class="card-body">
726 759 <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
727 760 <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
728 - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4>
729 - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p>
761 + <h4><?php esc_html_e('Disable Back to Action Start Menu', 'chatbot'); ?></h4>
762 + <p><?php esc_html_e('Remove the option to go back to the Action Start Menu.', 'chatbot'); ?></p>
730 763 </div>
731 764 </label>
732 765 </div>
733 766 <div class="wpbot-cards-grid-divider"></div>
@@ -1573,13 +1606,13 @@
1573 1606 <div class="top-section">
1574 1607
1575 1608
1576 1609
1577 - <div class="row">
1610 + <div class="row">
1578 1611 <div class="col-xs-6">
1579 1612 <div class="form-group">
1580 1613 <h4 class="qc-opt-title">
1581 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1614 + <?php esc_html_e('ChatBot Window Max Height', 'chatbot'); ?>
1582 1615 </h4>
1583 1616 <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1584 1617 <?php
1585 1618 $chatbot_content_max_height = get_option('chatbot_content_max_height');
@@ -1595,9 +1628,9 @@
1595 1628 </div>
1596 1629 <div class="col-xs-6">
1597 1630 <div class="form-group">
1598 1631 <h4 class="qc-opt-title">
1599 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1632 + <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'chatbot'); ?>
1600 1633 </h4>
1601 1634 <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1602 1635 <?php
1603 1636 $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
@@ -1802,11 +1835,121 @@
1802 1835 </div>
1803 1836 </div>
1804 1837 </div>
1805 1838 </div>
1839 + <!-- ===== Custom Icon Video / YouTube ===== -->
1840 + <div class="row">
1841 + <div class="col-xs-12">
1842 + <div class="form-group">
1843 + <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'chatbot'); ?></h4>
1844 + <p style="margin-bottom:8px;"><?php echo esc_html__('Upload a short video file or paste a YouTube embed URL to use instead of the wpbot icon.', 'chatbot'); ?></p>
1845 + <div class="cxsc-settings-blocks">
1806 1846
1847 + <?php
1848 + $wp_chatbot_icon_video = get_option('wp_chatbot_icon_video', '');
1849 + $is_youtube = (strpos($wp_chatbot_icon_video, 'youtube.com') !== false || strpos($wp_chatbot_icon_video, 'youtu.be') !== false);
1850 + $is_video = !$is_youtube && $wp_chatbot_icon_video !== '';
1851 + ?>
1807 1852
1853 + <!-- Video Upload -->
1854 + <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'chatbot'); ?></p>
1855 + <input type="hidden"
1856 + name="wp_chatbot_icon_video"
1857 + id="wp_chatbot_icon_video"
1858 + value="<?php echo esc_url($wp_chatbot_icon_video); ?>" />
1859 + <button type="button" id="wp_chatbot_icon_video_btn" class="button">
1860 + <?php echo esc_html__('Upload Video', 'chatbot'); ?>
1861 + </button>
1862 + <?php if ($is_video): ?>
1863 + <span style="margin-left:8px;vertical-align:middle;">
1864 + <video src="<?php echo esc_url($wp_chatbot_icon_video); ?>" width="80" height="80" style="border-radius:50%;object-fit:cover;" muted loop autoplay playsinline></video>
1865 + </span>
1866 + <?php endif; ?>
1867 + <button type="button" id="wp_chatbot_icon_video_clear_btn" class="button" style="margin-left:6px;<?php echo ($wp_chatbot_icon_video === '' || $is_youtube) ? 'display:none;' : ''; ?>">
1868 + <?php echo esc_html__('Remove Video', 'chatbot'); ?>
1869 + </button>
1808 1870
1871 + <!-- YouTube URL -->
1872 + <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'chatbot'); ?></p>
1873 + <?php $youtube_url_val = $is_youtube ? esc_url($wp_chatbot_icon_video) : ''; ?>
1874 + <input type="url"
1875 + name="wp_chatbot_icon_youtube_url"
1876 + id="wp_chatbot_icon_youtube_url"
1877 + class="regular-text"
1878 + placeholder="https://www.youtube.com/embed/VIDEO_ID"
1879 + value="<?php echo esc_url( $youtube_url_val ); ?>" />
1880 + <button type="button" id="wp_chatbot_icon_youtube_url_clear_btn" class="button" style="margin-left:6px;<?php echo ($youtube_url_val === '' ? 'display:none;' : ''); ?>">
1881 + <?php echo esc_html__('Remove YouTube URL', 'chatbot'); ?>
1882 + </button>
1883 + <p class="description"><?php echo esc_html__('Paste the YouTube embed URL (e.g. https://www.youtube.com/embed/xxxxx). This will override the uploaded video above.', 'chatbot'); ?></p>
1884 +
1885 + <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'chatbot'); ?></p>
1886 + <input type="number"
1887 + name="wp_chatbot_icon_video_delay"
1888 + id="wp_chatbot_icon_video_delay"
1889 + class="small-text"
1890 + min="0"
1891 + max="60"
1892 + step="1"
1893 + value="<?php echo absint( get_option('wp_chatbot_icon_video_delay', 0) ); ?>" />
1894 + <p class="description"><?php echo esc_html__('Wait this many seconds after page load before starting the video. Set to 0 for immediate autoplay.', 'chatbot'); ?></p>
1895 +
1896 + </div>
1897 + </div>
1898 + </div>
1899 + </div>
1900 + <!-- ===== /Custom Icon Video / YouTube ===== -->
1901 + <script>
1902 + (function($){
1903 + $(document).ready(function(){
1904 + // Video upload via WP Media Library
1905 + $('#wp_chatbot_icon_video_btn').on('click', function(e){
1906 + e.preventDefault();
1907 + var frame = wp.media({
1908 + title: '<?php echo esc_js(__('Select or Upload Video', 'chatbot')); ?>',
1909 + button: { text: '<?php echo esc_js(__('Use this video', 'chatbot')); ?>' },
1910 + multiple: false,
1911 + library: { type: 'video' }
1912 + });
1913 + frame.on('select', function(){
1914 + var attachment = frame.state().get('selection').first().toJSON();
1915 + $('#wp_chatbot_icon_video').val(attachment.url);
1916 + $('#wp_chatbot_icon_youtube_url').val('');
1917 + $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1918 + $('#wp_chatbot_icon_video_clear_btn').show();
1919 + });
1920 + frame.open();
1921 + });
1922 +
1923 + // Clear uploaded video
1924 + $('#wp_chatbot_icon_video_clear_btn').on('click', function(){
1925 + $('#wp_chatbot_icon_video').val('');
1926 + $(this).hide();
1927 + });
1928 +
1929 + // Show/hide Remove YouTube URL button dynamically
1930 + $('#wp_chatbot_icon_youtube_url').on('input keyup change', function(){
1931 + if ($(this).val().trim() !== '') {
1932 + $('#wp_chatbot_icon_youtube_url_clear_btn').show();
1933 + } else {
1934 + $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1935 + }
1936 + });
1937 +
1938 + // Clear YouTube URL
1939 + $('#wp_chatbot_icon_youtube_url_clear_btn').on('click', function(){
1940 + $('#wp_chatbot_icon_youtube_url').val('');
1941 + var currentVideoVal = $('#wp_chatbot_icon_video').val();
1942 + if (currentVideoVal.indexOf('youtube.com') !== -1 || currentVideoVal.indexOf('youtu.be') !== -1) {
1943 + $('#wp_chatbot_icon_video').val('');
1944 + }
1945 + $(this).hide();
1946 + });
1947 + });
1948 + })(jQuery);
1949 + </script>
1950 +
1951 +
1809 1952 <div class="row">
1810 1953 <div class="col-xs-12">
1811 1954 <div class="form-group">
1812 1955 <h4 class="qc-opt-title">
@@ -2360,9 +2503,9 @@
2360 2503 <div class="cxsc-settings-blocks">
2361 2504 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2362 2505 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2363 2506 <label for="disable_wp_chatbot_site_search">
2364 - <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2507 + <?php esc_html_e('Disable site search feature and button on Action Start Menu', 'chatbot'); ?>
2365 2508 </label>
2366 2509 </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2367 2510 </div>
2368 2511 <div class="cxsc-settings-blocks">
@@ -2392,9 +2535,9 @@
2392 2535 <div class="cxsc-settings-blocks">
2393 2536 <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2394 2537 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2395 2538 <label for="disable_wp_chatbot_call_gen">
2396 - <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2539 + <?php esc_html_e('Disable Call Me feature and button on Action Start Menu', 'chatbot'); ?>
2397 2540 </label>
2398 2541 </div>
2399 2542 </div>
2400 2543 </div>
@@ -2416,9 +2559,9 @@
2416 2559 <div class="cxsc-settings-blocks">
2417 2560 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2418 2561 name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2419 2562 <label for="disable_wp_chatbot_feedback">
2420 - <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2563 + <?php esc_html_e('Disable Email feature and button on Action Start Menu', 'chatbot'); ?>
2421 2564 </label>
2422 2565 </div>
2423 2566 </div>
2424 2567 </div>
@@ -2440,9 +2583,9 @@
2440 2583 <div class="cxsc-settings-blocks">
2441 2584 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2442 2585 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2443 2586 <label for="disable_wp_chatbot_faq">
2444 - <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2587 + <?php esc_html_e('Disable FAQ feature and button on Action Start Menu', 'chatbot'); ?>
2445 2588 </label>
2446 2589 </div>
2447 2590 </div>
2448 2591 </div>
@@ -2547,8 +2690,21 @@
2547 2690 </ul>
2548 2691 <?php
2549 2692 }
2550 2693 }
2694 +
2695 + // AI Forms
2696 + $saved_ai_forms = get_option( 'wpbot_ai_forms', array() );
2697 + if ( ! empty( $saved_ai_forms ) && is_array( $saved_ai_forms ) ) {
2698 + ?>
2699 + <p><?php esc_html_e('AI Actions', 'chatbot'); ?></p>
2700 + <ul>
2701 + <?php foreach ( $saved_ai_forms as $index => $form ) : ?>
2702 + <li><span class="qcld-chatbot-wildcard qcld-chatbot-ai-form qc_draggable_item" data-wildcart="ai_form" data-ai-form="<?php echo esc_attr( $index ); ?>"><?php echo esc_html( $form['title'] ); ?></span></li>
2703 + <?php endforeach; ?>
2704 + </ul>
2705 + <?php
2706 + }
2551 2707 ?>
2552 2708 </div>
2553 2709 </div>
2554 2710
@@ -2609,16 +2765,23 @@
2609 2765 </div>
2610 2766 <div id="wp-chatbot-df-section-v2" style="display:block">
2611 2767 <!-- Dialogflow V2 Configuration -->
2612 2768
2613 - <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
2769 + <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')):
2770 + global $wp_filesystem;
2771 + if ( empty( $wp_filesystem ) ) {
2772 + require_once ABSPATH . 'wp-admin/includes/file.php';
2773 + WP_Filesystem();
2774 + }
2775 + $qcld_wpchatbot_gc_root_writable = ( $wp_filesystem && $wp_filesystem->is_writable( QCLD_wpCHATBOT_GC_ROOT ) );
2776 + ?>
2614 2777 <div class="form-group"> <br>
2615 2778 <h4 class="qc-opt-title" style="color:red "><?php esc_html_e('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'chatbot'); ?></h4>
2616 2779 <p><?php esc_html_e('Please click the download button below to download the Google Client package. The package will be downloaded inside your Wordpress`s', 'chatbot'); ?> <b><?php esc_html_e('/wp-content', 'chatbot'); ?></b> <?php esc_html_e('folder. This package is around', 'chatbot'); ?> <b><?php esc_html_e('0 MB', 'chatbot'); ?></b><?php esc_html_e(' in zip file format and it will be about', 'chatbot'); ?> <b><?php esc_html_e('49 MB', 'chatbot'); ?></b> <?php esc_html_e('after unzipping. Please make sure that your server has enough space to store that package.', 'chatbot'); ?></p>
2617 2780 <div class="qcld-wpbot-gcdownload-area">
2618 - <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button>
2781 + <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo ( ! $qcld_wpchatbot_gc_root_writable ? 'disabled' : '' ); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button>
2619 2782 <?php
2620 - if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
2783 + if ( ! $qcld_wpchatbot_gc_root_writable ) {
2621 2784 echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>';
2622 2785 }
2623 2786 ?>
2624 2787 <br>
@@ -2701,9 +2864,9 @@
2701 2864 </section>
2702 2865
2703 2866 <section id="section-flip-9">
2704 2867 <div class="cxsc-settings-blocks-addon"><?php esc_html_e('Install the Conversational Form Builder to Collect Information from the users and create Button (menu) Driven Conversations.', 'chatbot'); ?></br>
2705 - <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Start Menu from the ChatBot Settings->Start Menu', 'chatbot'); ?></b></div>
2868 + <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Action Start Menu from the ChatBot Settings->Action Start Menu', 'chatbot'); ?></b></div>
2706 2869
2707 2870 <div class="qcld-recommendbot-conv-feature">
2708 2871 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2709 2872 </div>
@@ -2723,9 +2886,9 @@
2723 2886
2724 2887 <h3><?php esc_html_e('How it Works?', 'chatbot'); ?></h3>
2725 2888 <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'chatbot'); ?></p>
2726 2889 <ul>
2727 - <li><?php esc_html_e('🚀 Add it to the Start menu', 'chatbot'); ?></li>
2890 + <li><?php esc_html_e('🚀 Add it to the Action Start Menu', 'chatbot'); ?></li>
2728 2891 <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'chatbot'); ?></li>
2729 2892 <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'chatbot'); ?></li>
2730 2893 <li><?php esc_html_e('🚀 Load the intent/form inside the ChatBot using a Click to Chat button that can be placed anywhere inside your content on any page.', 'chatbot'); ?></li>
2731 2894 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'chatbot'); ?></li>
@@ -2752,9 +2915,9 @@
2752 2915 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'chatbot'); ?></li>
2753 2916 <li><?php esc_html_e('🚀 Unlimited Variables creation', 'chatbot'); ?></li>
2754 2917 <li><?php esc_html_e('🚀 Form Revisions', 'chatbot'); ?></li>
2755 2918 <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'chatbot'); ?></li>
2756 - <li><?php esc_html_e('🚀 Add form to Start Menu', 'chatbot'); ?></li>
2919 + <li><?php esc_html_e('🚀 Add form to Action Start Menu', 'chatbot'); ?></li>
2757 2920 <li><?php esc_html_e('🚀 Submit Forms to OpenAI for a Response with your instructions and user submitted data. Supports multi-modal mode. Users can upload an Image or Audio file along with other form fields that you create. Check this article on how Conversational forms work with OpenAI.', 'chatbot'); ?></li>
2758 2921 </ul>
2759 2922 </div>
2760 2923