Spaces:
Paused

dushyantsingh0 commited on
Commit
2ca66ce
·
1 Parent(s): 548b54e

backend stabilisation

Browse files
Files changed (2) hide show
  1. agents/workflow.py +11 -4
  2. pitch.html +591 -0
agents/workflow.py CHANGED
@@ -324,23 +324,30 @@ async def run_ai_workflow(ctx: Any, ticket_id: Any, workspace_id: Any = None, **
324
  internal_summary = final_state.get("internal_summary") or "Diagnostic analysis complete."
325
  rca = final_state.get("root_cause_analysis") or "Under investigation."
326
  tech_solution = final_state.get("proposed_technical_solution") or "Diagnostics in progress."
327
-
 
 
 
 
 
 
328
  final_meta.update({
329
  "worker_version": v_tag,
330
- "kb_extracts": final_state.get("kb_extracts", []), # Persist full extracts for frontend
 
331
  "summaries": {
332
  "internal_summary": internal_summary,
333
  "customer_summary": final_state.get("customer_summary") or "Technical analysis is complete. Our specialists are reviewing the findings to provide you with a resolution."
334
  },
335
  "initial_analysis": {
336
- "rca": rca,
337
  "technical_solution": tech_solution,
338
  "relevant_article": final_meta.get("cited_sources", [])[0] if final_meta.get("cited_sources", []) else None,
339
  "timestamp": datetime.utcnow().isoformat(),
340
  "cited_sources": final_meta.get("cited_sources", [])
341
  }
342
  })
343
- ticket.rca_notes = rca # Persist to dedicated editable field
344
  ticket.ai_metadata = final_meta
345
  db.add(ticket)
346
 
 
324
  internal_summary = final_state.get("internal_summary") or "Diagnostic analysis complete."
325
  rca = final_state.get("root_cause_analysis") or "Under investigation."
326
  tech_solution = final_state.get("proposed_technical_solution") or "Diagnostics in progress."
327
+
328
+ # ── FORENSIC TRAIL FIX ──────────────────────────────────────────
329
+ # processed_steps are accumulated in final_state by the merge_list reducer
330
+ # but were never written into ai_metadata — so the frontend always saw an
331
+ # empty array and displayed "Awaiting initiation...".
332
+ processed_steps = final_state.get("processed_steps", [])
333
+
334
  final_meta.update({
335
  "worker_version": v_tag,
336
+ "processed_steps": processed_steps, # ← Forensic Trail data for the UI
337
+ "kb_extracts": final_state.get("kb_extracts", []),
338
  "summaries": {
339
  "internal_summary": internal_summary,
340
  "customer_summary": final_state.get("customer_summary") or "Technical analysis is complete. Our specialists are reviewing the findings to provide you with a resolution."
341
  },
342
  "initial_analysis": {
343
+ "rca": rca,
344
  "technical_solution": tech_solution,
345
  "relevant_article": final_meta.get("cited_sources", [])[0] if final_meta.get("cited_sources", []) else None,
346
  "timestamp": datetime.utcnow().isoformat(),
347
  "cited_sources": final_meta.get("cited_sources", [])
348
  }
349
  })
350
+ ticket.rca_notes = rca
351
  ticket.ai_metadata = final_meta
352
  db.add(ticket)
353
 
pitch.html ADDED
@@ -0,0 +1,591 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Nexus - AI-Powered Customer Support Platform</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
8
+ <style>
9
+ * { margin: 0; padding: 0; box-sizing: border-box; }
10
+
11
+ :root {
12
+ --purple: #7c3aed;
13
+ --blue: #2563eb;
14
+ --cyan: #06b6d4;
15
+ --dark: #0a0a0f;
16
+ --card: #12121a;
17
+ --border: #1e1e2e;
18
+ }
19
+
20
+ body {
21
+ font-family: 'Inter', sans-serif;
22
+ background: var(--dark);
23
+ color: #e2e8f0;
24
+ overflow: hidden;
25
+ height: 100vh;
26
+ width: 100vw;
27
+ }
28
+
29
+ .bg-glow {
30
+ position: fixed;
31
+ inset: 0;
32
+ pointer-events: none;
33
+ z-index: 0;
34
+ }
35
+
36
+ .bg-glow::before {
37
+ content: '';
38
+ position: absolute;
39
+ top: -20%;
40
+ left: -10%;
41
+ width: 600px;
42
+ height: 600px;
43
+ background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
44
+ border-radius: 50%;
45
+ }
46
+
47
+ .bg-glow::after {
48
+ content: '';
49
+ position: absolute;
50
+ bottom: -20%;
51
+ right: -10%;
52
+ width: 500px;
53
+ height: 500px;
54
+ background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
55
+ border-radius: 50%;
56
+ }
57
+
58
+ .progress-bar {
59
+ position: fixed;
60
+ top: 0;
61
+ left: 0;
62
+ height: 3px;
63
+ background: linear-gradient(90deg, var(--purple), var(--cyan));
64
+ transition: width 0.4s ease;
65
+ z-index: 200;
66
+ }
67
+
68
+ .deck { position: relative; width: 100vw; height: 100vh; }
69
+
70
+ .slide {
71
+ position: absolute;
72
+ inset: 0;
73
+ display: none;
74
+ flex-direction: column;
75
+ justify-content: center;
76
+ align-items: center;
77
+ padding: 60px 80px;
78
+ opacity: 0;
79
+ transition: opacity 0.3s ease;
80
+ }
81
+
82
+ .slide.active { display: flex; opacity: 1; }
83
+ .slide > * { position: relative; z-index: 1; }
84
+
85
+ .chip {
86
+ display: inline-flex;
87
+ align-items: center;
88
+ gap: 6px;
89
+ padding: 6px 16px;
90
+ background: rgba(124,58,237,0.2);
91
+ border: 1px solid rgba(124,58,237,0.4);
92
+ border-radius: 999px;
93
+ font-size: 11px;
94
+ font-weight: 600;
95
+ letter-spacing: 0.08em;
96
+ color: #a78bfa;
97
+ text-transform: uppercase;
98
+ margin-bottom: 20px;
99
+ }
100
+
101
+ h1 {
102
+ font-size: clamp(2.5rem, 6vw, 5rem);
103
+ font-weight: 900;
104
+ line-height: 1.05;
105
+ text-align: center;
106
+ background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #38bdf8 100%);
107
+ -webkit-background-clip: text;
108
+ -webkit-text-fill-color: transparent;
109
+ background-clip: text;
110
+ margin-bottom: 20px;
111
+ }
112
+
113
+ h2 {
114
+ font-size: clamp(1.8rem, 4vw, 3rem);
115
+ font-weight: 800;
116
+ line-height: 1.1;
117
+ text-align: center;
118
+ background: linear-gradient(135deg, #fff, #a78bfa);
119
+ -webkit-background-clip: text;
120
+ -webkit-text-fill-color: transparent;
121
+ background-clip: text;
122
+ margin-bottom: 16px;
123
+ }
124
+
125
+ .sub {
126
+ font-size: 1.05rem;
127
+ color: #94a3b8;
128
+ text-align: center;
129
+ max-width: 640px;
130
+ line-height: 1.7;
131
+ margin-bottom: 28px;
132
+ }
133
+
134
+ .hl { color: #a78bfa; font-weight: 700; }
135
+
136
+ .badge-row {
137
+ display: flex;
138
+ flex-wrap: wrap;
139
+ gap: 10px;
140
+ justify-content: center;
141
+ margin-bottom: 32px;
142
+ }
143
+
144
+ .badge {
145
+ padding: 7px 16px;
146
+ border-radius: 8px;
147
+ font-size: 13px;
148
+ font-weight: 600;
149
+ border: 1px solid transparent;
150
+ }
151
+
152
+ .badge.p { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: #a78bfa; }
153
+ .badge.b { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.4); color: #60a5fa; }
154
+ .badge.c { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.4); color: #22d3ee; }
155
+ .badge.g { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #34d399; }
156
+
157
+ .grid { display: grid; gap: 16px; width: 100%; }
158
+ .g2 { grid-template-columns: 1fr 1fr; max-width: 1000px; }
159
+ .g3 { grid-template-columns: 1fr 1fr 1fr; max-width: 1000px; }
160
+ .g4 { grid-template-columns: 1fr 1fr 1fr 1fr; max-width: 900px; }
161
+
162
+ .card {
163
+ background: var(--card);
164
+ border: 1px solid var(--border);
165
+ border-radius: 16px;
166
+ padding: 24px;
167
+ transition: border-color 0.3s;
168
+ }
169
+
170
+ .card:hover { border-color: rgba(124,58,237,0.5); }
171
+ .card-icon { font-size: 1.8rem; margin-bottom: 10px; }
172
+ .card h3 { font-size: 1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
173
+ .card p { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; }
174
+
175
+ .stat-val {
176
+ font-size: 2.8rem;
177
+ font-weight: 900;
178
+ background: linear-gradient(135deg, #a78bfa, #38bdf8);
179
+ -webkit-background-clip: text;
180
+ -webkit-text-fill-color: transparent;
181
+ background-clip: text;
182
+ line-height: 1;
183
+ }
184
+
185
+ .stat-label { font-size: 0.8rem; color: #64748b; font-weight: 500; margin-top: 6px; }
186
+
187
+ .flow {
188
+ display: flex;
189
+ align-items: center;
190
+ gap: 10px;
191
+ flex-wrap: wrap;
192
+ justify-content: center;
193
+ margin: 20px 0;
194
+ }
195
+
196
+ .step {
197
+ background: var(--card);
198
+ border: 1px solid var(--border);
199
+ border-radius: 10px;
200
+ padding: 12px 18px;
201
+ font-size: 0.875rem;
202
+ font-weight: 600;
203
+ color: #e2e8f0;
204
+ text-align: center;
205
+ }
206
+
207
+ .arrow { color: var(--purple); font-size: 1.3rem; }
208
+
209
+ .ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
210
+ .ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; }
211
+ .ul li::before { content: 'rightwards arrow'; font-family: monospace; color: var(--purple); font-weight: 700; flex-shrink: 0; }
212
+
213
+ .tech-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin-top: 20px; }
214
+ .tech {
215
+ padding: 7px 14px;
216
+ background: rgba(30,30,46,0.8);
217
+ border: 1px solid var(--border);
218
+ border-radius: 7px;
219
+ font-size: 0.8rem;
220
+ font-weight: 600;
221
+ color: #94a3b8;
222
+ }
223
+
224
+ .cta {
225
+ display: inline-flex;
226
+ align-items: center;
227
+ gap: 8px;
228
+ padding: 15px 34px;
229
+ background: linear-gradient(135deg, var(--purple), var(--blue));
230
+ border: none;
231
+ border-radius: 12px;
232
+ font-size: 1rem;
233
+ font-weight: 700;
234
+ color: #fff;
235
+ cursor: pointer;
236
+ font-family: inherit;
237
+ text-decoration: none;
238
+ margin-top: 12px;
239
+ }
240
+
241
+ .nav {
242
+ position: fixed;
243
+ bottom: 28px;
244
+ left: 50%;
245
+ transform: translateX(-50%);
246
+ display: flex;
247
+ align-items: center;
248
+ gap: 12px;
249
+ z-index: 100;
250
+ background: rgba(18,18,26,0.85);
251
+ backdrop-filter: blur(12px);
252
+ border: 1px solid var(--border);
253
+ border-radius: 999px;
254
+ padding: 10px 22px;
255
+ }
256
+
257
+ .nav button {
258
+ background: none;
259
+ border: none;
260
+ color: #64748b;
261
+ cursor: pointer;
262
+ font-size: 0.85rem;
263
+ font-weight: 600;
264
+ padding: 6px 14px;
265
+ border-radius: 999px;
266
+ transition: all 0.2s;
267
+ font-family: inherit;
268
+ }
269
+
270
+ .nav button:hover, .nav button.cur { background: var(--purple); color: #fff; }
271
+ .nav .count { color: #475569; font-size: 0.8rem; min-width: 48px; text-align: center; }
272
+ </style>
273
+ </head>
274
+ <body>
275
+ <div class="bg-glow"></div>
276
+ <div class="progress-bar" id="prog"></div>
277
+
278
+ <div class="deck">
279
+
280
+ <!-- 1: TITLE -->
281
+ <div class="slide active" id="s1">
282
+ <div class="chip">Hackathon 2026 &middot; Team 3SC</div>
283
+ <h1>Nexus</h1>
284
+ <p class="sub">The <span class="hl">AI-native</span> customer support platform that turns every interaction into a competitive advantage. Built for the enterprise. Deployed in minutes.</p>
285
+ <div class="badge-row">
286
+ <span class="badge p">LangGraph Agents</span>
287
+ <span class="badge b">Real-time Streaming</span>
288
+ <span class="badge c">Semantic Search</span>
289
+ <span class="badge g">Multi-Tenant RBAC</span>
290
+ </div>
291
+ <p style="color:#475569;font-size:0.85rem">Live Demo: <span style="color:#60a5fa">3scerror404-nexus.hf.space</span></p>
292
+ </div>
293
+
294
+ <!-- 2: PROBLEM -->
295
+ <div class="slide" id="s2">
296
+ <div class="chip">The Problem</div>
297
+ <h2>Support Teams Are Drowning</h2>
298
+ <p class="sub">Enterprise support has not evolved. Teams waste hours on repetitive queries, siloed knowledge, and manual triage.</p>
299
+ <div class="grid g3">
300
+ <div class="card">
301
+ <div class="card-icon">&#x23F1;</div>
302
+ <h3>Slow Response Times</h3>
303
+ <p>Agents manually search docs and tickets, losing critical context between shifts and handoffs.</p>
304
+ </div>
305
+ <div class="card">
306
+ <div class="card-icon">&#x1F9E9;</div>
307
+ <h3>Fragmented Knowledge</h3>
308
+ <p>Critical fixes live in agents' heads. When they leave, the knowledge vanishes with them.</p>
309
+ </div>
310
+ <div class="card">
311
+ <div class="card-icon">&#x1F4CA;</div>
312
+ <h3>Zero Operational Insight</h3>
313
+ <p>Managers fly blind with no real-time analytics, SLA visibility, or early warning system.</p>
314
+ </div>
315
+ </div>
316
+ </div>
317
+
318
+ <!-- 3: SOLUTION -->
319
+ <div class="slide" id="s3">
320
+ <div class="chip">Our Solution</div>
321
+ <h2>Nexus: Your AI Command Centre</h2>
322
+ <p class="sub">A production-grade, multi-tenant support platform with an embedded <span class="hl">LangGraph AI agent</span> that works autonomously alongside your team.</p>
323
+ <div class="flow">
324
+ <div class="step">Customer Raises Ticket</div>
325
+ <div class="arrow">&#x2192;</div>
326
+ <div class="step">AI Triages &amp; Routes</div>
327
+ <div class="arrow">&#x2192;</div>
328
+ <div class="step">Semantic KB Search</div>
329
+ <div class="arrow">&#x2192;</div>
330
+ <div class="step">Agent Resolves Fast</div>
331
+ <div class="arrow">&#x2192;</div>
332
+ <div class="step">Analytics Updated</div>
333
+ </div>
334
+ <div class="badge-row">
335
+ <span class="badge p">Human-in-the-Loop Approvals</span>
336
+ <span class="badge b">Auto SLA Escalation</span>
337
+ <span class="badge c">Memory Crystallization</span>
338
+ <span class="badge g">Live Streaming AI</span>
339
+ </div>
340
+ </div>
341
+
342
+ <!-- 4: FEATURES -->
343
+ <div class="slide" id="s4">
344
+ <div class="chip">Core Features</div>
345
+ <h2>Everything a Modern Support Team Needs</h2>
346
+ <div class="grid g2">
347
+ <div class="card">
348
+ <div class="card-icon">&#x1F9E0;</div>
349
+ <h3>Nexus Master Agent</h3>
350
+ <p>LangGraph-powered AI with 16 tools: ticket management, KB search, analytics, SLA audits, sentiment analysis, and Human-in-the-Loop approval workflows.</p>
351
+ </div>
352
+ <div class="card">
353
+ <div class="card-icon">&#x1F50D;</div>
354
+ <h3>Hybrid Semantic Search</h3>
355
+ <p>pgvector HNSW plus PostgreSQL TSVECTOR full-text search across tickets and knowledge base. 768-dim Ollama embeddings with sub-5ms cache hits.</p>
356
+ </div>
357
+ <div class="card">
358
+ <div class="card-icon">&#x26A1;</div>
359
+ <h3>Real-Time SSE Streaming</h3>
360
+ <p>AI responses stream token-by-token via Server-Sent Events. Redis pub/sub broadcasts WebSocket updates across all worker processes instantly.</p>
361
+ </div>
362
+ <div class="card">
363
+ <div class="card-icon">&#x1F3E2;</div>
364
+ <h3>Enterprise Multi-Tenancy</h3>
365
+ <p>6-level RBAC with per-workspace role overrides, audit logs, SLA enforcement, and strict data isolation between all customer workspaces.</p>
366
+ </div>
367
+ </div>
368
+ </div>
369
+
370
+ <!-- 5: AI AGENT -->
371
+ <div class="slide" id="s5">
372
+ <div class="chip">AI Architecture</div>
373
+ <h2>The Nexus Agent Graph</h2>
374
+ <p class="sub">A production-hardened multi-node LangGraph pipeline with zero-trust RBAC at every decision point.</p>
375
+ <div class="grid g3">
376
+ <div class="card">
377
+ <div class="card-icon">&#x1F500;</div>
378
+ <h3>Smart Router</h3>
379
+ <p>Pre-compiled regex fast-track plus LLM intent classification. Routes to 16 tools based on role and context in under 100ms.</p>
380
+ </div>
381
+ <div class="card">
382
+ <div class="card-icon">&#x2699;&#xFE0F;</div>
383
+ <h3>Parallel Executor</h3>
384
+ <p>Runs read tools concurrently with asyncio. Write tools require Human-in-the-Loop approval before any state change is committed.</p>
385
+ </div>
386
+ <div class="card">
387
+ <div class="card-icon">&#x1F4AC;</div>
388
+ <h3>Empathy Responder</h3>
389
+ <p>Synthesizes tool outputs into rich Mermaid diagrams, markdown tables, and executive summaries. Never dumps raw data to the user.</p>
390
+ </div>
391
+ <div class="card">
392
+ <div class="card-icon">&#x1F4BE;</div>
393
+ <h3>Memory Crystallization</h3>
394
+ <p>Background worker distills long conversations into compressed summaries. Persistent cross-session identity gist for hyper-personalization.</p>
395
+ </div>
396
+ <div class="card">
397
+ <div class="card-icon">&#x1F6E1;&#xFE0F;</div>
398
+ <h3>Zero-Trust Security</h3>
399
+ <p>Every tool call is validated against user role. Mermaid sanitizer prevents LLM hallucinations. Safety guard blocks harmful inputs.</p>
400
+ </div>
401
+ <div class="card">
402
+ <div class="card-icon">&#x1F504;</div>
403
+ <h3>Dual Provider Failover</h3>
404
+ <p>Primary: Claude or Gemini. Fallback: Ollama local LLM. Semantic cache returns cached answers at under 5ms before hitting any LLM.</p>
405
+ </div>
406
+ </div>
407
+ </div>
408
+
409
+ <!-- 6: ARCHITECTURE -->
410
+ <div class="slide" id="s6">
411
+ <div class="chip">System Architecture</div>
412
+ <h2>Built to Scale</h2>
413
+ <p class="sub">A distributed sidecar architecture combining monolith simplicity with microservice-grade scalability.</p>
414
+ <div class="grid g2">
415
+ <div class="card">
416
+ <h3 style="margin-bottom:14px">Runtime Processes</h3>
417
+ <ul class="ul">
418
+ <li>Gunicorn + 4 Uvicorn Workers handling HTTP, WebSocket, SSE</li>
419
+ <li>Regular ARQ Worker for triage, notifications, analytics</li>
420
+ <li>Heavy ARQ Worker for AI streaming and KB embedding</li>
421
+ <li>Redis Sidecar for cache, pub/sub, and task queue</li>
422
+ </ul>
423
+ </div>
424
+ <div class="card">
425
+ <h3 style="margin-bottom:14px">Frontend Monorepo</h3>
426
+ <ul class="ul">
427
+ <li>Customer Portal for ticket creation, AI chat, thread view</li>
428
+ <li>Internal Portal with Kanban board, analytics, worker lab</li>
429
+ <li>Shared Package with 40+ hooks, components, WebSocket manager</li>
430
+ <li>React 19, Vite 8, TypeScript 5</li>
431
+ </ul>
432
+ </div>
433
+ </div>
434
+ <div class="tech-row">
435
+ <span class="tech">FastAPI 0.115</span>
436
+ <span class="tech">LangGraph 0.2</span>
437
+ <span class="tech">PostgreSQL + pgvector</span>
438
+ <span class="tech">Redis Pub/Sub</span>
439
+ <span class="tech">ARQ Workers</span>
440
+ <span class="tech">SQLAlchemy 2.0 Async</span>
441
+ <span class="tech">Anthropic Claude</span>
442
+ <span class="tech">Ollama Embeddings</span>
443
+ <span class="tech">OpenTelemetry</span>
444
+ </div>
445
+ </div>
446
+
447
+ <!-- 7: TWO PORTALS -->
448
+ <div class="slide" id="s7">
449
+ <div class="chip">Dual Portal Design</div>
450
+ <h2>The Right Tool for Every Role</h2>
451
+ <div class="grid g2">
452
+ <div class="card" style="border-color:rgba(37,99,235,0.4)">
453
+ <div class="card-icon">&#x1F464;</div>
454
+ <h3 style="color:#60a5fa">Customer Portal</h3>
455
+ <p style="margin-bottom:14px">A clean, focused experience for the clients you serve.</p>
456
+ <ul class="ul">
457
+ <li>Submit and track support tickets</li>
458
+ <li>AI chat with the Nexus Customer Agent</li>
459
+ <li>Real-time message streaming</li>
460
+ <li>Thread-based conversation history</li>
461
+ <li>Knowledge base self-service search</li>
462
+ </ul>
463
+ </div>
464
+ <div class="card" style="border-color:rgba(124,58,237,0.4)">
465
+ <div class="card-icon">&#x1F9D1;&#x200D;&#x1F4BC;</div>
466
+ <h3 style="color:#a78bfa">Internal Portal</h3>
467
+ <p style="margin-bottom:14px">A power-user ops console for your support team.</p>
468
+ <ul class="ul">
469
+ <li>Kanban and Scrum ticket board</li>
470
+ <li>Nexus Master AI Agent with all 16 tools</li>
471
+ <li>SLA monitoring and escalation alerts</li>
472
+ <li>Live analytics and team performance</li>
473
+ <li>Worker Lab, Security Forensics, Infra Monitor</li>
474
+ </ul>
475
+ </div>
476
+ </div>
477
+ </div>
478
+
479
+ <!-- 8: STATS -->
480
+ <div class="slide" id="s8">
481
+ <div class="chip">By The Numbers</div>
482
+ <h2>Production-Grade From Day One</h2>
483
+ <div class="grid g4" style="margin-bottom:16px">
484
+ <div class="card" style="text-align:center">
485
+ <div class="stat-val">16</div>
486
+ <div class="stat-label">AI Agent Tools</div>
487
+ </div>
488
+ <div class="card" style="text-align:center">
489
+ <div class="stat-val">6</div>
490
+ <div class="stat-label">RBAC Role Levels</div>
491
+ </div>
492
+ <div class="card" style="text-align:center">
493
+ <div class="stat-val">30+</div>
494
+ <div class="stat-label">DB Entities</div>
495
+ </div>
496
+ <div class="card" style="text-align:center">
497
+ <div class="stat-val">20+</div>
498
+ <div class="stat-label">API Modules</div>
499
+ </div>
500
+ </div>
501
+ <div class="grid g4">
502
+ <div class="card" style="text-align:center">
503
+ <div class="stat-val">&lt;5ms</div>
504
+ <div class="stat-label">Semantic Cache Hit</div>
505
+ </div>
506
+ <div class="card" style="text-align:center">
507
+ <div class="stat-val">&lt;200ms</div>
508
+ <div class="stat-label">First AI Token</div>
509
+ </div>
510
+ <div class="card" style="text-align:center">
511
+ <div class="stat-val">2</div>
512
+ <div class="stat-label">Deploy Tiers</div>
513
+ </div>
514
+ <div class="card" style="text-align:center">
515
+ <div class="stat-val">&#x221E;</div>
516
+ <div class="stat-label">Workspaces Scalable</div>
517
+ </div>
518
+ </div>
519
+ </div>
520
+
521
+ <!-- 9: WHY WE WIN -->
522
+ <div class="slide" id="s9">
523
+ <div class="chip">Why We Win</div>
524
+ <h2>What Makes Nexus Different</h2>
525
+ <div class="grid g2">
526
+ <div class="card">
527
+ <h3>vs. Zendesk / Freshdesk</h3>
528
+ <p style="margin-top:10px">They bolt AI on top as an afterthought. <span class="hl">Nexus is AI-native</span>. The agent is the core engine, not a plugin. Every action flows through the intelligence layer.</p>
529
+ </div>
530
+ <div class="card">
531
+ <h3>vs. Custom GPT Wrappers</h3>
532
+ <p style="margin-top:10px">They hallucinate and have no persistence. Nexus has <span class="hl">memory crystallization, RBAC-gated tools</span>, and a Mermaid sanitizer. It is a system, not a chatbot.</p>
533
+ </div>
534
+ <div class="card">
535
+ <h3>vs. Basic HITL Systems</h3>
536
+ <p style="margin-top:10px">Most HITL is binary approve or reject. Nexus implements <span class="hl">atomic multi-action approvals</span> where agents review batched write operations before execution.</p>
537
+ </div>
538
+ <div class="card">
539
+ <h3>vs. Monolithic Deployments</h3>
540
+ <p style="margin-top:10px">Our <span class="hl">dual-lane ARQ worker</span> isolates heavy AI compute from fast API responses. Scale AI independently without touching the HTTP layer.</p>
541
+ </div>
542
+ </div>
543
+ </div>
544
+
545
+ <!-- 10: CLOSING -->
546
+ <div class="slide" id="s10">
547
+ <div class="chip">The Vision</div>
548
+ <h1>Support That<br>Thinks With You</h1>
549
+ <p class="sub">Nexus is not a support tool. It is an <span class="hl">intelligence layer</span> that makes every agent 10x more effective, every customer 10x happier, and every team leader 10x more informed.</p>
550
+ <div class="badge-row">
551
+ <span class="badge p">Live on Hugging Face</span>
552
+ <span class="badge b">Full API Docs</span>
553
+ <span class="badge c">One-Click Docker Deploy</span>
554
+ </div>
555
+ <a class="cta" href="https://3scerror404-nexus.hf.space" target="_blank">View Live Demo</a>
556
+ <p style="color:#334155;font-size:0.8rem;margin-top:28px">Built by Team 3SC &middot; Nexus Portal &middot; 2026</p>
557
+ </div>
558
+
559
+ </div>
560
+
561
+ <nav class="nav">
562
+ <button onclick="go(-1)">&#x2190; Prev</button>
563
+ <span class="count" id="sc">1 / 10</span>
564
+ <button onclick="go(1)">Next &#x2192;</button>
565
+ </nav>
566
+
567
+ <script>
568
+ var slides = document.querySelectorAll('.slide');
569
+ var prog = document.getElementById('prog');
570
+ var sc = document.getElementById('sc');
571
+ var cur = 0;
572
+
573
+ function show(n) {
574
+ slides[cur].classList.remove('active');
575
+ cur = (n + slides.length) % slides.length;
576
+ slides[cur].classList.add('active');
577
+ prog.style.width = ((cur + 1) / slides.length * 100) + '%';
578
+ sc.textContent = (cur + 1) + ' / ' + slides.length;
579
+ }
580
+
581
+ function go(d) { show(cur + d); }
582
+
583
+ document.addEventListener('keydown', function(e) {
584
+ if (e.key === 'ArrowRight' || e.key === ' ') { e.preventDefault(); go(1); }
585
+ if (e.key === 'ArrowLeft') { e.preventDefault(); go(-1); }
586
+ });
587
+
588
+ show(0);
589
+ </script>
590
+ </body>
591
+ </html>