Plugin Directory

Changeset 3839920


Ignore:
Timestamp:
12/02/2026 11:48:22 AM (27 hours ago)
Author:
markusgeretshauser
Message:

Version 1.8.13 (AI transparency notice in the chat window, EU AI Act Art. 50; privacy export/erasure covers leads and waitlist)

Location:
botermin-ai-chatbot-booking
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • botermin-ai-chatbot-booking/tags/1.8.13/assets/chat.css

    r3765244 r3839920  
    257257}
    258258
     259.kcb-ai-notice {
     260        margin: 0;
     261        padding: 6px 14px;
     262        font-size: 12px;
     263        line-height: 1.4;
     264        background: var( --kcb-panel-bg, #fff );
     265        color: var( --kcb-text, #1c1e21 );
     266        border-bottom: 1px solid rgba( 128, 128, 128, 0.25 );
     267}
     268
    259269.kcb-messages {
    260270        flex: 1;
  • botermin-ai-chatbot-booking/tags/1.8.13/assets/chat.js

    r3831906 r3839920  
    191191                }
    192192                this.panel.appendChild( head );
     193
     194                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO: fest, nicht abschaltbar
     195                if ( Botermin_CFG.aiNotice ) {
     196                        var notice = el( 'p', 'kcb-ai-notice', Botermin_CFG.aiNotice );
     197                        notice.setAttribute( 'role', 'note' );
     198                        this.panel.appendChild( notice );
     199                }
    193200
    194201                // Nachrichten
  • botermin-ai-chatbot-booking/tags/1.8.13/botermin-ai-chatbot-booking.php

    r3835117 r3839920  
    44 * Plugin URI:        https://markus-geretshauser.de/ai-chatbot-appointment-booking/
    55 * Description:       AI chatbot that answers questions about your business and books appointments straight into your calendars.
    6  * Version:           1.8.12
     6 * Version:           1.8.13
    77 * Requires at least: 6.2
    88 * Requires PHP:      8.0
    … …  
    5353}
    5454
    55 define( 'BOTERMIN_VERSION', '1.8.12' );
     55define( 'BOTERMIN_VERSION', '1.8.13' );
    5656// Welche der beiden Auslieferungen laeuft hier. Das Bauskript setzt in der
    5757// Einzelfassung 'single' ein; der Shop erkennt daran, welches Paket er zum
    … …  
    255255                                'privacyUrl'     => $privacy['privacy_url'],
    256256                                'privacyLabel'   => __( 'Privacy policy', 'botermin-ai-chatbot-booking' ),
     257                                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO, bewusst ohne Schalter.
     258                                'aiNotice'       => Botermin_Address::pick(
     259                                        __( 'You are chatting with an AI assistant. Replies are generated automatically.', 'botermin-ai-chatbot-booking' ),
     260                                        __( "You're chatting with an AI assistant. Replies are generated automatically.", 'botermin-ai-chatbot-booking' )
     261                                ),
    257262                                'errorText'      => Botermin_Address::pick(
    258263                                        __( 'Connection not possible. Please try again later.', 'botermin-ai-chatbot-booking' ),
  • botermin-ai-chatbot-booking/tags/1.8.13/includes/class-botermin-address.php

    r3685230 r3839920  
    145145                        'appearance' => array(
    146146                                'title'    => array(
    147                                         __( 'Your digital assistant', 'botermin-ai-chatbot-booking' ),
    148                                         __( 'Your assistant', 'botermin-ai-chatbot-booking' ),
     147                                        __( 'Your digital AI assistant', 'botermin-ai-chatbot-booking' ),
     148                                        __( 'Your AI assistant', 'botermin-ai-chatbot-booking' ),
    149149                                ),
    150150                                'greeting' => array(
    151                                         __( 'Good day. I answer your questions and will gladly arrange an appointment for you. How may I help?', 'botermin-ai-chatbot-booking' ),
    152                                         __( 'Hi! I answer your questions and can book an appointment for you right away. How can I help?', 'botermin-ai-chatbot-booking' ),
     151                                        __( 'Good day. I am an AI assistant: I answer your questions and will gladly arrange an appointment for you. How may I help?', 'botermin-ai-chatbot-booking' ),
     152                                        __( "Hi! I'm an AI assistant: I answer your questions and can book an appointment for you right away. How can I help?", 'botermin-ai-chatbot-booking' ),
    153153                                ),
    154154                                'placeholder' => array(
  • botermin-ai-chatbot-booking/tags/1.8.13/includes/class-botermin-privacy.php

    r3685230 r3839920  
    163163                }
    164164
     165                // Rueckrufanfragen (Leads) und Warteliste gehoeren genauso zur Auskunft.
     166                $leads = $wpdb->get_results(
     167                        $wpdb->prepare( 'SELECT * FROM %i WHERE email = %s', Botermin_DB::leads(), $email ),
     168                        ARRAY_A
     169                );
     170                foreach ( (array) $leads as $row ) {
     171                        $items[] = array(
     172                                'group_id'    => 'botermin-leads',
     173                                'group_label' => __( 'Callback requests', 'botermin-ai-chatbot-booking' ),
     174                                'item_id'     => 'kcb-lead-' . (int) $row['id'],
     175                                'data'        => array(
     176                                        array(
     177                                                'name'  => __( 'Name', 'botermin-ai-chatbot-booking' ),
     178                                                'value' => $row['name'],
     179                                        ),
     180                                        array(
     181                                                'name'  => __( 'Email', 'botermin-ai-chatbot-booking' ),
     182                                                'value' => $row['email'],
     183                                        ),
     184                                        array(
     185                                                'name'  => __( 'Phone', 'botermin-ai-chatbot-booking' ),
     186                                                'value' => $row['phone'],
     187                                        ),
     188                                        array(
     189                                                'name'  => __( 'Question', 'botermin-ai-chatbot-booking' ),
     190                                                'value' => $row['question'],
     191                                        ),
     192                                        array(
     193                                                'name'  => __( 'Status', 'botermin-ai-chatbot-booking' ),
     194                                                'value' => $row['status'],
     195                                        ),
     196                                ),
     197                        );
     198                }
     199
     200                $wait = $wpdb->get_results(
     201                        $wpdb->prepare( 'SELECT * FROM %i WHERE customer_email = %s', Botermin_DB::waitlist(), $email ),
     202                        ARRAY_A
     203                );
     204                foreach ( (array) $wait as $row ) {
     205                        $items[] = array(
     206                                'group_id'    => 'botermin-waitlist',
     207                                'group_label' => __( 'Waiting list', 'botermin-ai-chatbot-booking' ),
     208                                'item_id'     => 'kcb-waitlist-' . (int) $row['id'],
     209                                'data'        => array(
     210                                        array(
     211                                                'name'  => __( 'Service', 'botermin-ai-chatbot-booking' ),
     212                                                'value' => $row['service'],
     213                                        ),
     214                                        array(
     215                                                'name'  => __( 'Name', 'botermin-ai-chatbot-booking' ),
     216                                                'value' => $row['customer_name'],
     217                                        ),
     218                                        array(
     219                                                'name'  => __( 'Email', 'botermin-ai-chatbot-booking' ),
     220                                                'value' => $row['customer_email'],
     221                                        ),
     222                                        array(
     223                                                'name'  => __( 'Phone', 'botermin-ai-chatbot-booking' ),
     224                                                'value' => $row['customer_phone'],
     225                                        ),
     226                                        array(
     227                                                'name'  => __( 'Note', 'botermin-ai-chatbot-booking' ),
     228                                                'value' => $row['note'],
     229                                        ),
     230                                        array(
     231                                                'name'  => __( 'Status', 'botermin-ai-chatbot-booking' ),
     232                                                'value' => $row['status'],
     233                                        ),
     234                                ),
     235                        );
     236                }
     237
    165238                return array(
    166239                        'data' => $items,
    … …  
    182255                $messages     = Botermin_DB::messages();
    183256
    184                 $sessions = $wpdb->get_col(
    185                         $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $appointments, $email )
    186                 );
    187 
    188                 $removed = $wpdb->query(
     257                $leads        = Botermin_DB::leads();
     258                $wait         = Botermin_DB::waitlist();
     259
     260                $sessions = array_merge(
     261                        (array) $wpdb->get_col(
     262                                $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $appointments, $email )
     263                        ),
     264                        (array) $wpdb->get_col(
     265                                $wpdb->prepare( "SELECT session_id FROM %i WHERE email = %s AND session_id <> ''", $leads, $email )
     266                        ),
     267                        (array) $wpdb->get_col(
     268                                $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $wait, $email )
     269                        )
     270                );
     271                $sessions = array_unique( $sessions );
     272
     273                $removed  = (int) $wpdb->query(
    189274                        $wpdb->prepare( 'DELETE FROM %i WHERE customer_email = %s', $appointments, $email )
     275                );
     276                $removed += (int) $wpdb->query(
     277                        $wpdb->prepare( 'DELETE FROM %i WHERE email = %s', $leads, $email )
     278                );
     279                $removed += (int) $wpdb->query(
     280                        $wpdb->prepare( 'DELETE FROM %i WHERE customer_email = %s', $wait, $email )
    190281                );
    191282
  • botermin-ai-chatbot-booking/tags/1.8.13/includes/class-botermin-rest.php

    r3832255 r3839920  
    436436                                'privacyUrl'       => $s['privacy']['privacy_url'],
    437437                                'privacyLabel'     => __( 'Privacy policy', 'botermin-ai-chatbot-booking' ),
     438                                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO, bewusst ohne Schalter.
     439                                'aiNotice'         => Botermin_Address::pick(
     440                                        __( 'You are chatting with an AI assistant. Replies are generated automatically.', 'botermin-ai-chatbot-booking' ),
     441                                        __( "You're chatting with an AI assistant. Replies are generated automatically.", 'botermin-ai-chatbot-booking' )
     442                                ),
    438443                                'errorText'        => Botermin_Address::pick(
    439444                                        __( 'Connection not possible. Please try again later.', 'botermin-ai-chatbot-booking' ),
  • botermin-ai-chatbot-booking/tags/1.8.13/languages/botermin-ai-chatbot-booking.pot

    r3835117 r3839920  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: AI Chatbot & Appointment Booking 1.8.12\n"
     5"Project-Id-Version: AI Chatbot & Appointment Booking 1.8.13\n"
    66"MIME-Version: 1.0\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    17051705msgstr ""
    17061706
     1707msgid "You are chatting with an AI assistant. Replies are generated automatically."
     1708msgstr ""
     1709
     1710msgid "You're chatting with an AI assistant. Replies are generated automatically."
     1711msgstr ""
     1712
    17071713msgid "Connection not possible. Please try again later."
    17081714msgstr ""
    … …  
    17381744msgstr ""
    17391745
    1740 msgid "Your digital assistant"
    1741 msgstr ""
    1742 
    1743 msgid "Your assistant"
    1744 msgstr ""
    1745 
    1746 msgid "Good day. I answer your questions and will gladly arrange an appointment for you. How may I help?"
    1747 msgstr ""
    1748 
    1749 msgid "Hi! I answer your questions and can book an appointment for you right away. How can I help?"
     1746msgid "Your digital AI assistant"
     1747msgstr ""
     1748
     1749msgid "Your AI assistant"
     1750msgstr ""
     1751
     1752msgid "Good day. I am an AI assistant: I answer your questions and will gladly arrange an appointment for you. How may I help?"
     1753msgstr ""
     1754
     1755msgid "Hi! I'm an AI assistant: I answer your questions and can book an appointment for you right away. How can I help?"
    17501756msgstr ""
    17511757
  • botermin-ai-chatbot-booking/tags/1.8.13/readme.txt

    r3835117 r3839920  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 1.8.12
     7Stable tag: 1.8.13
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    132132== Changelog ==
    133133
    134 = 1.8.12 =
     134= 1.8.13 =
    135135* First release in the directory.
  • botermin-ai-chatbot-booking/trunk/assets/chat.css

    r3765244 r3839920  
    257257}
    258258
     259.kcb-ai-notice {
     260        margin: 0;
     261        padding: 6px 14px;
     262        font-size: 12px;
     263        line-height: 1.4;
     264        background: var( --kcb-panel-bg, #fff );
     265        color: var( --kcb-text, #1c1e21 );
     266        border-bottom: 1px solid rgba( 128, 128, 128, 0.25 );
     267}
     268
    259269.kcb-messages {
    260270        flex: 1;
  • botermin-ai-chatbot-booking/trunk/assets/chat.js

    r3831906 r3839920  
    191191                }
    192192                this.panel.appendChild( head );
     193
     194                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO: fest, nicht abschaltbar
     195                if ( Botermin_CFG.aiNotice ) {
     196                        var notice = el( 'p', 'kcb-ai-notice', Botermin_CFG.aiNotice );
     197                        notice.setAttribute( 'role', 'note' );
     198                        this.panel.appendChild( notice );
     199                }
    193200
    194201                // Nachrichten
  • botermin-ai-chatbot-booking/trunk/botermin-ai-chatbot-booking.php

    r3835117 r3839920  
    44 * Plugin URI:        https://markus-geretshauser.de/ai-chatbot-appointment-booking/
    55 * Description:       AI chatbot that answers questions about your business and books appointments straight into your calendars.
    6  * Version:           1.8.12
     6 * Version:           1.8.13
    77 * Requires at least: 6.2
    88 * Requires PHP:      8.0
    … …  
    5353}
    5454
    55 define( 'BOTERMIN_VERSION', '1.8.12' );
     55define( 'BOTERMIN_VERSION', '1.8.13' );
    5656// Welche der beiden Auslieferungen laeuft hier. Das Bauskript setzt in der
    5757// Einzelfassung 'single' ein; der Shop erkennt daran, welches Paket er zum
    … …  
    255255                                'privacyUrl'     => $privacy['privacy_url'],
    256256                                'privacyLabel'   => __( 'Privacy policy', 'botermin-ai-chatbot-booking' ),
     257                                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO, bewusst ohne Schalter.
     258                                'aiNotice'       => Botermin_Address::pick(
     259                                        __( 'You are chatting with an AI assistant. Replies are generated automatically.', 'botermin-ai-chatbot-booking' ),
     260                                        __( "You're chatting with an AI assistant. Replies are generated automatically.", 'botermin-ai-chatbot-booking' )
     261                                ),
    257262                                'errorText'      => Botermin_Address::pick(
    258263                                        __( 'Connection not possible. Please try again later.', 'botermin-ai-chatbot-booking' ),
  • botermin-ai-chatbot-booking/trunk/includes/class-botermin-address.php

    r3685230 r3839920  
    145145                        'appearance' => array(
    146146                                'title'    => array(
    147                                         __( 'Your digital assistant', 'botermin-ai-chatbot-booking' ),
    148                                         __( 'Your assistant', 'botermin-ai-chatbot-booking' ),
     147                                        __( 'Your digital AI assistant', 'botermin-ai-chatbot-booking' ),
     148                                        __( 'Your AI assistant', 'botermin-ai-chatbot-booking' ),
    149149                                ),
    150150                                'greeting' => array(
    151                                         __( 'Good day. I answer your questions and will gladly arrange an appointment for you. How may I help?', 'botermin-ai-chatbot-booking' ),
    152                                         __( 'Hi! I answer your questions and can book an appointment for you right away. How can I help?', 'botermin-ai-chatbot-booking' ),
     151                                        __( 'Good day. I am an AI assistant: I answer your questions and will gladly arrange an appointment for you. How may I help?', 'botermin-ai-chatbot-booking' ),
     152                                        __( "Hi! I'm an AI assistant: I answer your questions and can book an appointment for you right away. How can I help?", 'botermin-ai-chatbot-booking' ),
    153153                                ),
    154154                                'placeholder' => array(
  • botermin-ai-chatbot-booking/trunk/includes/class-botermin-privacy.php

    r3685230 r3839920  
    163163                }
    164164
     165                // Rueckrufanfragen (Leads) und Warteliste gehoeren genauso zur Auskunft.
     166                $leads = $wpdb->get_results(
     167                        $wpdb->prepare( 'SELECT * FROM %i WHERE email = %s', Botermin_DB::leads(), $email ),
     168                        ARRAY_A
     169                );
     170                foreach ( (array) $leads as $row ) {
     171                        $items[] = array(
     172                                'group_id'    => 'botermin-leads',
     173                                'group_label' => __( 'Callback requests', 'botermin-ai-chatbot-booking' ),
     174                                'item_id'     => 'kcb-lead-' . (int) $row['id'],
     175                                'data'        => array(
     176                                        array(
     177                                                'name'  => __( 'Name', 'botermin-ai-chatbot-booking' ),
     178                                                'value' => $row['name'],
     179                                        ),
     180                                        array(
     181                                                'name'  => __( 'Email', 'botermin-ai-chatbot-booking' ),
     182                                                'value' => $row['email'],
     183                                        ),
     184                                        array(
     185                                                'name'  => __( 'Phone', 'botermin-ai-chatbot-booking' ),
     186                                                'value' => $row['phone'],
     187                                        ),
     188                                        array(
     189                                                'name'  => __( 'Question', 'botermin-ai-chatbot-booking' ),
     190                                                'value' => $row['question'],
     191                                        ),
     192                                        array(
     193                                                'name'  => __( 'Status', 'botermin-ai-chatbot-booking' ),
     194                                                'value' => $row['status'],
     195                                        ),
     196                                ),
     197                        );
     198                }
     199
     200                $wait = $wpdb->get_results(
     201                        $wpdb->prepare( 'SELECT * FROM %i WHERE customer_email = %s', Botermin_DB::waitlist(), $email ),
     202                        ARRAY_A
     203                );
     204                foreach ( (array) $wait as $row ) {
     205                        $items[] = array(
     206                                'group_id'    => 'botermin-waitlist',
     207                                'group_label' => __( 'Waiting list', 'botermin-ai-chatbot-booking' ),
     208                                'item_id'     => 'kcb-waitlist-' . (int) $row['id'],
     209                                'data'        => array(
     210                                        array(
     211                                                'name'  => __( 'Service', 'botermin-ai-chatbot-booking' ),
     212                                                'value' => $row['service'],
     213                                        ),
     214                                        array(
     215                                                'name'  => __( 'Name', 'botermin-ai-chatbot-booking' ),
     216                                                'value' => $row['customer_name'],
     217                                        ),
     218                                        array(
     219                                                'name'  => __( 'Email', 'botermin-ai-chatbot-booking' ),
     220                                                'value' => $row['customer_email'],
     221                                        ),
     222                                        array(
     223                                                'name'  => __( 'Phone', 'botermin-ai-chatbot-booking' ),
     224                                                'value' => $row['customer_phone'],
     225                                        ),
     226                                        array(
     227                                                'name'  => __( 'Note', 'botermin-ai-chatbot-booking' ),
     228                                                'value' => $row['note'],
     229                                        ),
     230                                        array(
     231                                                'name'  => __( 'Status', 'botermin-ai-chatbot-booking' ),
     232                                                'value' => $row['status'],
     233                                        ),
     234                                ),
     235                        );
     236                }
     237
    165238                return array(
    166239                        'data' => $items,
    … …  
    182255                $messages     = Botermin_DB::messages();
    183256
    184                 $sessions = $wpdb->get_col(
    185                         $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $appointments, $email )
    186                 );
    187 
    188                 $removed = $wpdb->query(
     257                $leads        = Botermin_DB::leads();
     258                $wait         = Botermin_DB::waitlist();
     259
     260                $sessions = array_merge(
     261                        (array) $wpdb->get_col(
     262                                $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $appointments, $email )
     263                        ),
     264                        (array) $wpdb->get_col(
     265                                $wpdb->prepare( "SELECT session_id FROM %i WHERE email = %s AND session_id <> ''", $leads, $email )
     266                        ),
     267                        (array) $wpdb->get_col(
     268                                $wpdb->prepare( "SELECT session_id FROM %i WHERE customer_email = %s AND session_id <> ''", $wait, $email )
     269                        )
     270                );
     271                $sessions = array_unique( $sessions );
     272
     273                $removed  = (int) $wpdb->query(
    189274                        $wpdb->prepare( 'DELETE FROM %i WHERE customer_email = %s', $appointments, $email )
     275                );
     276                $removed += (int) $wpdb->query(
     277                        $wpdb->prepare( 'DELETE FROM %i WHERE email = %s', $leads, $email )
     278                );
     279                $removed += (int) $wpdb->query(
     280                        $wpdb->prepare( 'DELETE FROM %i WHERE customer_email = %s', $wait, $email )
    190281                );
    191282
  • botermin-ai-chatbot-booking/trunk/includes/class-botermin-rest.php

    r3832255 r3839920  
    436436                                'privacyUrl'       => $s['privacy']['privacy_url'],
    437437                                'privacyLabel'     => __( 'Privacy policy', 'botermin-ai-chatbot-booking' ),
     438                                // KI-Hinweis nach Art. 50 Abs. 1 KI-VO, bewusst ohne Schalter.
     439                                'aiNotice'         => Botermin_Address::pick(
     440                                        __( 'You are chatting with an AI assistant. Replies are generated automatically.', 'botermin-ai-chatbot-booking' ),
     441                                        __( "You're chatting with an AI assistant. Replies are generated automatically.", 'botermin-ai-chatbot-booking' )
     442                                ),
    438443                                'errorText'        => Botermin_Address::pick(
    439444                                        __( 'Connection not possible. Please try again later.', 'botermin-ai-chatbot-booking' ),
  • botermin-ai-chatbot-booking/trunk/languages/botermin-ai-chatbot-booking.pot

    r3835117 r3839920  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: AI Chatbot & Appointment Booking 1.8.12\n"
     5"Project-Id-Version: AI Chatbot & Appointment Booking 1.8.13\n"
    66"MIME-Version: 1.0\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    17051705msgstr ""
    17061706
     1707msgid "You are chatting with an AI assistant. Replies are generated automatically."
     1708msgstr ""
     1709
     1710msgid "You're chatting with an AI assistant. Replies are generated automatically."
     1711msgstr ""
     1712
    17071713msgid "Connection not possible. Please try again later."
    17081714msgstr ""
    … …  
    17381744msgstr ""
    17391745
    1740 msgid "Your digital assistant"
    1741 msgstr ""
    1742 
    1743 msgid "Your assistant"
    1744 msgstr ""
    1745 
    1746 msgid "Good day. I answer your questions and will gladly arrange an appointment for you. How may I help?"
    1747 msgstr ""
    1748 
    1749 msgid "Hi! I answer your questions and can book an appointment for you right away. How can I help?"
     1746msgid "Your digital AI assistant"
     1747msgstr ""
     1748
     1749msgid "Your AI assistant"
     1750msgstr ""
     1751
     1752msgid "Good day. I am an AI assistant: I answer your questions and will gladly arrange an appointment for you. How may I help?"
     1753msgstr ""
     1754
     1755msgid "Hi! I'm an AI assistant: I answer your questions and can book an appointment for you right away. How can I help?"
    17501756msgstr ""
    17511757
  • botermin-ai-chatbot-booking/trunk/readme.txt

    r3835117 r3839920  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 1.8.12
     7Stable tag: 1.8.13
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    132132== Changelog ==
    133133
    134 = 1.8.12 =
     134= 1.8.13 =
    135135* First release in the directory.
Note: See TracChangeset for help on using the changeset viewer.