File size: 42,829 Bytes
edffae9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
<!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">
    <!-- Main Container -->
    <div class="flex h-screen">
        <!-- Sidebar -->
        <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>
        
        <!-- Main Content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Top Bar -->
            <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>
            
            <!-- Dashboard Content -->
            <main class="flex-1 overflow-y-auto p-6">
                <!-- Stats Cards -->
                <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>
                
                <!-- Recent Activity -->
                <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>
                
                <!-- Visual Workflow Editor -->
                <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>
                
                <!-- Chat Interface -->
                <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">
                                            &lt;script src="https://aiplatform.com/widget.js"&gt;&lt;/script&gt;<br>
                                            &lt;div id="ai-chat-widget"&gt;&lt;/div&gt;
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Toggle sidebar
        document.getElementById('sidebar-toggle').addEventListener('click', function() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('collapsed');
            sidebar.classList.toggle('expanded');
        });
        
        // Simulate chat message sending
        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) {
                    // Add user message
                    const userMessage = document.createElement('div');
                    userMessage.className = 'chat-message user-message';
                    userMessage.textContent = message;
                    chatContainer.appendChild(userMessage);
                    
                    // Clear input
                    inputField.value = '';
                    
                    // Scroll to bottom
                    chatContainer.scrollTop = chatContainer.scrollHeight;
                    
                    // Simulate bot response after delay
                    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);
                        
                        // Scroll to bottom again
                        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>