Plugin Directory

Changeset 3356143


Ignore:
Timestamp:
09/04/2025 01:54:32 PM (7 months ago)
Author:
alphainterface
Message:

UI change, Chatbot name, Welcome message, FAQ

Location:
chat-bot-alpha-interface/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chat-bot-alpha-interface/trunk/chat-bot-alpha_interface.php

    r3354460 r3356143  
    44 * Plugin URI: https://www.npmjs.com/package/alpha-interface
    55 * Description: Embeds the Alpha Interface chatbot into your site using a custom web component.
    6  * Version: 2.0.2
     6 * Version: 2.0.3
    77 * Author: alphainterface
    88 * Author URI: https://alphainterface.ai
     
    2222    wp_register_script(
    2323        'ai-chatbot-module',
    24         'https://cdn.jsdelivr.net/npm/alpha-interface@1.0.0/dist/hash-bot/hash-bot.esm.js',
     24        'https://cdn.jsdelivr.net/npm/alpha-interface@1.0.1/dist/hash-bot/hash-bot.esm.js',
    2525        [],
    2626        null,
     
    4747    $apiurl        = esc_attr( $options['apiurl'] ?? '' );
    4848    $agent_uuid    = esc_attr( $options['agent_uuid'] ?? '' );
     49    $welcome_message = esc_attr( $options['welcome_message'] ?? '' );
     50    $bot_name = esc_attr( $options['bot_name'] ?? 'Chat Bot' );
    4951    $iconsize      = esc_attr( $options['iconsize'] ?? '70' );
    5052    $chatbotwidth  = esc_attr( $options['chatbotwidth'] ?? '300' );
     
    5456            agent_uuid="'. $agent_uuid . '"
    5557            apiurl="' . $apiurl . '"
     58            welcome_message="' . $welcome_message . '"
     59            bot_name="' . $bot_name . '"
    5660            iconsize="' . $iconsize . '"
    5761            chatbotwidth="' . $chatbotwidth . '"
     
    118122                </tr>
    119123                <tr>
     124                    <th scope="row">Welcome Message</th>
     125                    <td><input type="text" name="ai_chatbot_settings[welcome_message]" value="<?php echo esc_attr( $options['welcome_message'] ?? "Hi! \n I'm an AI assistant trained on documentation, help articles, and other content. \n \n Ask me anything!" ); ?>" class="regular-text" /></td>
     126                </tr>
     127                <tr>
     128                    <th scope="row">Bot Name</th>
     129                    <td><input type="text" name="ai_chatbot_settings[bot_name]" value="<?php echo esc_attr( $options['bot_name'] ?? '' ); ?>" class="regular-text" /></td>
     130                </tr>
     131                <tr>
    120132                    <th scope="row">Icon Size</th>
    121133                    <td><input type="number" name="ai_chatbot_settings[iconsize]" value="<?php echo esc_attr( $options['iconsize'] ?? '70' ); ?>" /></td>
  • chat-bot-alpha-interface/trunk/readme.txt

    r3354460 r3356143  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.0.2
     6Stable tag: 2.0.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3030
    3131== Changelog ==
    32 = 2.0.2 =
    33 * Removed chat_id
     32= 2.0.3 =
     33* UI change, Chatbot name, Welcome message, FAQ
    3434
    3535== Source Code ==
Note: See TracChangeset for help on using the changeset viewer.