-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknowledge-base.html
More file actions
651 lines (626 loc) · 28.6 KB
/
knowledge-base.html
File metadata and controls
651 lines (626 loc) · 28.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AgentBox - Knowledge Base</title>
<meta name="description" content="Browse AgentBox help articles, guides, and tutorials. Find answers to common questions and learn how to get the most out of your AI agent.">
<style>
:root {
--bg: #0a0a0a;
--surface: #141414;
--surface-2: #1e1e1e;
--surface-3: #252525;
--border: #2a2a2a;
--text: #e8e8e8;
--text-muted: #888;
--accent: #00d4ff;
--accent-light: #66e5ff;
--accent-bg: #00d4ff15;
--green: #00b894;
--green-bg: #00b89422;
--yellow: #fdcb6e;
--yellow-bg: #fdcb6e22;
--orange: #e17055;
--purple: #6c5ce7;
--purple-bg: #6c5ce722;
--radius: 12px;
--radius-sm: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
.header {
padding: 20px 32px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
background: var(--bg);
z-index: 100;
backdrop-filter: blur(12px);
}
.header a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 1.1em; }
.header a:hover { text-decoration: underline; }
.header-title { font-size: 1.3em; font-weight: 700; }
.hero {
text-align: center;
padding: 60px 24px 40px;
}
.hero h1 {
font-size: 2.4em;
margin-bottom: 12px;
background: linear-gradient(135deg, var(--accent), var(--purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.15em; max-width: 600px; margin: 0 auto; }
.search-box {
max-width: 560px;
margin: 32px auto 0;
position: relative;
}
.search-box input {
width: 100%;
padding: 14px 20px 14px 48px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 1.05em;
outline: none;
transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
font-size: 1.2em;
color: var(--text-muted);
}
.search-count {
text-align: center;
color: var(--text-muted);
font-size: 0.9em;
margin-top: 8px;
min-height: 1.4em;
}
.categories {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
padding: 20px 24px 8px;
max-width: 800px;
margin: 0 auto;
}
.cat-btn {
padding: 8px 18px;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-muted);
cursor: pointer;
font-size: 0.92em;
transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--accent); color: var(--text); }
.cat-btn.active {
background: var(--accent-bg);
border-color: var(--accent);
color: var(--accent);
}
.articles {
max-width: 800px;
margin: 32px auto;
padding: 0 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.article-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--accent); }
.article-header {
padding: 20px 24px;
cursor: pointer;
display: flex;
align-items: flex-start;
gap: 14px;
}
.article-icon {
font-size: 1.5em;
flex-shrink: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-2);
border-radius: var(--radius-sm);
}
.article-meta { flex: 1; }
.article-meta h3 { font-size: 1.1em; margin-bottom: 4px; }
.article-meta p { color: var(--text-muted); font-size: 0.9em; }
.article-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.article-tag {
font-size: 0.75em;
padding: 2px 10px;
border-radius: 10px;
background: var(--surface-3);
color: var(--text-muted);
}
.article-chevron {
color: var(--text-muted);
transition: transform 0.3s;
font-size: 1.2em;
margin-top: 4px;
}
.article-card.open .article-chevron { transform: rotate(90deg); }
.article-body {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}
.article-body-inner {
padding: 0 24px 24px;
border-top: 1px solid var(--border);
padding-top: 20px;
color: var(--text-muted);
line-height: 1.75;
}
.article-body-inner h4 { color: var(--text); margin: 16px 0 8px; }
.article-body-inner code {
background: var(--surface-3);
padding: 2px 8px;
border-radius: 4px;
font-size: 0.9em;
color: var(--accent);
}
.article-body-inner ul { margin: 8px 0 8px 20px; }
.article-body-inner li { margin-bottom: 4px; }
.no-results {
text-align: center;
padding: 60px 24px;
color: var(--text-muted);
}
.no-results span { font-size: 2em; display: block; margin-bottom: 12px; }
.footer {
text-align: center;
padding: 40px 24px;
border-top: 1px solid var(--border);
color: var(--text-muted);
font-size: 0.9em;
margin-top: 60px;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
.hero h1 { font-size: 1.7em; }
.header { padding: 16px 20px; }
.articles { padding: 0 16px; }
.article-header { padding: 16px; }
}
</style>
</head>
<body>
<header class="header">
<a href="index.html">🤖 AgentBox</a>
<span class="header-title">Knowledge Base</span>
<a href="faq.html">FAQ →</a>
</header>
<section class="hero">
<h1>📚 Knowledge Base</h1>
<p>Everything you need to know about setting up, using, and getting the most out of your AgentBox AI agent.</p>
<div class="search-box">
<span class="search-icon">🔍</span>
<input type="text" id="searchInput" placeholder="Search articles..." autocomplete="off">
</div>
<div class="search-count" id="searchCount"></div>
</section>
<div class="categories" id="categories"></div>
<div class="articles" id="articles"></div>
<div class="no-results" id="noResults" style="display:none;">
<span>🔎</span>
No articles match your search. Try different keywords.
</div>
<footer class="footer">
<p>Can't find what you're looking for? <a href="contact.html">Contact support</a> · <a href="faq.html">Browse FAQ</a> · <a href="community.html">Ask the community</a></p>
</footer>
<script>
(function() {
const articles = [
{
id: 'getting-started',
icon: '🚀',
title: 'Getting Started with AgentBox',
summary: 'Set up your AI agent in under 2 minutes and send your first message.',
category: 'Getting Started',
tags: ['setup', 'telegram', 'beginner'],
body: `
<h4>Step 1: Find the Bot</h4>
<p>Search for <code>@AgentBoxBot</code> on Telegram and tap <strong>Start</strong>.</p>
<h4>Step 2: Say Hello</h4>
<p>Send any message to begin. Your agent will introduce itself and start learning about you.</p>
<h4>Step 3: Explore Features</h4>
<ul>
<li>Ask questions — your agent searches the web for you</li>
<li>Set reminders — <code>/remind Buy groceries in 2 hours</code></li>
<li>Send images — your agent can understand and describe photos</li>
<li>Have conversations — it remembers context within each session</li>
</ul>
<h4>Free Tier</h4>
<p>You get <strong>20 free messages per day</strong> to try everything out. No credit card required.</p>
`
},
{
id: 'memory-system',
icon: '🧠',
title: 'How Agent Memory Works',
summary: 'Understand how your agent remembers you across conversations.',
category: 'Core Features',
tags: ['memory', 'personalization', 'context'],
body: `
<h4>Short-Term Memory</h4>
<p>Within a conversation, your agent remembers everything discussed. This context resets after a period of inactivity.</p>
<h4>Long-Term Memory</h4>
<p>Important details (your name, preferences, recurring topics) are stored in long-term memory. Your agent recalls these across sessions.</p>
<h4>What Gets Remembered</h4>
<ul>
<li>Your name and how you like to be addressed</li>
<li>Topics you frequently discuss</li>
<li>Preferences you've expressed</li>
<li>Important dates or facts you've shared</li>
</ul>
<h4>Managing Your Memory</h4>
<p>Use <code>/memory</code> to see what your agent remembers. Use <code>/forget</code> to clear specific memories or reset entirely.</p>
`
},
{
id: 'web-search',
icon: '🌐',
title: 'Web Search & Research',
summary: 'Your agent can search the web and summarize findings for you.',
category: 'Core Features',
tags: ['search', 'web', 'research'],
body: `
<h4>How It Works</h4>
<p>Just ask a question naturally. If your agent doesn't know the answer from its training data, it automatically searches the web.</p>
<h4>Examples</h4>
<ul>
<li>"What's the weather in Tokyo right now?"</li>
<li>"Find the best-rated Italian restaurants near me"</li>
<li>"What happened in tech news today?"</li>
<li>"Compare the specs of iPhone 16 vs Pixel 9"</li>
</ul>
<h4>Tips for Better Results</h4>
<ul>
<li>Be specific — "best budget laptop 2026" works better than "good laptop"</li>
<li>Ask follow-ups — your agent remembers the search context</li>
<li>Request summaries — "summarize the top 3 results"</li>
</ul>
`
},
{
id: 'reminders',
icon: '⏰',
title: 'Setting Reminders & Alerts',
summary: 'Never forget anything — let your agent remind you at the right time.',
category: 'Productivity',
tags: ['reminders', 'alerts', 'scheduling'],
body: `
<h4>Quick Reminders</h4>
<p>Use <code>/remind</code> followed by your reminder text and timing:</p>
<ul>
<li><code>/remind Call dentist in 2 hours</code></li>
<li><code>/remind Team standup tomorrow at 9am</code></li>
<li><code>/remind Pay rent on the 1st</code></li>
</ul>
<h4>Natural Language</h4>
<p>You can also just say "remind me to..." in normal conversation and your agent will set it up.</p>
<h4>Managing Reminders</h4>
<p>Use <code>/reminders</code> to list all active reminders. Reply to a reminder message to snooze or cancel it.</p>
`
},
{
id: 'image-understanding',
icon: '📸',
title: 'Image Understanding',
summary: 'Send photos and images for your agent to analyze and describe.',
category: 'Core Features',
tags: ['images', 'vision', 'photos'],
body: `
<h4>What Can It Do?</h4>
<ul>
<li>Describe what's in a photo</li>
<li>Read text from screenshots or documents</li>
<li>Identify objects, animals, plants</li>
<li>Analyze charts, graphs, or diagrams</li>
<li>Help with homework by reading problem images</li>
</ul>
<h4>How to Use</h4>
<p>Simply send an image in your chat. You can add a question as a caption, like sending a menu photo with "What's the cheapest option?"</p>
<h4>Limitations</h4>
<p>The agent cannot identify specific people. Very blurry or low-resolution images may produce less accurate results.</p>
`
},
{
id: 'privacy-security',
icon: '🔒',
title: 'Privacy & Data Security',
summary: 'How we protect your data and what we store.',
category: 'Trust & Safety',
tags: ['privacy', 'security', 'data', 'encryption'],
body: `
<h4>What We Store</h4>
<ul>
<li>Your Telegram user ID (for routing messages)</li>
<li>Conversation history (for memory features)</li>
<li>Preferences you've explicitly set</li>
</ul>
<h4>What We Don't Do</h4>
<ul>
<li>We never sell your data</li>
<li>We don't train models on your conversations</li>
<li>We don't share data with third parties</li>
<li>We don't read your conversations manually</li>
</ul>
<h4>Data Deletion</h4>
<p>Use <code>/deletedata</code> to permanently erase all your data. This is irreversible. See our <a href="privacy.html">Privacy Policy</a> for full details.</p>
`
},
{
id: 'commands-reference',
icon: '⌨️',
title: 'Commands Quick Reference',
summary: 'All available slash commands and what they do.',
category: 'Reference',
tags: ['commands', 'reference', 'slash'],
body: `
<h4>General</h4>
<ul>
<li><code>/start</code> — Begin or restart your agent</li>
<li><code>/help</code> — Show available commands</li>
<li><code>/settings</code> — Open settings menu</li>
<li><code>/status</code> — Check your usage and plan</li>
</ul>
<h4>Memory</h4>
<ul>
<li><code>/memory</code> — View stored memories</li>
<li><code>/forget</code> — Clear memories</li>
</ul>
<h4>Productivity</h4>
<ul>
<li><code>/remind [text] [time]</code> — Set a reminder</li>
<li><code>/reminders</code> — List active reminders</li>
<li><code>/summarize</code> — Summarize the current conversation</li>
</ul>
<h4>Account</h4>
<ul>
<li><code>/upgrade</code> — View pricing plans</li>
<li><code>/usage</code> — Check daily message count</li>
<li><code>/deletedata</code> — Delete all your data</li>
</ul>
`
},
{
id: 'troubleshooting',
icon: '🔧',
title: 'Troubleshooting Common Issues',
summary: 'Solutions for the most frequently reported problems.',
category: 'Troubleshooting',
tags: ['issues', 'bugs', 'fix', 'help'],
body: `
<h4>Agent Not Responding</h4>
<ul>
<li>Check the <a href="status-page.html">status page</a> for any outages</li>
<li>Try sending <code>/start</code> to reset the connection</li>
<li>Make sure you haven't exceeded your daily message limit</li>
</ul>
<h4>Agent Seems Confused</h4>
<ul>
<li>Start a new topic by saying "let's talk about something else"</li>
<li>If memory seems wrong, use <code>/memory</code> to check and <code>/forget</code> to correct</li>
</ul>
<h4>Messages Taking Too Long</h4>
<p>Complex queries (especially with web search) may take 10-15 seconds. If delays persist beyond 30 seconds, there may be a service issue.</p>
<h4>Still Need Help?</h4>
<p>Visit our <a href="contact.html">support page</a> or ask in the <a href="community.html">community forum</a>.</p>
`
},
{
id: 'billing-plans',
icon: '💳',
title: 'Plans, Billing & Upgrades',
summary: 'Understanding your plan, upgrading, and managing payments.',
category: 'Account',
tags: ['billing', 'plans', 'pricing', 'upgrade'],
body: `
<h4>Free Tier</h4>
<p>20 messages per day, all features included. No credit card needed. Resets at midnight UTC.</p>
<h4>Pro Plan</h4>
<p>Unlimited messages, priority response times, and advanced features. See <code>/upgrade</code> in your bot for current pricing.</p>
<h4>How to Upgrade</h4>
<p>Send <code>/upgrade</code> to your agent. You'll receive a secure payment link. We accept major credit cards.</p>
<h4>Cancellation</h4>
<p>Cancel anytime from <code>/settings</code>. You keep Pro access until the end of your billing period. No questions asked.</p>
`
},
{
id: 'tips-tricks',
icon: '💡',
title: 'Tips & Tricks for Power Users',
summary: 'Get more out of your agent with these advanced techniques.',
category: 'Productivity',
tags: ['tips', 'advanced', 'power-user'],
body: `
<h4>Chain Requests</h4>
<p>Your agent understands context. Ask a question, then follow up: "Now compare that to..." or "Can you format that as a table?"</p>
<h4>Use Voice Messages</h4>
<p>Send a voice note on Telegram — your agent will transcribe it and respond to the content.</p>
<h4>Share to Your Agent</h4>
<p>Use Telegram's "Forward" feature to forward articles, tweets, or messages to your agent for summarization.</p>
<h4>Set Your Preferences Early</h4>
<p>Tell your agent things like "I prefer concise answers" or "Always respond in Spanish" — it will remember.</p>
<h4>Batch Tasks</h4>
<p>You can give multi-part requests: "Search for X, summarize the top 3 results, and set a reminder to review them tomorrow."</p>
`
},
{
id: 'integrations',
icon: '🔗',
title: 'Integrations & Connected Services',
summary: 'Connect your agent to other tools and platforms.',
category: 'Getting Started',
tags: ['integrations', 'api', 'connect'],
body: `
<h4>Available Integrations</h4>
<ul>
<li><strong>Google Calendar</strong> — check and create events</li>
<li><strong>Notion</strong> — search and update your workspace</li>
<li><strong>GitHub</strong> — check issues and PR status</li>
<li><strong>Email</strong> — check and summarize unread emails</li>
</ul>
<h4>Setting Up</h4>
<p>Use <code>/connect</code> to see available integrations and follow the authorization flow for each one.</p>
<h4>API Access</h4>
<p>For developers, see our <a href="api-docs.html">API documentation</a> and <a href="sdk.html">SDK page</a>.</p>
`
},
{
id: 'whatsapp',
icon: '📱',
title: 'Using AgentBox on WhatsApp',
summary: 'How to connect and use your agent on WhatsApp alongside Telegram.',
category: 'Getting Started',
tags: ['whatsapp', 'multi-platform', 'setup'],
body: `
<h4>Multi-Platform Support</h4>
<p>AgentBox supports both Telegram and WhatsApp. Your memory and preferences sync across platforms.</p>
<h4>Getting Started on WhatsApp</h4>
<p>Use <code>/whatsapp</code> in your Telegram bot to get a QR code or link to connect your WhatsApp account.</p>
<h4>Differences from Telegram</h4>
<ul>
<li>Slash commands work slightly differently — type them as regular messages</li>
<li>Rich formatting (buttons, menus) may be limited on WhatsApp</li>
<li>Image understanding works on both platforms</li>
</ul>
`
}
];
const categoriesEl = document.getElementById('categories');
const articlesEl = document.getElementById('articles');
const searchInput = document.getElementById('searchInput');
const searchCount = document.getElementById('searchCount');
const noResults = document.getElementById('noResults');
const categories = ['All', ...new Set(articles.map(a => a.category))];
let activeCategory = 'All';
function renderCategories() {
categoriesEl.innerHTML = categories.map(c =>
`<button class="cat-btn ${c === activeCategory ? 'active' : ''}" data-cat="${c}">${c}</button>`
).join('');
categoriesEl.querySelectorAll('.cat-btn').forEach(btn => {
btn.addEventListener('click', () => {
activeCategory = btn.dataset.cat;
renderCategories();
renderArticles();
});
});
}
function renderArticles() {
const query = searchInput.value.toLowerCase().trim();
const filtered = articles.filter(a => {
const matchCat = activeCategory === 'All' || a.category === activeCategory;
const matchSearch = !query ||
a.title.toLowerCase().includes(query) ||
a.summary.toLowerCase().includes(query) ||
a.tags.some(t => t.includes(query)) ||
a.body.toLowerCase().includes(query);
return matchCat && matchSearch;
});
if (filtered.length === 0) {
articlesEl.innerHTML = '';
noResults.style.display = 'block';
searchCount.textContent = '';
} else {
noResults.style.display = 'none';
searchCount.textContent = query ? `${filtered.length} article${filtered.length !== 1 ? 's' : ''} found` : '';
articlesEl.innerHTML = filtered.map(a => `
<div class="article-card" data-id="${a.id}">
<div class="article-header" role="button" tabindex="0" aria-expanded="false">
<div class="article-icon">${a.icon}</div>
<div class="article-meta">
<h3>${a.title}</h3>
<p>${a.summary}</p>
<div class="article-tags">
${a.tags.map(t => `<span class="article-tag">${t}</span>`).join('')}
</div>
</div>
<span class="article-chevron">▶</span>
</div>
<div class="article-body">
<div class="article-body-inner">${a.body}</div>
</div>
</div>
`).join('');
articlesEl.querySelectorAll('.article-header').forEach(header => {
header.addEventListener('click', () => toggleArticle(header));
header.addEventListener('keydown', e => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); toggleArticle(header); }
});
});
}
}
function toggleArticle(header) {
const card = header.parentElement;
const body = card.querySelector('.article-body');
const isOpen = card.classList.contains('open');
if (isOpen) {
body.style.maxHeight = '0';
card.classList.remove('open');
header.setAttribute('aria-expanded', 'false');
} else {
body.style.maxHeight = body.scrollHeight + 'px';
card.classList.add('open');
header.setAttribute('aria-expanded', 'true');
}
}
// Deep-link support: open article from hash
function checkHash() {
const id = window.location.hash.slice(1);
if (id) {
setTimeout(() => {
const card = document.querySelector(`.article-card[data-id="${id}"]`);
if (card) {
card.scrollIntoView({ behavior: 'smooth', block: 'center' });
const header = card.querySelector('.article-header');
if (!card.classList.contains('open')) toggleArticle(header);
}
}, 100);
}
}
searchInput.addEventListener('input', renderArticles);
window.addEventListener('hashchange', checkHash);
renderCategories();
renderArticles();
checkHash();
})();
</script>
</body>
</html>