"use client"; import React, { useState } from "react"; import { ChatbotWidget, I18nProvider, useI18n, ThemeName, SupportedLanguage, } from "./index"; // Theme selector component function ThemeSelector() { const currentTheme = "default"; const availableThemes = ["default", "dark", "compact"]; return ( ); } // Demo component without providers function ChatbotDemoInternal() { const [apiConfig, setApiConfig] = useState({ apiBaseUrl: process.env.NEXT_PUBLIC_API_URL || "/api", apiKey: process.env.NEXT_PUBLIC_API_KEY || "", }); return (

Chatbot Demo

Test the chatbot with different themes and languages

{/* Controls */}

Settings

Language selector placeholder
{/* Feature showcase */}

Multi-language Support

The chatbot supports Korean, English, Japanese, and Arabic with proper RTL support.

Theme System

Switch between default, dark, and compact themes. All components adapt automatically.

RAG Integration

Connected to RAG-based AI system for contextual responses with document search.

{/* Instructions */}

How to Test

  • • Click the floating chat button in the bottom-right corner
  • • Try switching languages and see the interface update
  • • Switch themes to see the color scheme change
  • • Test suggested questions in different languages
  • • Try typing in different languages to test RTL support
{/* Chatbot Widget */} { console.error("Chatbot error:", error); }} onMessageSent={(message) => { console.log("Message sent:", message); }} onMessageReceived={(message) => { console.log("Message received:", message); }} />
); } // Main demo component with providers export function ChatbotDemo({ defaultLanguage = "en", defaultTheme = "default" as ThemeName, }: { defaultLanguage?: SupportedLanguage; defaultTheme?: ThemeName; }) { return (
); } export default ChatbotDemo;