|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>AI Assistant Platform | Chatbots & Agents</title> |
|
<script src="https://cdn.tailwindcss.com"></script> |
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
|
<script> |
|
tailwind.config = { |
|
theme: { |
|
extend: { |
|
colors: { |
|
primary: '#4F46E5', |
|
secondary: '#10B981', |
|
dark: '#1E293B', |
|
light: '#F8FAFC' |
|
} |
|
} |
|
} |
|
} |
|
</script> |
|
<style> |
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); |
|
|
|
body { |
|
font-family: 'Inter', sans-serif; |
|
background-color: #F1F5F9; |
|
} |
|
|
|
.sidebar { |
|
transition: all 0.3s ease; |
|
} |
|
|
|
.sidebar.collapsed { |
|
width: 70px; |
|
} |
|
|
|
.sidebar.expanded { |
|
width: 250px; |
|
} |
|
|
|
.sidebar-item:hover { |
|
background-color: #E0E7FF; |
|
} |
|
|
|
.sidebar-item.active { |
|
background-color: #4F46E5; |
|
color: white; |
|
} |
|
|
|
.dashboard-card { |
|
transition: all 0.2s ease; |
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
|
} |
|
|
|
.dashboard-card:hover { |
|
transform: translateY(-3px); |
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); |
|
} |
|
|
|
.status-indicator { |
|
display: inline-block; |
|
width: 10px; |
|
height: 10px; |
|
border-radius: 50%; |
|
margin-right: 8px; |
|
} |
|
|
|
.status-active { |
|
background-color: #10B981; |
|
} |
|
|
|
.status-draft { |
|
background-color: #F59E0B; |
|
} |
|
|
|
.status-inactive { |
|
background-color: #EF4444; |
|
} |
|
|
|
.workflow-block { |
|
min-height: 80px; |
|
border-radius: 8px; |
|
cursor: move; |
|
transition: all 0.2s ease; |
|
} |
|
|
|
.workflow-block:hover { |
|
transform: scale(1.02); |
|
} |
|
|
|
.workflow-canvas { |
|
min-height: 500px; |
|
background: linear-gradient(45deg, #f0f4f8, #e2e8f0); |
|
border-radius: 12px; |
|
position: relative; |
|
overflow: hidden; |
|
} |
|
|
|
.workflow-canvas::before { |
|
content: ""; |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
right: 0; |
|
bottom: 0; |
|
background-image: |
|
linear-gradient(rgba(200, 200, 200, 0.1) 1px, transparent 1px), |
|
linear-gradient(90deg, rgba(200, 200, 200, 0.1) 1px, transparent 1px); |
|
background-size: 20px 20px; |
|
z-index: 0; |
|
} |
|
|
|
.canvas-content { |
|
position: relative; |
|
z-index: 1; |
|
} |
|
|
|
.connection-line { |
|
stroke: #94A3B8; |
|
stroke-width: 2; |
|
marker-end: url(#arrowhead); |
|
} |
|
|
|
.chat-message { |
|
max-width: 80%; |
|
border-radius: 18px; |
|
padding: 12px 16px; |
|
margin-bottom: 16px; |
|
} |
|
|
|
.user-message { |
|
background-color: #4F46E5; |
|
color: white; |
|
margin-left: auto; |
|
} |
|
|
|
.bot-message { |
|
background-color: #E2E8F0; |
|
color: #1E293B; |
|
} |
|
|
|
.pulse { |
|
animation: pulse 2s infinite; |
|
} |
|
|
|
@keyframes pulse { |
|
0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); } |
|
70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); } |
|
100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } |
|
} |
|
|
|
.fade-in { |
|
animation: fadeIn 0.3s ease-in; |
|
} |
|
|
|
@keyframes fadeIn { |
|
from { opacity: 0; transform: translateY(10px); } |
|
to { opacity: 1; transform: translateY(0); } |
|
} |
|
</style> |
|
</head> |
|
<body class="bg-gray-50"> |
|
|
|
<div class="flex h-screen"> |
|
|
|
<div id="sidebar" class="sidebar expanded bg-white shadow-lg h-full flex flex-col"> |
|
<div class="p-5 flex items-center justify-between border-b"> |
|
<div class="flex items-center"> |
|
<div class="bg-indigo-600 w-10 h-10 rounded-lg flex items-center justify-center"> |
|
<i class="fas fa-robot text-white text-xl"></i> |
|
</div> |
|
<h1 class="text-xl font-bold ml-3 text-gray-800">AI Assistant</h1> |
|
</div> |
|
<button id="sidebar-toggle" class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-bars"></i> |
|
</button> |
|
</div> |
|
|
|
<div class="flex-1 py-4"> |
|
<nav> |
|
<a href="#" class="sidebar-item active flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-home mr-3"></i> |
|
<span>Dashboard</span> |
|
</a> |
|
<a href="#" class="sidebar-item flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-comments mr-3"></i> |
|
<span>Chatbots</span> |
|
</a> |
|
<a href="#" class="sidebar-item flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-microchip mr-3"></i> |
|
<span>AI Agents</span> |
|
</a> |
|
<a href="#" class="sidebar-item flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-toolbox mr-3"></i> |
|
<span>Tools</span> |
|
</a> |
|
<a href="#" class="sidebar-item flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-database mr-3"></i> |
|
<span>Knowledge Base</span> |
|
</a> |
|
<a href="#" class="sidebar-item flex items-center px-5 py-3 mb-1"> |
|
<i class="fas fa-cog mr-3"></i> |
|
<span>Settings</span> |
|
</a> |
|
</nav> |
|
</div> |
|
|
|
<div class="p-4 border-t"> |
|
<div class="flex items-center"> |
|
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10"></div> |
|
<div class="ml-3"> |
|
<p class="font-medium text-gray-800">Alex Morgan</p> |
|
<p class="text-sm text-gray-500">[email protected]</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="flex-1 flex flex-col overflow-hidden"> |
|
|
|
<header class="bg-white shadow-sm"> |
|
<div class="flex items-center justify-between p-4"> |
|
<div> |
|
<h2 class="text-xl font-bold text-gray-800">Dashboard</h2> |
|
<p class="text-gray-500 text-sm">Welcome back, Alex!</p> |
|
</div> |
|
<div class="flex items-center space-x-4"> |
|
<button class="relative p-2 text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-bell text-xl"></i> |
|
<span class="absolute top-0 right-0 w-3 h-3 bg-red-500 rounded-full"></span> |
|
</button> |
|
<div class="flex items-center"> |
|
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10"></div> |
|
<span class="ml-2 font-medium text-gray-700">Alex Morgan</span> |
|
</div> |
|
</div> |
|
</div> |
|
</header> |
|
|
|
|
|
<main class="flex-1 overflow-y-auto p-6"> |
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> |
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center"> |
|
<div> |
|
<p class="text-gray-500 text-sm">Total Chatbots</p> |
|
<h3 class="text-2xl font-bold mt-1">12</h3> |
|
</div> |
|
<div class="bg-indigo-100 p-3 rounded-lg"> |
|
<i class="fas fa-comments text-indigo-600 text-xl"></i> |
|
</div> |
|
</div> |
|
<div class="mt-4"> |
|
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 12% from last month</span> |
|
</div> |
|
</div> |
|
|
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center"> |
|
<div> |
|
<p class="text-gray-500 text-sm">Active Agents</p> |
|
<h3 class="text-2xl font-bold mt-1">8</h3> |
|
</div> |
|
<div class="bg-green-100 p-3 rounded-lg"> |
|
<i class="fas fa-microchip text-green-600 text-xl"></i> |
|
</div> |
|
</div> |
|
<div class="mt-4"> |
|
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 5% from last month</span> |
|
</div> |
|
</div> |
|
|
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center"> |
|
<div> |
|
<p class="text-gray-500 text-sm">API Usage</p> |
|
<h3 class="text-2xl font-bold mt-1">1.2M</h3> |
|
</div> |
|
<div class="bg-blue-100 p-3 rounded-lg"> |
|
<i class="fas fa-plug text-blue-600 text-xl"></i> |
|
</div> |
|
</div> |
|
<div class="mt-4"> |
|
<span class="text-red-500 text-sm font-medium"><i class="fas fa-arrow-down"></i> 3% from last month</span> |
|
</div> |
|
</div> |
|
|
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center"> |
|
<div> |
|
<p class="text-gray-500 text-sm">Active Users</p> |
|
<h3 class="text-2xl font-bold mt-1">1,248</h3> |
|
</div> |
|
<div class="bg-purple-100 p-3 rounded-lg"> |
|
<i class="fas fa-users text-purple-600 text-xl"></i> |
|
</div> |
|
</div> |
|
<div class="mt-4"> |
|
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 18% from last month</span> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> |
|
<div class="lg:col-span-2"> |
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center mb-6"> |
|
<h3 class="text-lg font-bold text-gray-800">Recent Chatbots</h3> |
|
<button class="text-indigo-600 hover:text-indigo-800 font-medium"> |
|
<i class="fas fa-plus mr-1"></i> New Chatbot |
|
</button> |
|
</div> |
|
|
|
<div class="overflow-x-auto"> |
|
<table class="min-w-full divide-y divide-gray-200"> |
|
<thead> |
|
<tr> |
|
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th> |
|
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Model</th> |
|
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> |
|
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> |
|
</tr> |
|
</thead> |
|
<tbody class="divide-y divide-gray-200"> |
|
<tr> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<div class="flex items-center"> |
|
<div class="bg-indigo-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-comment text-indigo-600"></i> |
|
</div> |
|
<div> |
|
<div class="text-sm font-medium text-gray-900">Customer Support Bot</div> |
|
<div class="text-sm text-gray-500">ecommerce.com</div> |
|
</div> |
|
</div> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">GPT-4 Turbo</td> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<span class="status-indicator status-active"></span> |
|
<span class="text-sm">Active</span> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm"> |
|
<button class="text-indigo-600 hover:text-indigo-900 mr-3"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-green-600 hover:text-green-900 mr-3"> |
|
<i class="fas fa-play"></i> |
|
</button> |
|
<button class="text-gray-600 hover:text-gray-900"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<div class="flex items-center"> |
|
<div class="bg-green-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-comment text-green-600"></i> |
|
</div> |
|
<div> |
|
<div class="text-sm font-medium text-gray-900">Tech Support Assistant</div> |
|
<div class="text-sm text-gray-500">techsupport.io</div> |
|
</div> |
|
</div> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Claude 2</td> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<span class="status-indicator status-draft"></span> |
|
<span class="text-sm">Draft</span> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm"> |
|
<button class="text-indigo-600 hover:text-indigo-900 mr-3"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-green-600 hover:text-green-900 mr-3"> |
|
<i class="fas fa-play"></i> |
|
</button> |
|
<button class="text-gray-600 hover:text-gray-900"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<div class="flex items-center"> |
|
<div class="bg-blue-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-comment text-blue-600"></i> |
|
</div> |
|
<div> |
|
<div class="text-sm font-medium text-gray-900">Sales Inquiry Bot</div> |
|
<div class="text-sm text-gray-500">sales.example.com</div> |
|
</div> |
|
</div> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Llama 2</td> |
|
<td class="px-4 py-4 whitespace-nowrap"> |
|
<span class="status-indicator status-active"></span> |
|
<span class="text-sm">Active</span> |
|
</td> |
|
<td class="px-4 py-4 whitespace-nowrap text-sm"> |
|
<button class="text-indigo-600 hover:text-indigo-900 mr-3"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-green-600 hover:text-green-900 mr-3"> |
|
<i class="fas fa-play"></i> |
|
</button> |
|
<button class="text-gray-600 hover:text-gray-900"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div> |
|
<div class="dashboard-card bg-white rounded-xl p-6 h-full"> |
|
<div class="flex justify-between items-center mb-6"> |
|
<h3 class="text-lg font-bold text-gray-800">AI Providers</h3> |
|
<button class="text-indigo-600 hover:text-indigo-800 font-medium"> |
|
<i class="fas fa-plus mr-1"></i> Add Provider |
|
</button> |
|
</div> |
|
|
|
<div class="space-y-4"> |
|
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> |
|
<div class="flex items-center"> |
|
<div class="bg-blue-100 p-2 rounded-lg mr-3"> |
|
<i class="fab fa-openai text-blue-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">OpenAI</div> |
|
<div class="text-sm text-gray-500">gpt-4-turbo</div> |
|
</div> |
|
</div> |
|
<div class="flex space-x-2"> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> |
|
<div class="flex items-center"> |
|
<div class="bg-purple-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-robot text-purple-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">Anthropic</div> |
|
<div class="text-sm text-gray-500">claude-2</div> |
|
</div> |
|
</div> |
|
<div class="flex space-x-2"> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> |
|
<div class="flex items-center"> |
|
<div class="bg-yellow-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-microchip text-yellow-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">Hugging Face</div> |
|
<div class="text-sm text-gray-500">llama-2-7b</div> |
|
</div> |
|
</div> |
|
<div class="flex space-x-2"> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-edit"></i> |
|
</button> |
|
<button class="text-gray-500 hover:text-gray-700"> |
|
<i class="fas fa-trash"></i> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="mt-6"> |
|
<h4 class="font-medium text-gray-800 mb-3">Usage Stats</h4> |
|
<div class="space-y-3"> |
|
<div> |
|
<div class="flex justify-between text-sm mb-1"> |
|
<span>OpenAI</span> |
|
<span>45%</span> |
|
</div> |
|
<div class="w-full bg-gray-200 rounded-full h-2"> |
|
<div class="bg-blue-600 h-2 rounded-full" style="width: 45%"></div> |
|
</div> |
|
</div> |
|
<div> |
|
<div class="flex justify-between text-sm mb-1"> |
|
<span>Anthropic</span> |
|
<span>30%</span> |
|
</div> |
|
<div class="w-full bg-gray-200 rounded-full h-2"> |
|
<div class="bg-purple-600 h-2 rounded-full" style="width: 30%"></div> |
|
</div> |
|
</div> |
|
<div> |
|
<div class="flex justify-between text-sm mb-1"> |
|
<span>Hugging Face</span> |
|
<span>25%</span> |
|
</div> |
|
<div class="w-full bg-gray-200 rounded-full h-2"> |
|
<div class="bg-yellow-600 h-2 rounded-full" style="width: 25%"></div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="dashboard-card bg-white rounded-xl p-6 mb-8"> |
|
<div class="flex justify-between items-center mb-6"> |
|
<h3 class="text-lg font-bold text-gray-800">Workflow Editor</h3> |
|
<div class="flex space-x-3"> |
|
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200"> |
|
<i class="fas fa-save mr-2"></i> Save Draft |
|
</button> |
|
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 pulse"> |
|
<i class="fas fa-play mr-2"></i> Test Workflow |
|
</button> |
|
<button class="px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700"> |
|
<i class="fas fa-rocket mr-2"></i> Deploy |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> |
|
<div class="lg:col-span-1"> |
|
<div class="bg-gray-50 rounded-lg p-4"> |
|
<h4 class="font-medium text-gray-800 mb-3">Toolbox</h4> |
|
<div class="space-y-3"> |
|
<div class="workflow-block bg-white border border-gray-200 p-4 flex items-center"> |
|
<div class="bg-indigo-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-comment text-indigo-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">User Input</div> |
|
<div class="text-sm text-gray-500">Get user message</div> |
|
</div> |
|
</div> |
|
|
|
<div class="workflow-block bg-white border border-gray-200 p-4 flex items-center"> |
|
<div class="bg-green-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-brain text-green-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">AI Response</div> |
|
<div class="text-sm text-gray-500">Generate AI output</div> |
|
</div> |
|
</div> |
|
|
|
<div class="workflow-block bg-white border border-gray-200 p-4 flex items-center"> |
|
<div class="bg-blue-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-database text-blue-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">Knowledge Base</div> |
|
<div class="text-sm text-gray-500">Access stored data</div> |
|
</div> |
|
</div> |
|
|
|
<div class="workflow-block bg-white border border-gray-200 p-4 flex items-center"> |
|
<div class="bg-yellow-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-code text-yellow-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">Custom Tool</div> |
|
<div class="text-sm text-gray-500">Execute custom function</div> |
|
</div> |
|
</div> |
|
|
|
<div class="workflow-block bg-white border border-gray-200 p-4 flex items-center"> |
|
<div class="bg-red-100 p-2 rounded-lg mr-3"> |
|
<i class="fas fa-external-link-alt text-red-600"></i> |
|
</div> |
|
<div> |
|
<div class="font-medium text-gray-800">API Call</div> |
|
<div class="text-sm text-gray-500">Make external request</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="lg:col-span-3"> |
|
<div class="workflow-canvas p-4"> |
|
<div class="canvas-content"> |
|
<div class="flex flex-col items-center justify-center h-full text-gray-400"> |
|
<i class="fas fa-project-diagram text-4xl mb-4"></i> |
|
<p class="text-lg">Drag and drop blocks to create your workflow</p> |
|
<p class="mt-2">Connect blocks to define the logic flow</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="dashboard-card bg-white rounded-xl p-6"> |
|
<div class="flex justify-between items-center mb-6"> |
|
<h3 class="text-lg font-bold text-gray-800">Chat Interface</h3> |
|
<div class="flex space-x-2"> |
|
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg text-sm hover:bg-gray-200"> |
|
<i class="fas fa-sync mr-1"></i> Reset |
|
</button> |
|
<button class="px-3 py-1 bg-indigo-100 text-indigo-700 rounded-lg text-sm hover:bg-indigo-200"> |
|
<i class="fas fa-copy mr-1"></i> Copy Code |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="flex flex-col md:flex-row gap-6"> |
|
<div class="md:w-1/2"> |
|
<div class="bg-gray-50 rounded-lg p-4 h-96 overflow-y-auto"> |
|
<div class="chat-message bot-message"> |
|
Hello! I'm your AI assistant. How can I help you today? |
|
</div> |
|
<div class="chat-message user-message"> |
|
Can you explain how to create a new chatbot? |
|
</div> |
|
<div class="chat-message bot-message"> |
|
Sure! To create a new chatbot, go to the Chatbots section, click "New Chatbot", and follow the wizard. You'll need to configure the name, model, system prompt, and optionally add knowledge sources. |
|
</div> |
|
<div class="chat-message user-message"> |
|
What models are supported? |
|
</div> |
|
<div class="chat-message bot-message"> |
|
We support OpenAI models (GPT-3.5, GPT-4), Anthropic models (Claude), and open-source models like Llama 2. You can also connect to custom endpoints. |
|
</div> |
|
</div> |
|
|
|
<div class="mt-4 flex"> |
|
<input type="text" placeholder="Type your message..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> |
|
<button class="bg-indigo-600 text-white px-6 rounded-r-lg hover:bg-indigo-700"> |
|
<i class="fas fa-paper-plane"></i> |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="md:w-1/2"> |
|
<div class="bg-gray-50 rounded-lg p-4"> |
|
<h4 class="font-medium text-gray-800 mb-3">Widget Customization</h4> |
|
|
|
<div class="space-y-4"> |
|
<div> |
|
<label class="block text-sm font-medium text-gray-700 mb-1">Chat Bubble Style</label> |
|
<div class="flex space-x-3"> |
|
<div class="w-8 h-8 rounded-full bg-indigo-600 border-2 border-white shadow"></div> |
|
<div class="w-8 h-8 rounded-lg bg-indigo-600 border-2 border-white shadow"></div> |
|
<div class="w-8 h-8 rounded-full bg-green-600 border-2 border-white shadow"></div> |
|
<div class="w-8 h-8 rounded-lg bg-green-600 border-2 border-white shadow"></div> |
|
</div> |
|
</div> |
|
|
|
<div> |
|
<label class="block text-sm font-medium text-gray-700 mb-1">Primary Color</label> |
|
<div class="flex space-x-3"> |
|
<div class="w-8 h-8 rounded bg-indigo-600 cursor-pointer"></div> |
|
<div class="w-8 h-8 rounded bg-blue-600 cursor-pointer"></div> |
|
<div class="w-8 h-8 rounded bg-green-600 cursor-pointer"></div> |
|
<div class="w-8 h-8 rounded bg-purple-600 cursor-pointer"></div> |
|
</div> |
|
</div> |
|
|
|
<div> |
|
<label class="block text-sm font-medium text-gray-700 mb-1">Position</label> |
|
<div class="flex space-x-3"> |
|
<button class="px-3 py-1 bg-indigo-100 text-indigo-700 rounded-lg text-sm">Bottom Right</button> |
|
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg text-sm">Bottom Left</button> |
|
</div> |
|
</div> |
|
|
|
<div> |
|
<label class="block text-sm font-medium text-gray-700 mb-1">Embed Code</label> |
|
<div class="bg-gray-800 text-gray-200 p-3 rounded-lg text-sm font-mono overflow-x-auto"> |
|
<script src="https://aiplatform.com/widget.js"></script><br> |
|
<div id="ai-chat-widget"></div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</main> |
|
</div> |
|
</div> |
|
|
|
<script> |
|
|
|
document.getElementById('sidebar-toggle').addEventListener('click', function() { |
|
const sidebar = document.getElementById('sidebar'); |
|
sidebar.classList.toggle('collapsed'); |
|
sidebar.classList.toggle('expanded'); |
|
}); |
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() { |
|
const chatContainer = document.querySelector('.bg-gray-50.overflow-y-auto'); |
|
const inputField = document.querySelector('input[type="text"]'); |
|
const sendButton = document.querySelector('button.bg-indigo-600'); |
|
|
|
function sendMessage() { |
|
const message = inputField.value.trim(); |
|
if (message) { |
|
|
|
const userMessage = document.createElement('div'); |
|
userMessage.className = 'chat-message user-message'; |
|
userMessage.textContent = message; |
|
chatContainer.appendChild(userMessage); |
|
|
|
|
|
inputField.value = ''; |
|
|
|
|
|
chatContainer.scrollTop = chatContainer.scrollHeight; |
|
|
|
|
|
setTimeout(() => { |
|
const botMessage = document.createElement('div'); |
|
botMessage.className = 'chat-message bot-message'; |
|
botMessage.textContent = "Thanks for your message! This is a simulated response from the AI assistant."; |
|
chatContainer.appendChild(botMessage); |
|
|
|
|
|
chatContainer.scrollTop = chatContainer.scrollHeight; |
|
}, 1000); |
|
} |
|
} |
|
|
|
sendButton.addEventListener('click', sendMessage); |
|
|
|
inputField.addEventListener('keypress', function(e) { |
|
if (e.key === 'Enter') { |
|
sendMessage(); |
|
} |
|
}); |
|
}); |
|
</script> |
|
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=adowu/agentsaww" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
|
</html> |