' . $message . '
'; } $atts = shortcode_atts( array( 'title' => $settings['business_name'] ?? __( 'Ask me anything', 'aiohm-knowledge-assistant' ), 'placeholder' => __( 'Type your question here...', 'aiohm-knowledge-assistant' ), 'height' => '400', 'width' => '100%', 'theme' => 'ohm-green', 'position' => 'inline', 'show_branding' => 'true', 'welcome_message' => $settings['welcome_message'] ?? 'Hey there! I am your AI assistant. I can help answer questions about our services and content. Ask me anything!', 'max_height' => '600', ), $atts, 'aiohm_chat' ); static $chat_counter = 0; ++$chat_counter; $chat_id = 'aiohm-chat-' . $chat_counter; wp_enqueue_script( 'aiohm-chat' ); wp_enqueue_style( 'aiohm-chat' ); $output = '