diff --git a/REORGANIZATION_PLAN.md b/REORGANIZATION_PLAN.md
new file mode 100644
index 00000000..1da32977
--- /dev/null
+++ b/REORGANIZATION_PLAN.md
@@ -0,0 +1,71 @@
+# BotBook Reorganization - COMPLETED
+
+## Status: ✅ DONE
+
+### Execution Summary:
+
+1. ✅ Created 12 new chapter directories
+2. ✅ Moved all 422 markdown files to new structure
+3. ✅ Updated SUMMARY.md with new 12-chapter TOC
+4. ✅ Fixed all internal links (228+ replacements)
+5. ✅ Renamed asset folders to match new chapters
+6. ✅ Updated asset references in markdown files
+7. ✅ Updated all chapter README titles
+
+---
+
+## Final Structure (12 Chapters):
+
+| # | Chapter | Files |
+|---|---------|-------|
+| 01 | Getting Started | 8 |
+| 02 | Architecture & Packages | 43 |
+| 03 | Knowledge & AI | 33 |
+| 04 | BASIC Scripting | 124 |
+| 05 | Multi-Agent Orchestration | 9 |
+| 06 | Channels & Connectivity | 18 |
+| 07 | User Interface | 13 + apps |
+| 08 | REST API & Tools | 36 |
+| 09 | Security | 24 |
+| 10 | Configuration & Deployment | 14 |
+| 11 | Hardware & Scaling | 9 |
+| 12 | Ecosystem & Reference | 43 |
+
+**TOTAL: 422 markdown files**
+
+---
+
+## What was done:
+
+### Directory Reorganization:
+- `01-introduction` → `01-getting-started`
+- `02-templates` + `07-gbapp` → `02-architecture-packages`
+- `03-knowledge-base` + `11-features` → `03-knowledge-ai`
+- `06-gbdialog` → `04-basic-scripting`
+- `17-autonomous-tasks` → `05-multi-agent`
+- `18-appendix-external-services` → `06-channels`
+- `04-gbui` + `05-gbtheme` → `07-user-interface`
+- `09-tools` + `10-rest` → `08-rest-api-tools`
+- `12-auth` + `23-security` → `09-security`
+- `08-config` → `10-configuration-deployment`
+- `13-hardware-devices` + `20-embedding` + `21-scale` → `11-hardware-scaling`
+- `13-community` + `14-migration` + `15-appendix` + `17-testing` + `19-maintenance` + `22-white-label` → `12-ecosystem-reference`
+
+### Link Fixes:
+- 228+ old chapter references replaced
+- Asset folder references updated
+
+### Assets:
+- All SVG assets preserved in `/assets`
+- Chapter-specific assets moved to new folder names
+
+---
+
+## To Build the Book:
+
+```bash
+cd /home/rodriguez/src/gb/botbook
+mdbook build
+```
+
+This will regenerate the HTML with the new 12-chapter structure.
diff --git a/src/01-introduction/README.md b/src/01-getting-started/README.md
similarity index 100%
rename from src/01-introduction/README.md
rename to src/01-getting-started/README.md
diff --git a/src/01-introduction/assets/bootstrap-process.svg.backup b/src/01-getting-started/assets/bootstrap-process.svg.backup
similarity index 100%
rename from src/01-introduction/assets/bootstrap-process.svg.backup
rename to src/01-getting-started/assets/bootstrap-process.svg.backup
diff --git a/src/01-introduction/assets/quick-start-bootstrap.svg.backup b/src/01-getting-started/assets/quick-start-bootstrap.svg.backup
similarity index 100%
rename from src/01-introduction/assets/quick-start-bootstrap.svg.backup
rename to src/01-getting-started/assets/quick-start-bootstrap.svg.backup
diff --git a/src/01-introduction/assets/session-manager.svg.backup b/src/01-getting-started/assets/session-manager.svg.backup
similarity index 100%
rename from src/01-introduction/assets/session-manager.svg.backup
rename to src/01-getting-started/assets/session-manager.svg.backup
diff --git a/src/01-introduction/assets/session-states.svg.backup b/src/01-getting-started/assets/session-states.svg.backup
similarity index 100%
rename from src/01-introduction/assets/session-states.svg.backup
rename to src/01-getting-started/assets/session-states.svg.backup
diff --git a/src/01-introduction/assets/tool-execution-flow.svg.backup b/src/01-getting-started/assets/tool-execution-flow.svg.backup
similarity index 100%
rename from src/01-introduction/assets/tool-execution-flow.svg.backup
rename to src/01-getting-started/assets/tool-execution-flow.svg.backup
diff --git a/src/01-introduction/first-conversation.md b/src/01-getting-started/first-conversation.md
similarity index 100%
rename from src/01-introduction/first-conversation.md
rename to src/01-getting-started/first-conversation.md
diff --git a/src/01-introduction/installation.md b/src/01-getting-started/installation.md
similarity index 96%
rename from src/01-introduction/installation.md
rename to src/01-getting-started/installation.md
index a66bab88..7eaf40ad 100644
--- a/src/01-introduction/installation.md
+++ b/src/01-getting-started/installation.md
@@ -175,8 +175,8 @@ Requires CUDA installed and 12GB+ VRAM.
| Method | Use Case | Guide |
|--------|----------|-------|
| **Local** | Development, single instance | This page |
-| **Docker** | Production, microservices | [Docker Deployment](../chapter-07-gbapp/docker-deployment.md) |
-| **LXC** | Isolated components, Linux | [Container Deployment](../chapter-07-gbapp/containers.md) |
+| **Docker** | Production, microservices | [Docker Deployment](../02-architecture-packages/docker-deployment.md) |
+| **LXC** | Isolated components, Linux | [Container Deployment](../02-architecture-packages/containers.md) |
| **Brother Mode** | Container managing host containers | See below |
### Container-on-Host (Brother Mode)
@@ -227,4 +227,4 @@ lxc list | grep mycompany
- [Quick Start Guide](./quick-start.md) - Create your first bot
- [First Conversation](./first-conversation.md) - Test your bot
-- [Configuration Reference](../chapter-08-config/README.md) - All settings
\ No newline at end of file
+- [Configuration Reference](../10-configuration-deployment/README.md) - All settings
\ No newline at end of file
diff --git a/src/01-introduction/local-domains.md b/src/01-getting-started/local-domains.md
similarity index 100%
rename from src/01-introduction/local-domains.md
rename to src/01-getting-started/local-domains.md
diff --git a/src/01-introduction/overview.md b/src/01-getting-started/overview.md
similarity index 100%
rename from src/01-introduction/overview.md
rename to src/01-getting-started/overview.md
diff --git a/src/01-introduction/quick-start.md b/src/01-getting-started/quick-start.md
similarity index 89%
rename from src/01-introduction/quick-start.md
rename to src/01-getting-started/quick-start.md
index 159e7753..d46fea08 100644
--- a/src/01-introduction/quick-start.md
+++ b/src/01-getting-started/quick-start.md
@@ -45,7 +45,7 @@ Start chatting with your bot!
### Bootstrap Flow
-
+
The **automatic bootstrap** process:
@@ -78,7 +78,7 @@ drive-secret,my-secret-key
### How Tools Work
-
+
Tools are just `.bas` files. Create `enrollment.bas`:
@@ -277,11 +277,11 @@ rm .env
## Documentation
-- **[Full Installation Guide](docs/src/chapter-01/installation.md)** - Detailed bootstrap explanation
-- **[Tool Definition](docs/src/chapter-08/tool-definition.md)** - Creating tools
-- **[BASIC Keywords](docs/src/chapter-05/keywords.md)** - Language reference
-- **[Package System](docs/src/chapter-02/README.md)** - Creating bots
-- **[Architecture](docs/src/chapter-06/architecture.md)** - How it works
+- **[Full Installation Guide](docs/src/01-getting-started/installation.md)** - Detailed bootstrap explanation
+- **[Tool Definition](docs/src/08-rest-api-tools/tool-definition.md)** - Creating tools
+- **[BASIC Keywords](docs/src/07-user-interface/keywords.md)** - Language reference
+- **[Package System](docs/src/02-architecture-packages/README.md)** - Creating bots
+- **[Architecture](docs/src/04-basic-scripting/architecture.md)** - How it works
---
diff --git a/src/01-introduction/sessions.md b/src/01-getting-started/sessions.md
similarity index 96%
rename from src/01-introduction/sessions.md
rename to src/01-getting-started/sessions.md
index d5efb5f2..418c6d8a 100644
--- a/src/01-introduction/sessions.md
+++ b/src/01-getting-started/sessions.md
@@ -2,7 +2,7 @@
Every conversation has memory. Sessions are the beating heart of botserver because they remember who you are, what you have said, and where you left off. Even if you close your browser and come back tomorrow, your conversation continues right where it paused.
-
+
## What Is a Session?
@@ -37,7 +37,7 @@ Sessions come in two flavors depending on user identity. Anonymous sessions are
## Session Lifecycle
-
+
Sessions move through several states during their existence. Active sessions have no timeout while the user is actively chatting. Idle sessions timeout after 30 minutes by default, though this is configurable. Expired sessions are removed after 7 days for anonymous users, while authenticated sessions never expire automatically.
diff --git a/src/07-gbapp/README.md b/src/02-architecture-packages/README.md
similarity index 91%
rename from src/07-gbapp/README.md
rename to src/02-architecture-packages/README.md
index 64f17cc6..0e99bcaa 100644
--- a/src/07-gbapp/README.md
+++ b/src/02-architecture-packages/README.md
@@ -1,4 +1,4 @@
-# Chapter 07: Extending General Bots
+# Chapter 2: Architecture & Packages
Architecture and deployment reference for developers.
@@ -25,7 +25,7 @@ botserver is built in Rust with a modular architecture. Extend it by creating cu
| Method | Use Case | Guide |
|--------|----------|-------|
-| **Local** | Development | [Installation](../chapter-01/installation.md) |
+| **Local** | Development | [Installation](../01-getting-started/installation.md) |
| **Docker** | Production | [Docker Deployment](./docker-deployment.md) |
| **LXC** | Isolated components | [Container Deployment](./containers.md) |
@@ -82,5 +82,5 @@ See [Autonomous Task AI](./autonomous-tasks.md) for complete documentation.
## See Also
-- [Installation](../chapter-01/installation.md) - Getting started
-- [BASIC Reference](../chapter-06-gbdialog/README.md) - Scripting language
\ No newline at end of file
+- [Installation](../01-getting-started/installation.md) - Getting started
+- [BASIC Reference](../04-basic-scripting/README.md) - Scripting language
\ No newline at end of file
diff --git a/src/07-gbapp/architecture.md b/src/02-architecture-packages/architecture.md
similarity index 96%
rename from src/07-gbapp/architecture.md
rename to src/02-architecture-packages/architecture.md
index 2d030af7..a966d3c7 100644
--- a/src/07-gbapp/architecture.md
+++ b/src/02-architecture-packages/architecture.md
@@ -9,16 +9,16 @@ The architecture diagrams below illustrate the major components and their relati
### Data Flow Architecture
-
+
### System Architecture
-
+
## Module Dependency Graph
-
+
## Module Organization
@@ -27,7 +27,7 @@ The codebase is organized into modules that group related functionality together
### Data Flow Through Modules
-
+
### Core Modules
diff --git a/src/02-templates/assets/package-structure.svg.backup b/src/02-architecture-packages/assets/package-structure.svg.backup
similarity index 100%
rename from src/02-templates/assets/package-structure.svg.backup
rename to src/02-architecture-packages/assets/package-structure.svg.backup
diff --git a/src/02-templates/assets/template-deployment-flow.svg.backup b/src/02-architecture-packages/assets/template-deployment-flow.svg.backup
similarity index 100%
rename from src/02-templates/assets/template-deployment-flow.svg.backup
rename to src/02-architecture-packages/assets/template-deployment-flow.svg.backup
diff --git a/src/07-gbapp/autonomous-tasks.md b/src/02-architecture-packages/autonomous-tasks.md
similarity index 98%
rename from src/07-gbapp/autonomous-tasks.md
rename to src/02-architecture-packages/autonomous-tasks.md
index 1a4f87fb..5521f785 100644
--- a/src/07-gbapp/autonomous-tasks.md
+++ b/src/02-architecture-packages/autonomous-tasks.md
@@ -311,5 +311,5 @@ The dev chat uses the same `user_data` system for history storage.
- [Autonomous Tasks Chapter](../17-autonomous-tasks/README.md) - Complete guide
- [CREATE SITE](../06-gbdialog/keyword-create-site.md) - The keyword behind it
-- [REST API](../10-rest/README.md) - API reference
-- [HTMX Architecture](../04-gbui/htmx-architecture.md) - Frontend patterns
\ No newline at end of file
+- [REST API](../08-rest-api-tools/README.md) - API reference
+- [HTMX Architecture](../07-user-interface/htmx-architecture.md) - Frontend patterns
\ No newline at end of file
diff --git a/src/07-gbapp/building.md b/src/02-architecture-packages/building.md
similarity index 99%
rename from src/07-gbapp/building.md
rename to src/02-architecture-packages/building.md
index addccc46..a4bdd199 100644
--- a/src/07-gbapp/building.md
+++ b/src/02-architecture-packages/building.md
@@ -928,4 +928,4 @@ After building:
3. Start botserver and access web interface
4. Create your first bot from templates
-See [Chapter 01: Run and Talk](../chapter-01/README.md) for next steps.
\ No newline at end of file
+See [Chapter 01: Run and Talk](../01-getting-started/README.md) for next steps.
\ No newline at end of file
diff --git a/src/07-gbapp/cargo-tools.md b/src/02-architecture-packages/cargo-tools.md
similarity index 100%
rename from src/07-gbapp/cargo-tools.md
rename to src/02-architecture-packages/cargo-tools.md
diff --git a/src/07-gbapp/containers.md b/src/02-architecture-packages/containers.md
similarity index 97%
rename from src/07-gbapp/containers.md
rename to src/02-architecture-packages/containers.md
index 572232e2..4d69f6c5 100644
--- a/src/07-gbapp/containers.md
+++ b/src/02-architecture-packages/containers.md
@@ -186,6 +186,6 @@ lxc profile device add default lxd-sock proxy \
## See Also
-- [Installation](../chapter-01/installation.md) - Local setup
+- [Installation](../01-getting-started/installation.md) - Local setup
- [Docker Deployment](./docker-deployment.md) - Docker alternative
- [Architecture](./architecture.md) - System design
\ No newline at end of file
diff --git a/src/07-gbapp/crates.md b/src/02-architecture-packages/crates.md
similarity index 100%
rename from src/07-gbapp/crates.md
rename to src/02-architecture-packages/crates.md
diff --git a/src/07-gbapp/custom-keywords.md b/src/02-architecture-packages/custom-keywords.md
similarity index 100%
rename from src/07-gbapp/custom-keywords.md
rename to src/02-architecture-packages/custom-keywords.md
diff --git a/src/07-gbapp/dependencies.md b/src/02-architecture-packages/dependencies.md
similarity index 100%
rename from src/07-gbapp/dependencies.md
rename to src/02-architecture-packages/dependencies.md
diff --git a/src/07-gbapp/docker-deployment.md b/src/02-architecture-packages/docker-deployment.md
similarity index 97%
rename from src/07-gbapp/docker-deployment.md
rename to src/02-architecture-packages/docker-deployment.md
index 12b7ccca..a088cf01 100644
--- a/src/07-gbapp/docker-deployment.md
+++ b/src/02-architecture-packages/docker-deployment.md
@@ -210,6 +210,6 @@ docker exec gb-minio mc cp --recursive /backup minio/drive/
## See Also
-- [Installation](../chapter-01/installation.md) - Local installation
+- [Installation](../01-getting-started/installation.md) - Local installation
- [Container Deployment (LXC)](./containers.md) - Linux containers
- [Scaling](./scaling.md) - Load balancing and scaling
\ No newline at end of file
diff --git a/src/07-gbapp/example-gbapp.md b/src/02-architecture-packages/example-gbapp.md
similarity index 100%
rename from src/07-gbapp/example-gbapp.md
rename to src/02-architecture-packages/example-gbapp.md
diff --git a/src/02-templates/gbai.md b/src/02-architecture-packages/gbai.md
similarity index 95%
rename from src/02-templates/gbai.md
rename to src/02-architecture-packages/gbai.md
index 403de837..dab28a7d 100644
--- a/src/02-templates/gbai.md
+++ b/src/02-architecture-packages/gbai.md
@@ -17,7 +17,7 @@ That's it. No manifests, no build files, no dependencies. Copy the folder to dep
### Visual Architecture
### Architecture
-
+
## How Bootstrap Finds Bots
@@ -211,7 +211,7 @@ Each bot:
When botserver starts:
-
+
Takes about 5-10 seconds per bot.
diff --git a/src/02-templates/gbdialog.md b/src/02-architecture-packages/gbdialog.md
similarity index 83%
rename from src/02-templates/gbdialog.md
rename to src/02-architecture-packages/gbdialog.md
index 019d0b88..14757675 100644
--- a/src/02-templates/gbdialog.md
+++ b/src/02-architecture-packages/gbdialog.md
@@ -1,6 +1,6 @@
# .gbdialog Dialogs
-The [`.gbdialog`](../chapter-02/gbdialog.md) package contains BASIC scripts that define conversation flows, tool integrations, and bot behavior.
+The [`.gbdialog`](../02-architecture-packages/gbdialog.md) package contains BASIC scripts that define conversation flows, tool integrations, and bot behavior.
## ⚠️ System Limits & Safety
@@ -21,7 +21,7 @@ All `.gbdialog` scripts run in a **sandboxed environment** with enforced limits
- Excessive API calls return HTTP 429 (Too Many Requests)
- File operations are restricted to the bot's `.gbdrive` scope
-See [System Limits](../12-auth/system-limits.md) for complete documentation.
+See [System Limits](../09-security/system-limits.md) for complete documentation.
## What is .gbdialog?
@@ -79,7 +79,7 @@ TALK "Registration complete!"
```
### 3. Knowledge Base Usage
-See [Knowledge Base documentation](../chapter-03/knowledge-base.md) for details.
+See [Knowledge Base documentation](../03-knowledge-ai/knowledge-base.md) for details.
```basic
' Activate knowledge base collections
USE KB "products"
@@ -95,7 +95,7 @@ TALK "What product information can I help you with?"
## Script Structure
### Entry Point: start.bas (Optional)
-The `start.bas` file in the [`.gbdialog`](../chapter-02/gbdialog.md) folder is **optional**, but required if you want to activate tools or knowledge bases:
+The `start.bas` file in the [`.gbdialog`](../02-architecture-packages/gbdialog.md) folder is **optional**, but required if you want to activate tools or knowledge bases:
```basic
' Optional start script - needed only to activate tools/KB
@@ -116,7 +116,7 @@ TALK "Welcome! How can I assist you today?"
- For basic Q&A without document search
### Tool Definitions
-Create separate `.bas` files for each tool. See [KB and Tools](../chapter-03/kb-and-tools.md) for more information:
+Create separate `.bas` files for each tool. See [KB and Tools](../03-knowledge-ai/kb-and-tools.md) for more information:
```basic
' enrollment.bas - The LLM knows when to use this
@@ -218,7 +218,7 @@ TALK "What would you like to know about our products?"
## Advanced Features
### Memory Management
-See [Storage documentation](../chapter-09/storage.md) for persistent data options.
+See [Storage documentation](../08-rest-api-tools.md) for persistent data options.
```basic
SET BOT MEMORY "company_policy", policy_text
' Available across all sessions
@@ -227,7 +227,7 @@ retrieved = GET BOT MEMORY "company_policy"
```
### External APIs
-See [External APIs chapter](../chapter-08/external-apis.md) for integration patterns.
+See [External APIs chapter](../08-rest-api-tools/external-apis.md) for integration patterns.
```basic
result = GET "https://api.example.com/data"
' For background processing only
@@ -236,7 +236,7 @@ SET BOT MEMORY "api_summary", summary
```
### Suggestions
-See [UI Interface](../chapter-04/ui-interface.md) for UI integration.
+See [UI Interface](../07-user-interface/ui-interface.md) for UI integration.
```basic
ADD SUGGESTION "Schedule Meeting" AS "schedule"
ADD SUGGESTION "View Products" AS "products"
@@ -291,13 +291,13 @@ The key is to **trust the system AI** and write less code for more intelligent b
## Important Distinction
-- **[LLM Command](../chapter-09/ai-llm.md)**: For background/batch processing, generates content ONCE, stored in BOT MEMORY for all users
-- **[Interactive Conversations](../chapter-09/conversation.md)**: Use HEAR/TALK/SET CONTEXT, system AI handles the natural conversation flow
+- **[LLM Command](../03-knowledge-ai/ai-llm.md)**: For background/batch processing, generates content ONCE, stored in BOT MEMORY for all users
+- **[Interactive Conversations](../03-knowledge-ai/conversation.md)**: Use HEAR/TALK/SET CONTEXT, system AI handles the natural conversation flow
## See Also
-- [Chapter 1: Quick Start](../chapter-01/quick-start.md) - Getting started with your first bot
-- [Chapter 2: Bot Architecture](../chapter-02/README.md) - Understanding all components
-- [Chapter 3: Knowledge Base](../chapter-03/knowledge-base.md) - Working with KB collections
-- [Chapter 5: Keywords Reference](../chapter-05/README.md) - Complete BASIC command reference
-- [Chapter 9: Conversation Flow](../chapter-09/conversation.md) - Advanced dialog patterns
\ No newline at end of file
+- [Chapter 1: Quick Start](../01-getting-started/quick-start.md) - Getting started with your first bot
+- [Chapter 2: Bot Architecture](../02-architecture-packages/README.md) - Understanding all components
+- [Chapter 3: Knowledge Base](../03-knowledge-ai/knowledge-base.md) - Working with KB collections
+- [Chapter 5: Keywords Reference](../07-user-interface/README.md) - Complete BASIC command reference
+- [Chapter 9: Conversation Flow](../03-knowledge-ai/conversation.md) - Advanced dialog patterns
\ No newline at end of file
diff --git a/src/02-templates/gbdrive.md b/src/02-architecture-packages/gbdrive.md
similarity index 100%
rename from src/02-templates/gbdrive.md
rename to src/02-architecture-packages/gbdrive.md
diff --git a/src/02-templates/gbkb.md b/src/02-architecture-packages/gbkb.md
similarity index 85%
rename from src/02-templates/gbkb.md
rename to src/02-architecture-packages/gbkb.md
index df0f882e..24ce756a 100644
--- a/src/02-templates/gbkb.md
+++ b/src/02-architecture-packages/gbkb.md
@@ -62,6 +62,6 @@ CLEAR KB "policies"
## Learn More
-- [Chapter 03: Knowledge Base System](../chapter-03/README.md) - Technical deep-dive on indexing, vectors, and search
-- [USE KB Keyword](../chapter-06-gbdialog/keyword-use-kb.md) - Complete keyword reference
-- [CLEAR KB Keyword](../chapter-06-gbdialog/keyword-clear-kb.md) - Managing active collections
\ No newline at end of file
+- [Chapter 03: Knowledge Base System](../03-knowledge-ai/README.md) - Technical deep-dive on indexing, vectors, and search
+- [USE KB Keyword](../04-basic-scripting/keyword-use-kb.md) - Complete keyword reference
+- [CLEAR KB Keyword](../04-basic-scripting/keyword-clear-kb.md) - Managing active collections
\ No newline at end of file
diff --git a/src/02-templates/gbot.md b/src/02-architecture-packages/gbot.md
similarity index 100%
rename from src/02-templates/gbot.md
rename to src/02-architecture-packages/gbot.md
diff --git a/src/02-templates/gbtheme.md b/src/02-architecture-packages/gbtheme.md
similarity index 100%
rename from src/02-templates/gbtheme.md
rename to src/02-architecture-packages/gbtheme.md
diff --git a/src/07-gbapp/infrastructure.md b/src/02-architecture-packages/infrastructure.md
similarity index 100%
rename from src/07-gbapp/infrastructure.md
rename to src/02-architecture-packages/infrastructure.md
diff --git a/src/07-gbapp/keyword-refactoring.md b/src/02-architecture-packages/keyword-refactoring.md
similarity index 100%
rename from src/07-gbapp/keyword-refactoring.md
rename to src/02-architecture-packages/keyword-refactoring.md
diff --git a/src/02-architecture-packages/kubernetes-deployment.md b/src/02-architecture-packages/kubernetes-deployment.md
new file mode 100644
index 00000000..657efb47
--- /dev/null
+++ b/src/02-architecture-packages/kubernetes-deployment.md
@@ -0,0 +1 @@
+# Kubernetes Deployment
diff --git a/src/02-architecture-packages/monitoring-setup.md b/src/02-architecture-packages/monitoring-setup.md
new file mode 100644
index 00000000..fdb4605b
--- /dev/null
+++ b/src/02-architecture-packages/monitoring-setup.md
@@ -0,0 +1 @@
+# Monitoring Setup
diff --git a/src/07-gbapp/observability.md b/src/02-architecture-packages/observability.md
similarity index 100%
rename from src/07-gbapp/observability.md
rename to src/02-architecture-packages/observability.md
diff --git a/src/07-gbapp/philosophy.md b/src/02-architecture-packages/philosophy.md
similarity index 100%
rename from src/07-gbapp/philosophy.md
rename to src/02-architecture-packages/philosophy.md
diff --git a/src/07-gbapp/scaling.md b/src/02-architecture-packages/scaling.md
similarity index 99%
rename from src/07-gbapp/scaling.md
rename to src/02-architecture-packages/scaling.md
index b1204581..385b51d3 100644
--- a/src/07-gbapp/scaling.md
+++ b/src/02-architecture-packages/scaling.md
@@ -669,4 +669,4 @@ groups:
- [Container Deployment](./containers.md) - LXC container basics
- [Architecture Overview](./architecture.md) - System design
-- [Monitoring Dashboard](../chapter-04-gbui/monitoring.md) - Observe your cluster
\ No newline at end of file
+- [Monitoring Dashboard](../07-user-interface/monitoring.md) - Observe your cluster
\ No newline at end of file
diff --git a/src/07-gbapp/services.md b/src/02-architecture-packages/services.md
similarity index 100%
rename from src/07-gbapp/services.md
rename to src/02-architecture-packages/services.md
diff --git a/src/02-templates/summary.md b/src/02-architecture-packages/summary.md
similarity index 100%
rename from src/02-templates/summary.md
rename to src/02-architecture-packages/summary.md
diff --git a/src/02-templates/template-analytics.md b/src/02-architecture-packages/template-analytics.md
similarity index 99%
rename from src/02-templates/template-analytics.md
rename to src/02-architecture-packages/template-analytics.md
index 147fb747..0c441bb8 100644
--- a/src/02-templates/template-analytics.md
+++ b/src/02-architecture-packages/template-analytics.md
@@ -428,4 +428,4 @@ POST "https://bi-tool.example.com/webhook", data
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-api-client.md b/src/02-architecture-packages/template-api-client.md
similarity index 99%
rename from src/02-templates/template-api-client.md
rename to src/02-architecture-packages/template-api-client.md
index a13ec9e1..8f19597a 100644
--- a/src/02-templates/template-api-client.md
+++ b/src/02-architecture-packages/template-api-client.md
@@ -463,4 +463,4 @@ api_key = GET ENV "MY_API_KEY"
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-attendance-crm.md b/src/02-architecture-packages/template-attendance-crm.md
similarity index 98%
rename from src/02-templates/template-attendance-crm.md
rename to src/02-architecture-packages/template-attendance-crm.md
index 26556dce..bf4b3a33 100644
--- a/src/02-templates/template-attendance-crm.md
+++ b/src/02-architecture-packages/template-attendance-crm.md
@@ -408,7 +408,7 @@ Set up alerts for:
## See Also
-- [Transfer to Human](../chapter-11-features/transfer-to-human.md) - Handoff details
-- [LLM-Assisted Attendant](../chapter-11-features/attendant-llm-assist.md) - AI copilot features
+- [Transfer to Human](../03-knowledge-ai/transfer-to-human.md) - Handoff details
+- [LLM-Assisted Attendant](../03-knowledge-ai/attendant-llm-assist.md) - AI copilot features
- [Sales CRM Template](./template-crm.md) - Full CRM without attendance
- [Attendance Queue Module](../appendix-external-services/attendance-queue.md) - Queue configuration
diff --git a/src/02-templates/template-bi.md b/src/02-architecture-packages/template-bi.md
similarity index 98%
rename from src/02-templates/template-bi.md
rename to src/02-architecture-packages/template-bi.md
index 164c6c88..476f4912 100644
--- a/src/02-templates/template-bi.md
+++ b/src/02-architecture-packages/template-bi.md
@@ -269,4 +269,4 @@ SEND FILE img, "Low Stock Alert"
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-crawler.md b/src/02-architecture-packages/template-crawler.md
similarity index 99%
rename from src/02-templates/template-crawler.md
rename to src/02-architecture-packages/template-crawler.md
index e4c5145e..02461dbf 100644
--- a/src/02-templates/template-crawler.md
+++ b/src/02-architecture-packages/template-crawler.md
@@ -327,4 +327,4 @@ END IF
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbkb Reference](../chapter-03/README.md) - Knowledge base guide
\ No newline at end of file
+- [gbkb Reference](../03-knowledge-ai/README.md) - Knowledge base guide
\ No newline at end of file
diff --git a/src/02-templates/template-crm-contacts.md b/src/02-architecture-packages/template-crm-contacts.md
similarity index 100%
rename from src/02-templates/template-crm-contacts.md
rename to src/02-architecture-packages/template-crm-contacts.md
diff --git a/src/02-templates/template-crm.md b/src/02-architecture-packages/template-crm.md
similarity index 99%
rename from src/02-templates/template-crm.md
rename to src/02-architecture-packages/template-crm.md
index 1daf4935..e7f7eba3 100644
--- a/src/02-templates/template-crm.md
+++ b/src/02-architecture-packages/template-crm.md
@@ -478,4 +478,4 @@ END IF
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-embedded.md b/src/02-architecture-packages/template-embedded.md
similarity index 100%
rename from src/02-templates/template-embedded.md
rename to src/02-architecture-packages/template-embedded.md
diff --git a/src/02-templates/template-law.md b/src/02-architecture-packages/template-law.md
similarity index 99%
rename from src/02-templates/template-law.md
rename to src/02-architecture-packages/template-law.md
index 2af66174..bf1cbb1a 100644
--- a/src/02-templates/template-law.md
+++ b/src/02-architecture-packages/template-law.md
@@ -349,4 +349,4 @@ This template provides AI-assisted document analysis tools. It does not constitu
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbkb Reference](../chapter-03/README.md) - Knowledge base guide
\ No newline at end of file
+- [gbkb Reference](../03-knowledge-ai/README.md) - Knowledge base guide
\ No newline at end of file
diff --git a/src/02-templates/template-llm-server.md b/src/02-architecture-packages/template-llm-server.md
similarity index 99%
rename from src/02-templates/template-llm-server.md
rename to src/02-architecture-packages/template-llm-server.md
index 9f88a3fd..80a66b9a 100644
--- a/src/02-templates/template-llm-server.md
+++ b/src/02-architecture-packages/template-llm-server.md
@@ -420,4 +420,4 @@ CMD ["npm", "start"]
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-llm-tools.md b/src/02-architecture-packages/template-llm-tools.md
similarity index 99%
rename from src/02-templates/template-llm-tools.md
rename to src/02-architecture-packages/template-llm-tools.md
index 7f62302a..5d1305c1 100644
--- a/src/02-templates/template-llm-tools.md
+++ b/src/02-architecture-packages/template-llm-tools.md
@@ -447,4 +447,4 @@ Test various phrasings to ensure tool invocation:
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-marketing.md b/src/02-architecture-packages/template-marketing.md
similarity index 99%
rename from src/02-templates/template-marketing.md
rename to src/02-architecture-packages/template-marketing.md
index 731d779a..4b236921 100644
--- a/src/02-templates/template-marketing.md
+++ b/src/02-architecture-packages/template-marketing.md
@@ -443,4 +443,4 @@ TALK "Post scheduled for " + schedule_time + " on " + platform
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-office.md b/src/02-architecture-packages/template-office.md
similarity index 99%
rename from src/02-templates/template-office.md
rename to src/02-architecture-packages/template-office.md
index ebec2bcd..f1ff757d 100644
--- a/src/02-templates/template-office.md
+++ b/src/02-architecture-packages/template-office.md
@@ -391,4 +391,4 @@ END IF
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-reminder.md b/src/02-architecture-packages/template-reminder.md
similarity index 99%
rename from src/02-templates/template-reminder.md
rename to src/02-architecture-packages/template-reminder.md
index 60f54457..89d3a850 100644
--- a/src/02-templates/template-reminder.md
+++ b/src/02-architecture-packages/template-reminder.md
@@ -414,4 +414,4 @@ The LLM understands various date formats:
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/template-samples.md b/src/02-architecture-packages/template-samples.md
similarity index 98%
rename from src/02-templates/template-samples.md
rename to src/02-architecture-packages/template-samples.md
index d3ea10ef..86cef297 100644
--- a/src/02-templates/template-samples.md
+++ b/src/02-architecture-packages/template-samples.md
@@ -695,6 +695,6 @@ If these templates don't fit your needs:
## See Also
- [Templates Reference](./templates.md) - Full template list
-- [How To: Create Your First Bot](../chapter-04-gbui/how-to/create-first-bot.md)
-- [Sources App](../chapter-04-gbui/apps/sources.md) - Managing templates
-- [Write Your First Dialog](../chapter-04-gbui/how-to/write-first-dialog.md)
\ No newline at end of file
+- [How To: Create Your First Bot](../07-user-interface/how-to/create-first-bot.md)
+- [Sources App](../07-user-interface/apps/sources.md) - Managing templates
+- [Write Your First Dialog](../07-user-interface/how-to/write-first-dialog.md)
\ No newline at end of file
diff --git a/src/02-templates/template-template.md b/src/02-architecture-packages/template-template.md
similarity index 97%
rename from src/02-templates/template-template.md
rename to src/02-architecture-packages/template-template.md
index 01ede8a8..ba4bdfaf 100644
--- a/src/02-templates/template-template.md
+++ b/src/02-architecture-packages/template-template.md
@@ -330,8 +330,8 @@ Bot: To add a tool, create a .bas file in your .gbdialog folder:
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
-- [Bot Configuration](../chapter-08-config/README.md) - Configuration options
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
+- [Bot Configuration](../10-configuration-deployment/README.md) - Configuration options
---
@@ -349,4 +349,4 @@ Bot: To add a tool, create a .bas file in your .gbdialog folder:
- [Templates Reference](./templates.md) - Full template list
- [Template Samples](./template-samples.md) - Example conversations
-- [gbdialog Reference](../chapter-06-gbdialog/README.md) - BASIC scripting guide
\ No newline at end of file
+- [gbdialog Reference](../04-basic-scripting/README.md) - BASIC scripting guide
\ No newline at end of file
diff --git a/src/02-templates/templates.md b/src/02-architecture-packages/templates.md
similarity index 100%
rename from src/02-templates/templates.md
rename to src/02-architecture-packages/templates.md
diff --git a/src/07-gbapp/testing-safety.md b/src/02-architecture-packages/testing-safety.md
similarity index 97%
rename from src/07-gbapp/testing-safety.md
rename to src/02-architecture-packages/testing-safety.md
index 432bb67d..9a64cd73 100644
--- a/src/07-gbapp/testing-safety.md
+++ b/src/02-architecture-packages/testing-safety.md
@@ -346,6 +346,6 @@ jobs:
## See Also
-- [System Limits](../12-auth/system-limits.md) - Rate limiting and resource constraints
-- [Security Features](../12-auth/security-features.md) - Security architecture
+- [System Limits](../09-security/system-limits.md) - Rate limiting and resource constraints
+- [Security Features](../09-security/security-features.md) - Security architecture
- [Building from Source](./building.md) - Compilation guide
\ No newline at end of file
diff --git a/src/02-templates/README.md b/src/02-templates/README.md
deleted file mode 100644
index c8758ea6..00000000
--- a/src/02-templates/README.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Chapter 02: About Packages
-
-How bots are organized in General Bots.
-
-## What You'll Learn
-
-- Package structure (`.gbai` folders)
-- Dialog scripts in BASIC
-- Knowledge bases
-- Configuration basics
-- How packages load
-
-## Package Structure
-
-A bot is just a folder ending in `.gbai`:
-
-```
-my-bot.gbai/
-├── my-bot.gbdialog/ # BASIC scripts
-├── my-bot.gbkb/ # Documents
-├── my-bot.gbot/ # Configuration
-├── my-bot.gbtheme/ # Optional styling
-└── my-bot.gbdrive/ # Optional storage
-```
-
-Drop the folder in `templates/`, it loads automatically.
-
-## Key Concepts
-
-### Dialogs (.gbdialog)
-- BASIC scripts that control conversation
-- `start.bas` is optional (but needed to activate tools/KB with USE TOOL/USE KB)
-- Simple commands like TALK and HEAR
-
-### Knowledge Base (.gbkb)
-- Put PDFs and documents in folders
-- Automatically becomes searchable
-- Bot can answer questions from documents
-
-### Configuration (.gbot)
-- Single `config.csv` file
-- Simple name,value pairs
-- Missing values use defaults
-
-### Themes (.gbtheme)
-- Optional CSS styling
-- Most bots don't need this
-
-### Storage (.gbdrive)
-- Links to S3-compatible storage
-- For large files and uploads
-
-## How It Works
-
-1. **Discovery**: Finds `.gbai` folders
-2. **Loading**: Reads all components
-3. **Indexing**: Processes documents
-4. **Activation**: Bot is ready
-
-No build process. No compilation. Just folders and files.
-
-The web UI uses **HTMX with server-side rendering** - minimal JavaScript, no build process, just HTML templates powered by Rust.
-
-## Topics Covered
-
-- [.gbai Architecture](./gbai.md) - Package details
-- [.gbdialog Dialogs](./gbdialog.md) - BASIC scripting
-- [.gbkb Knowledge Base](./gbkb.md) - Document management
-- [.gbot Configuration](./gbot.md) - Settings
-- [.gbtheme UI Theming](./gbtheme.md) - Styling
-- [.gbdrive File Storage](./gbdrive.md) - Storage integration
-- [Bot Templates](./templates.md) - Example bots
-
----
-
-
diff --git a/src/16-appendix-docs-style/conversation-examples.md b/src/16-appendix-docs-style/conversation-examples.md
deleted file mode 100644
index 12f0e5e1..00000000
--- a/src/16-appendix-docs-style/conversation-examples.md
+++ /dev/null
@@ -1,235 +0,0 @@
-# Conversation Examples Style Guide
-
-> **Standard format for displaying bot-user conversations in documentation**
-
-## Overview
-
-All conversation examples in General Bots documentation use a WhatsApp-style chat format. This provides a consistent, familiar, and readable way to show bot interactions.
-
-## CSS Include
-
-The styling is defined in `/assets/wa-chat.css`. Include it in your mdBook or HTML output.
-
----
-
-## Basic Structure
-
-```html
-
-
----
-
-## Variants
-
-### Full Width
-
-Add `wa-full-width` class for wider conversations:
-
-```html
-
- ...
-
-```
-
-### Compact
-
-Add `wa-compact` class for tighter spacing:
-
-```html
-
- ...
-
-```
-
-### Hide Timestamps
-
-Add `wa-no-time` class to hide timestamps:
-
-```html
-
- ...
-
-```
-
----
-
-## Best Practices
-
-1. **Keep messages concise** - Break long bot responses into multiple paragraphs
-2. **Use consistent timestamps** - Use realistic times (10:30, 10:31, etc.)
-3. **Start with user context** - Show what the user asked before the bot response
-4. **Include visual feedback** - Use emojis for status (✅, ❌, 📋)
-5. **Show realistic flows** - Include multi-turn conversations when appropriate
-6. **Use semantic formatting** - Bold for labels, lists for options
-
----
-
-## Files Using This Format
-
-This format is used throughout the documentation:
-
-- `chapter-02/template-crm-contacts.md`
-- `chapter-04-gbui/apps/*.md`
-- `chapter-06-gbdialog/basic-vs-automation-tools.md`
-- And many more...
-
----
-
-## See Also
-
-- [UI Structure](../chapter-04-gbui/ui-structure.md)
-- [Chat App Documentation](../chapter-04-gbui/apps/chat.md)
-
-
\ No newline at end of file
diff --git a/src/16-appendix-docs-style/svg.md b/src/16-appendix-docs-style/svg.md
deleted file mode 100644
index deed09ed..00000000
--- a/src/16-appendix-docs-style/svg.md
+++ /dev/null
@@ -1,289 +0,0 @@
-# Documentation Style Standards
-
-All interface layouts in this documentation use SVG-based wireframe representations for screenshots and diagrams. Conversation examples use the WhatsApp-style HTML format for consistent, visually appealing rendering.
-
----
-
-## Interface Wireframes (SVG)
-
-All interface screenshots and layouts should use SVG wireframes located in `/assets/`.
-
-### Directory Structure
-
-```
-assets/
-├── suite/
-│ ├── chat-screen.svg
-│ ├── drive-screen.svg
-│ ├── calendar-screen.svg
-│ ├── mail-screen.svg
-│ ├── tasks-screen.svg
-│ ├── meet-screen.svg
-│ ├── live-monitoring-organism.svg
-│ └── ...
-├── chapter-01/
-│ ├── bootstrap-process.svg
-│ └── session-states.svg
-└── chapter-04/
- └── analytics-interface.svg
-```
-
-### Referencing SVG Wireframes
-
-Use standard HTML image syntax with responsive styling:
-
-```html
-
-```
-
----
-
-## SVG Theme Transparency Guidelines
-
-All SVGs MUST be theme-agnostic and work with light/dark modes. Follow these requirements:
-
-### Required CSS Media Query
-
-Every SVG must include a `
-```
-
-### Background Transparency
-
-- Use `fill="#FAFBFC"` for light backgrounds (subtle, not pure white)
-- Add dot pattern overlay for texture: `fill="url(#dots)"` with low opacity
-- Cards use `fill="#FFFFFF"` with border strokes for definition
-- **NEVER** use pure black (`#000000`) backgrounds
-
-### Color Palette (Theme-Safe)
-
-| Purpose | Light Mode | Dark Mode Adaptation |
-|---------|------------|---------------------|
-| Title text | `#1E1B4B` | `#F1F5F9` (via CSS) |
-| Main text | `#334155` | `#E2E8F0` (via CSS) |
-| Secondary text | `#64748B` | `#94A3B8` (via CSS) |
-| Mono/code text | `#475569` | `#CBD5E1` (via CSS) |
-| Card backgrounds | `#FFFFFF` | Keep white (contrast) |
-| Borders | `#E2E8F0` | Keep (works both) |
-
-### Standard Gradients
-
-Use these gradient IDs consistently across all SVGs:
-
-```xml
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
-
-### DO NOT
-
-- ❌ Hardcode text colors without CSS class
-- ❌ Use pure black (`#000000`) or pure white (`#FFFFFF`) for text
-- ❌ Forget the `@media (prefers-color-scheme: dark)` block
-- ❌ Use opaque backgrounds that don't adapt
-- ❌ Create new gradient IDs when standard ones exist
-
-### DO
-
-- ✅ Use CSS classes for all text elements
-- ✅ Include dark mode media query in every SVG
-- ✅ Use standard gradient IDs from the palette
-- ✅ Test SVGs in both light and dark browser modes
-- ✅ Use subtle shadows with low opacity (`0.15`)
-- ✅ Keep white cards for contrast in both modes
-
----
-
-## Conversation Examples (WhatsApp Style)
-
-All conversation examples throughout the book use the WhatsApp-style HTML format. This provides a familiar, visually consistent representation of bot interactions.
-
-### Standard Format
-
-```html
-
-
-
-
User message goes here
-
10:30
-
-
-
-
-
Bot response goes here
-
10:30
-
-
-
-```
-
-### Complete Example
-
-```html
-
-
-
-
Hello! How can I help you today?
-
10:30
-
-
-
-
-
I want to enroll in computer science
-
10:31
-
-
-
-
-
I'll help you enroll! What's your name?
-
10:31
-
-
-
-
-
Sarah Chen
-
10:31
-
-
-
-
-
✅ Welcome to Computer Science, Sarah!
-
Your enrollment ID is: ENR-2025-0142
-
10:31
-
-
-
-```
-
-### Message Classes
-
-| Class | Usage |
-|-------|-------|
-| `wa-chat` | Container for the conversation |
-| `wa-message` | Individual message wrapper |
-| `wa-message user` | User message (right-aligned, colored) |
-| `wa-message bot` | Bot message (left-aligned) |
-| `wa-bubble` | Message bubble with styling |
-| `wa-time` | Timestamp display |
-
-### Formatting Guidelines
-
-1. **User messages** — Use `wa-message user` class
-2. **Bot messages** — Use `wa-message bot` class
-3. **Timestamps** — Include `wa-time` div with realistic times
-4. **Multi-line responses** — Use separate `
` tags for each line
-5. **Emojis** — Use sparingly for status indicators (✅, ❌, 📧, 📅, 📁)
-6. **Bold text** — Use `` for emphasis
-7. **Attachments** — Indicate with 📎 emoji and filename
-
-### File Attachments Example
-
-```html
-
-
-
-
Upload the quarterly report
-
📎 Q4-Report.pdf
-
10:30
-
-
-
-
-
✅ File uploaded successfully!
-
📄 Q4-Report.pdf (2.4 MB)
-
📁 Saved to: My Drive
-
10:30
-
-
-
-```
-
----
-
-## CSS Styling
-
-The WhatsApp chat styling is defined in `whatsapp-chat.css` and automatically included in the book build. The styles provide:
-
-- Familiar messaging app appearance
-- Proper alignment (user right, bot left)
-- Bubble styling with shadows
-- Responsive layout
-- Timestamp formatting
-
----
-
-## When to Use Each Format
-
-| Content Type | Format |
-|--------------|--------|
-| Interface screenshots | SVG wireframe |
-| System architecture | SVG diagram |
-| Data flow diagrams | SVG diagram |
-| Bot conversations | WhatsApp HTML |
-| API examples | Code blocks |
-| Configuration | Code blocks |
-
----
-
-## Global Conversation Style Reference
-
-For all conversation examples throughout the book, follow the format established in:
-
-**[BASIC vs Automation Tools](../chapter-06-gbdialog/basic-vs-automation-tools.md)**
-
-This document serves as the canonical reference for:
-
-- Conversation formatting
-- Multi-channel message representation
-- Bot response styling
-- User input examples
-
----
-
-## See Also
-
-- [Conversation Examples](./conversation-examples.md) — Example patterns
-- [BASIC vs Automation Tools](../chapter-06-gbdialog/basic-vs-automation-tools.md) — Canonical conversation style
-- [Chapter 04 Apps](../chapter-04-gbui/apps/README.md) — Interface documentation
\ No newline at end of file
diff --git a/src/17-autonomous-tasks/vibe-database.md b/src/17-autonomous-tasks/vibe-database.md
deleted file mode 100644
index ad02b444..00000000
--- a/src/17-autonomous-tasks/vibe-database.md
+++ /dev/null
@@ -1,164 +0,0 @@
-# Vibe Database
-
-Visual PostgreSQL schema browser and SQL editor.
-
-
-
----
-
-## Overview
-
-Vibe Database provides a visual interface for exploring your bot's PostgreSQL database. View tables, relationships, run queries, and manage data.
-
----
-
-## Quick Start
-
-1. Click **Database** button in Vibe window
-2. Browse tables in left panel
-3. Click table to see schema
-4. Run SQL queries in editor
-
----
-
-## Features
-
-### Schema Browser
-- List all tables in database
-- View column definitions
-- See data types and constraints
-- View indexes and foreign keys
-
-### Table Viewer
-- Browse table data
-- Filter and sort
-- Pagination controls
-- Export to CSV
-
-### SQL Editor
-- Write and execute queries
-- Syntax highlighting
-- Query history
-- Results visualization
-
-### Relationship Viewer
-- Visual foreign key relationships
-- ER diagram view
-- Click to navigate related tables
-
----
-
-## Interface
-
-### Left Panel - Tables List
-```
-📦 customers
- ├─ id (UUID, PK)
- ├─ name (VARCHAR)
- ├─ email (VARCHAR, UNIQUE)
- ├─ created_at (TIMESTAMP)
- └─ updated_at (TIMESTAMP)
-
-📦 orders
- ├─ id (UUID, PK)
- ├─ customer_id (UUID, FK → customers)
- ├─ total (DECIMAL)
- ├─ status (VARCHAR)
- └─ created_at (TIMESTAMP)
-```
-
-### Main Panel - Table Data
-| id | name | email | created_at |
-|----|------|-------|------------|
-| xxx | John | john@... | 2024-01-01 |
-| xxx | Jane | jane@... | 2024-01-02 |
-
----
-
-## SQL Query Examples
-
-### Select All
-```sql
-SELECT * FROM customers;
-```
-
-### Join Tables
-```sql
-SELECT o.id, c.name, o.total
-FROM orders o
-JOIN customers c ON o.customer_id = c.id;
-```
-
-### Insert
-```sql
-INSERT INTO customers (name, email)
-VALUES ('New Customer', 'new@example.com');
-```
-
-### Update
-```sql
-UPDATE customers
-SET name = 'Updated Name'
-WHERE id = 'xxx';
-```
-
-### Delete
-```sql
-DELETE FROM customers
-WHERE id = 'xxx';
-```
-
----
-
-## Keyboard Shortcuts
-
-| Shortcut | Action |
-|----------|--------|
-| `Ctrl+Enter` | Execute query |
-| `Ctrl+S` | Save query |
-| `Ctrl+L` | Clear editor |
-| `Ctrl+H` | Toggle history |
-
----
-
-## Configuration
-
-### Connection Settings
-The database connects using bot configuration:
-- Host: PostgreSQL server
-- Port: 5432
-- Database: `{bot_id}_botserver`
-- User: Configured in bot settings
-
-### Query Limits
-- Default: 100 rows
-- Configurable: 10 - 10000 rows
-- Export: Unlimited
-
----
-
-## Security
-
-- Read-only mode available
-- SQL injection protection
-- Query logging for audit
-- Row-level access control
-
----
-
-## Troubleshooting
-
-### Connection Failed
-- Check PostgreSQL is running
-- Verify bot has database credentials
-- Check network connectivity
-
-### Query Error
-- Check SQL syntax
-- Verify table/column names
-- Review error message details
-
-### No Tables Visible
-- Bot may have no tables yet
-- AI hasn't generated database schema
-- Try creating app first
diff --git a/src/17-autonomous-tasks/vibe-editor.md b/src/17-autonomous-tasks/vibe-editor.md
deleted file mode 100644
index e2b06fe4..00000000
--- a/src/17-autonomous-tasks/vibe-editor.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# Vibe Editor
-
-Monaco-powered code editor with full IDE features.
-
-
-
----
-
-## Overview
-
-The Vibe Editor is based on Monaco (the same editor that powers VS Code). It provides a full IDE experience with syntax highlighting, IntelliSense, multi-file editing, and more.
-
----
-
-## Features
-
-### Syntax Highlighting
-Supports 70+ languages including:
-- JavaScript/TypeScript
-- Python
-- Rust
-- Go
-- HTML/CSS
-- SQL
-- JSON/YAML
-- And many more
-
-### IntelliSense
-- Auto-completion
-- Parameter hints
-- Signature help
-- Quick fixes
-
-### Multi-Cursor Editing
-- `Ctrl+D` - Select next occurrence
-- `Alt+Click` - Add cursor
-- `Ctrl+Alt+Down` - Add line below
-
-### Search & Replace
-- `Ctrl+F` - Find
-- `Ctrl+H` - Replace
-- `Ctrl+Shift+F` - Find in files
-- Regex support enabled
-
-### Minimap
-- Code overview on right side
-- Click to navigate
-- Draggable viewport
-
----
-
-## Keyboard Shortcuts
-
-| Shortcut | Action |
-|----------|--------|
-| `Ctrl+S` | Save file |
-| `Ctrl+P` | Quick open file |
-| `Ctrl+Shift+P` | Command palette |
-| `Ctrl+F` | Find |
-| `Ctrl+H` | Replace |
-| `Ctrl+Shift+F` | Find in files |
-| `Ctrl+D` | Select next occurrence |
-| `Alt+Up/Down` | Move line up/down |
-| `Ctrl+/` | Toggle comment |
-| `Ctrl+Shift+K` | Delete line |
-| `Ctrl+Enter` | Insert line below |
-| `Ctrl+Shift+Enter` | Insert line above |
-| `F12` | Go to definition |
-| `Ctrl+Space` | Trigger IntelliSense |
-
----
-
-## File Operations
-
-### Opening Files
-- Click file in file tree
-- `Ctrl+P` for quick open
-- Drag and drop files
-
-### Saving Files
-- `Ctrl+S` to save
-- Auto-save on focus loss
-- Shows unsaved indicator (dot on tab)
-
-### Creating Files
-- Right-click in file tree
-- New file button in toolbar
-
----
-
-## Workspace
-
-### File Tree
-Located on the left side:
-- Expand/collapse folders
-- File icons by type
-- Right-click context menu
-
-### Supported File Types
-| Icon | Type |
-|------|------|
-| 📄 | Generic file |
-| 📜 | Script (js, ts, py) |
-| 🎨 | Style (css, scss) |
-| 📦 | Config (json, yaml, toml) |
-| 🔷 | Component (vue, svelte) |
-
----
-
-## Configuration
-
-### Theme
-- Dark (default)
-- Light
-- High contrast
-
-### Font
-- Fira Code (with ligatures)
-- Customizable size
-- Line height control
-
-### Editor Settings
-```json
-{
- "editor.fontSize": 14,
- "editor.fontFamily": "Fira Code",
- "editor.tabSize": 4,
- "editor.minimap.enabled": true,
- "editor.formatOnSave": true
-}
-```
-
----
-
-## Integration
-
-### With Vibe Pipeline
-The editor integrates with the Vibe AI pipeline:
-1. AI generates code in editor
-2. Review agent checks code
-3. You can edit manually
-4. Changes tracked in Git
-
-### With Terminal
-- `Ctrl+`` - Toggle terminal panel
-- Run code directly from editor
-- See output in terminal
diff --git a/src/17-autonomous-tasks/vibe-git.md b/src/17-autonomous-tasks/vibe-git.md
deleted file mode 100644
index 23b72b6c..00000000
--- a/src/17-autonomous-tasks/vibe-git.md
+++ /dev/null
@@ -1,183 +0,0 @@
-# Vibe Git
-
-Git operations integrated with Forgejo ALM.
-
-
-
----
-
-## Overview
-
-Vibe Git provides visual Git operations for version control of your generated applications. Connect to Forgejo for remote operations.
-
----
-
-## Features
-
-### Local Operations
-- Initialize repository
-- Stage/unstage files
-- Commit changes
-- View diff
-- Branch management
-
-### Remote Operations
-- Push to Forgejo
-- Pull from remote
-- Fetch updates
-- Create pull requests
-
-### History
-- Commit log viewer
-- Author and date display
-- Message search
-- File change history
-
----
-
-## Interface
-
-### Changes Panel
-```
-Changes:
- M index.html
- A styles.css
- D old-file.js
-
-Staged (2):
- + styles.css
- M index.html
-```
-
-### Commit History
-```
-abc1234 (main) Add user authentication - John, 2h ago
-def5678 Fix login validation - Jane, 5h ago
-ghi9012 Initial commit - John, 1d ago
-```
-
----
-
-## Quick Start
-
-### 1. Initialize Repository
-```bash
-git init
-```
-
-### 2. Add Files
-```bash
-git add .
-```
-
-### 3. Commit
-```bash
-git commit -m "Initial commit"
-```
-
-### 4. Connect to Remote
-```bash
-git remote add origin https://forgejo.example/user/repo.git
-git push -u origin main
-```
-
----
-
-## Git Commands
-
-### Status
-```bash
-git status
-```
-
-### Add Files
-```bash
-# Add specific file
-git add file.txt
-
-# Add all changes
-git add -A
-```
-
-### Commit
-```bash
-git commit -m "Your message"
-```
-
-### Push
-```bash
-git push origin main
-```
-
-### Pull
-```bash
-git pull origin main
-```
-
-### Branch
-```bash
-# List branches
-git branch
-
-# Create branch
-git branch feature-name
-
-# Switch branch
-git checkout feature-name
-
-# Create and switch
-git checkout -b feature-name
-```
-
-### Merge
-```bash
-git merge feature-name
-```
-
----
-
-## Forgejo Integration
-
-### Configure Remote
-```
-Remote URL: https://forgejo.example/owner/repo.git
-Username: Your Forgejo username
-Token: Your API token
-```
-
-### Create Pull Request
-1. Push branch to Forgejo
-2. Click "Create PR" button
-3. Fill title and description
-4. Submit
-
----
-
-## Keyboard Shortcuts
-
-| Shortcut | Action |
-|----------|--------|
-| `Ctrl+S` | Stage current file |
-| `Ctrl+Shift+S` | Stage all |
-| `Ctrl+C` | Commit |
-| `Ctrl+P` | Push |
-| `Ctrl+U` | Pull |
-
----
-
-## Troubleshooting
-
-### Push Failed
-- Check remote URL is correct
-- Verify Forgejo credentials
-- Check network connectivity
-
-### Merge Conflicts
-- View conflicting files
-- Edit to resolve
-- Stage and commit
-
-### Empty History
-- Repository may be new
-- Check correct directory
-- Verify .git exists
diff --git a/src/17-autonomous-tasks/vibe-mcp.md b/src/17-autonomous-tasks/vibe-mcp.md
deleted file mode 100644
index bc693bec..00000000
--- a/src/17-autonomous-tasks/vibe-mcp.md
+++ /dev/null
@@ -1,181 +0,0 @@
-# Vibe MCP
-
-Model Context Protocol integrations for extended AI capabilities.
-
-
-
----
-
-## Overview
-
-MCP (Model Context Protocol) allows Vibe to connect to external tools and services. Extend AI capabilities with databases, APIs, and custom tools.
-
----
-
-## What is MCP?
-
-MCP is a protocol that lets AI models interact with external systems:
-- **Filesystem** - Read/write local files
-- **Database** - Query databases directly
-- **HTTP** - Make API requests
-- **Custom** - Your own tools
-
----
-
-## Supported Integrations
-
-### Filesystem
-```json
-{
- "name": "filesystem",
- "type": "stdio",
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
-}
-```
-
-### PostgreSQL
-```json
-{
- "name": "postgres",
- "type": "stdio",
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-postgres", "postgres://user:pass@localhost/db"]
-}
-```
-
-### Browser Automation
-```json
-{
- "name": "browser",
- "type": "stdio",
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
-}
-```
-
----
-
-## Configuration
-
-### Add MCP Server
-
-1. Go to **Sources → MCP**
-2. Click **Add Server**
-3. Select server type or enter custom
-4. Configure connection
-5. Save and connect
-
-### Server Types
-
-| Type | Description |
-|------|-------------|
-| `stdio` | Local command-line tool |
-| `sse` | Server-Sent Events endpoint |
-| `websocket` | WebSocket connection |
-
----
-
-## Using MCP Tools
-
-### In Vibe Chat
-```
-User: Show me all orders from the database
-
-AI: (uses postgres MCP to query)
-Orders:
-| id | customer | total |
-|----|----------|-------|
-| 1 | John | 99.00 |
-```
-
-### Available Actions
-
-- **Read** - Query data
-- **Write** - Insert/Update/Delete
-- **Search** - Full-text search
-- **Analyze** - Run computations
-
----
-
-## MCP Panel
-
-Access MCP panel in Vibe:
-1. Click **MCP** button in toolbar
-2. View connected servers
-3. Test tools
-4. View logs
-
----
-
-## Creating Custom MCP Server
-
-### 1. Create Server Script
-```javascript
-// my-server.js
-const { Server } = require('@modelcontextprotocol/sdk/server');
-const { StdioServerTransport } = require('@modelcontextprotocol/sdk/server/stdio');
-
-const server = new Server({
- name: 'my-custom-server',
- version: '1.0.0'
-}, {
- capabilities: {
- tools: {}
- }
-});
-
-server.setRequestHandler('tools/list', async () => {
- return {
- tools: [{
- name: 'my_tool',
- description: 'Does something useful',
- inputSchema: {
- type: 'object',
- properties: {
- param: { type: 'string' }
- }
- }
- }]
- };
-});
-
-server.setRequestHandler('tools/call', async (request) => {
- const { name, arguments: args } = request.params;
- if (name === 'my_tool') {
- return { content: [{ type: 'text', text: 'Result' }] };
- }
-});
-
-const transport = new StdioServerTransport();
-await server.connect(transport);
-```
-
-### 2. Register in Vibe
-```json
-{
- "name": "my-server",
- "type": "stdio",
- "command": "node",
- "args": ["/path/to/my-server.js"]
-}
-```
-
----
-
-## Troubleshooting
-
-### Connection Failed
-- Check server is installed
-- Verify command/path
-- Check logs for errors
-
-### Tool Not Working
-- Verify input format
-- Check server logs
-- Test with simpler parameters
-
-### Server Not Listed
-- Restart Vibe
-- Check configuration
-- Review server status
diff --git a/src/17-autonomous-tasks/vibe-terminal.md b/src/17-autonomous-tasks/vibe-terminal.md
deleted file mode 100644
index aa549a35..00000000
--- a/src/17-autonomous-tasks/vibe-terminal.md
+++ /dev/null
@@ -1,113 +0,0 @@
-# Vibe Terminal
-
-Full-featured terminal with isolated LXC containers for each session.
-
-
-
----
-
-## Overview
-
-The Vibe terminal provides an isolated Ubuntu 22.04 container for each session. Your commands run in a secure, sandboxed environment that is automatically created on connect and destroyed on disconnect.
-
----
-
-## Quick Start
-
-1. Click **Terminal** icon on desktop or in Vibe window
-2. Terminal connects to a new LXC container
-3. Type commands as normal bash shell
-
-```bash
-$ pwd
-/root
-$ whoami
-root
-$ uname -a
-Linux term-abc123 5.15.0 #1 SMP x86_64 GNU/Linux
-```
-
----
-
-## Features
-
-### Isolated Containers
-- Each terminal session gets its own Ubuntu 22.04 container
-- Containers are ephemeral - destroyed on disconnect
-- Full root access within container
-
-### 256-Color Support
-- Full xterm-256color support
-- Works with vim, tmux, htop, etc.
-
-### WebSocket Protocol
-- Connects via WebSocket for real-time I/O
-- Automatic reconnection on disconnect
-- Session persistence during network issues
-
----
-
-## API Endpoints
-
-| Method | Endpoint | Description |
-|--------|----------|-------------|
-| `WS` | `/api/terminal/ws?session_id=xxx` | Terminal WebSocket |
-| `GET` | `/api/terminal/list` | List active terminals |
-| `POST` | `/api/terminal/create` | Create new terminal |
-| `POST` | `/api/terminal/kill` | Kill terminal session |
-
-### WebSocket Commands
-
-Send text to execute commands:
-```
-ls -la
-```
-
-Special commands:
-- `resize COLS ROWS` - Resize terminal
-- `exit` - Close terminal session
-
----
-
-## Configuration
-
-### Container Settings
-
-The terminal uses these LXC commands:
-- `lxc launch ubuntu:22.04 {name}` - Create container
-- `lxc exec {name} -- bash` - Execute shell
-- `lxc stop {name} -f` - Stop container
-- `lxc delete {name} -f` - Delete container
-
-### Environment Variables
-
-| Variable | Default | Description |
-|----------|---------|-------------|
-| `TERM` | `xterm-256color` | Terminal type |
-
----
-
-## Troubleshooting
-
-### Connection Failed
-- Check that LXC is installed and running
-- Verify network connectivity
-- Check botserver logs for errors
-
-### Container Won't Start
-- Ensure LXC daemon is running: `systemctl status lxc`
-- Check LXC configuration: `lxc list`
-- Review container logs: `lxc info {name}`
-
-### Commands Not Working
-- Container may have been destroyed - reconnect
-- Check WebSocket connection status
-
----
-
-## Security
-
-- Container names are sanitized (alphanumeric + dash only)
-- Containers are isolated from host network by default
-- Sessions are cleaned up on disconnect
-- No persistent storage between sessions
diff --git a/src/17-autonomous-tasks/vibe.md b/src/17-autonomous-tasks/vibe.md
deleted file mode 100644
index 540b2d6b..00000000
--- a/src/17-autonomous-tasks/vibe.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# Vibe - AI-Powered Development Environment
-
-Vibe is the autonomous coding mode that transforms your development workflow. Describe what you want to build, and AI agents create it automatically.
-
-
-
----
-
-## Quick Start
-
-1. Click **Vibe** icon on desktop
-2. Describe your project in the chat
-3. Watch agents build, review, and deploy
-
-```bash
-# Example: Create an e-commerce app
-"Build an e-commerce app for handmade crafts with shopping cart"
-```
-
----
-
-## Pipeline Stages
-
-| Stage | Agent | Description |
-|-------|-------|-------------|
-| **PLAN** | Architect | Analyzes requirements, creates spec |
-| **BUILD** | Developer | Generates code, creates database |
-| **REVIEW** | Reviewer | Security scan, quality checks |
-| **DEPLOY** | DevOps | Pushes to Forgejo, deploys |
-| **MONITOR** | QA | Runs tests, validates |
-
----
-
-## Features
-
-### Monaco Editor
-- Full IDE editing with syntax highlighting
-- Multi-file workspace support
-- File tree navigation
-
-### Database UI
-- Visual PostgreSQL schema browser
-- SQL query editor
-- Table relationship viewer
-
-### Git Operations
-- Branch management
-- Commit history
-- Pull/push to Forgejo
-
-### Terminal
-- Isolated LXC container per session
-- Full shell access
-- Persistent workspace
-
-### Browser Automation
-- Chromiumoxide integration
-- Visual test runner
-- Screenshot capture
-
-### MCP Integration
-- Connect external tools
-- AI model integration
-- Custom tool definitions
-
----
-
-## BYOK (Bring Your Own Key)
-
-Configure your own LLM API keys in **Sources → API Keys**:
-
-- OpenAI
-- Anthropic (Claude)
-- Google Gemini
-- Azure OpenAI
-- OpenAI Compatible
-
----
-
-## Use Cases
-
-### 1. Rapid Prototyping
-```bash
-"Create a CRM with contacts, leads, and deal pipeline"
-```
-
-### 2. Full-Stack Apps
-```bash
-"Build an e-commerce store with cart, checkout, and Stripe payments"
-```
-
-### 3. Internal Tools
-```bash
-"Make an employee onboarding checklist app with approvals"
-```
-
-### 4. Data Dashboards
-```bash
-"Create a sales analytics dashboard with charts and exports"
-```
-
----
-
-## Architecture
-
-```
-┌─────────────────────────────────────────────────────────┐
-│ Vibe UI │
-│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
-│ │ PLAN │→ │ BUILD │→ │ REVIEW │→ │ DEPLOY │ │
-│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
-└─────────────────────────────────────────────────────────┘
- ↓
-┌─────────────────────────────────────────────────────────┐
-│ Orchestrator (5 Agents) │
-│ Architect → Developer → Reviewer → QA → DevOps │
-└─────────────────────────────────────────────────────────┘
- ↓
-┌─────────────────────────────────────────────────────────┐
-│ BotServer │
-│ - AppGenerator (code gen) │
-│ - Database Manager │
-│ - File System │
-└─────────────────────────────────────────────────────────┘
-```
-
----
-
-## Keyboard Shortcuts
-
-| Shortcut | Action |
-|----------|--------|
-| `Ctrl+S` | Save file |
-| `Ctrl+P` | Quick open |
-| `Ctrl+Shift+P` | Command palette |
-| `Ctrl+`` | Toggle terminal |
-
----
-
-## Related Documentation
-
-- [Vibe Terminal](./vibe-terminal.md) - Isolated container terminal
-- [Vibe Editor](./vibe-editor.md) - Monaco editor guide
-- [Vibe Database](./vibe-database.md) - Database UI
-- [Vibe Git](./vibe-git.md) - Git operations
-- [Vibe MCP](./vibe-mcp.md) - MCP integrations
-- [Designer](./designer.md) - Visual app editor
-- [App Generation](./app-generation.md) - Code generation
diff --git a/src/17-testing/README.md b/src/17-testing/README.md
deleted file mode 100644
index e4c58b09..00000000
--- a/src/17-testing/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Testing
-
-General Bots uses a comprehensive testing framework including unit tests, integration tests, and end-to-end (E2E) tests to ensure platform reliability and quality.
-
-## Overview
-
-The testing strategy covers:
-
-- **Unit Tests** - Individual component testing
-- **Integration Tests** - Service interaction testing
-- **E2E Tests** - Complete user journey validation
-
-## Test Structure
-
-All tests are organized in the `bottest` package:
-
-```
-bottest/
-├── src/ # Test utilities and harness
-├── tests/
-│ ├── unit/ # Unit tests
-│ ├── integration/ # Integration tests
-│ └── e2e/ # End-to-end tests
-├── benches/ # Performance benchmarks
-└── Cargo.toml
-```
-
-## Running Tests
-
-### All Tests
-```bash
-cd gb/bottest
-cargo test
-```
-
-### Specific Test Types
-```bash
-# Unit tests
-cargo test --lib
-
-# Integration tests
-cargo test --test integration
-
-# E2E tests
-cargo test --test e2e -- --nocapture
-```
-
-## Test Harness
-
-The test harness provides utilities for setting up test environments:
-
-```rust
-use bottest::prelude::*;
-
-#[tokio::test]
-async fn my_test() {
- let ctx = TestHarness::full().await.unwrap();
- // Test code here
- ctx.cleanup().await.unwrap();
-}
-```
-
-## Continuous Integration
-
-Tests run automatically on:
-- Pull requests
-- Commits to main branch
-- Pre-release checks
-
-See the repository's CI/CD configuration for details.
-
-## Next Steps
-
-- [End-to-End Testing](./e2e-testing.md) - Browser automation and user flow testing
-- [Performance Testing](./performance.md) - Benchmarking and profiling
-- [Test Architecture](./architecture.md) - Design patterns and best practices
\ No newline at end of file
diff --git a/src/19-maintenance/README.md b/src/19-maintenance/README.md
deleted file mode 100644
index 1c5487d1..00000000
--- a/src/19-maintenance/README.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Chapter 19: Maintenance and Updates
-
-botserver includes a complete stack of self-hosted services that power your bots. This chapter covers how to maintain, update, and troubleshoot these components.
-
-## Stack Components Overview
-
-botserver automatically installs and manages these services:
-
-| Component | Service | Default Port | Purpose |
-|-----------|---------|--------------|---------|
-| **vault** | HashiCorp Vault | 8200 | Secrets management |
-| **tables** | PostgreSQL | 5432 | Primary database |
-| **directory** | Zitadel | 8080 | Identity & access management |
-| **drive** | MinIO | 9000, 9001 | Object storage (S3-compatible) |
-| **cache** | Valkey | 6379 | In-memory cache (Redis-compatible) |
-| **llm** | llama.cpp | 8081, 8082 | Local LLM & embedding server |
-| **email** | Stalwart | 25, 993 | Mail server |
-| **proxy** | Caddy | 443, 80 | HTTPS reverse proxy |
-| **dns** | CoreDNS | 53 | Local DNS resolution |
-| **alm** | Forgejo | 3000 | Git repository (ALM) |
-| **alm_ci** | Forgejo Runner | - | CI/CD runner |
-| **meeting** | LiveKit | 7880 | Video conferencing |
-
-## Directory Structure
-
-```
-botserver-stack/
-├── bin/ # Service binaries
-│ ├── vault/
-│ ├── tables/
-│ ├── drive/
-│ ├── cache/
-│ ├── llm/
-│ └── ...
-├── conf/ # Configuration files
-├── data/ # Persistent data
-└── logs/ # Service logs
-
-botserver-installers/ # Downloaded archives (cache)
-```
-
-## Why Self-Hosted?
-
-1. **Privacy** - Data never leaves your infrastructure
-2. **Offline** - Works without internet after initial setup
-3. **Cost** - No per-user or API fees
-4. **Control** - Full access to all services
-5. **Compliance** - Meet data residency requirements
-
-## Chapter Contents
-
-- [CLI Reference](./cli-reference.md) - Command-line interface for botserver
-- [Updating Components](./updating-components.md) - How to update individual services
-- [Component Reference](./component-reference.md) - Detailed info for each component
-- [Security Auditing](./security-auditing.md) - Running security audits
-- [Backup and Recovery](./backup-recovery.md) - Data protection strategies
-- [Troubleshooting](./troubleshooting.md) - Common issues and solutions
-
-## Quick Commands
-
-```bash
-# Check service status
-./botserver status
-
-# View logs
-tail -f botserver-stack/logs/llm.log
-
-# Restart all services
-./botserver restart
-
-# Update a specific component
-./botserver update llm
-```
-
-## Related Documentation
-
-- [Installation](../01-introduction/installation.md) - Initial setup
-- [Secrets Management](../08-config/secrets-management.md) - Vault configuration
-- [LLM Configuration](../08-config/llm-config.md) - AI model settings
\ No newline at end of file
diff --git a/src/20-embedding/README.md b/src/20-embedding/README.md
deleted file mode 100644
index 21ffe7e0..00000000
--- a/src/20-embedding/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Chapter 20: Embedded Deployment
diff --git a/src/23-security/endpoint-checklist.md b/src/23-security/endpoint-checklist.md
deleted file mode 100644
index 7c6f8bdb..00000000
--- a/src/23-security/endpoint-checklist.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Endpoint Security Checklist
-
-When adding new endpoints to the `.gbai` and BotServer APIs, ensure you adhere to this standard security checklist. All state-changing endpoints (those using `POST`, `PUT`, `PATCH`, or `DELETE` methods) must be protected against common Web vulnerabilities, including CSRF.
-
-## 1. CSRF Protection for State-Changing Endpoints
-
-Cross-Site Request Forgery (CSRF) protection must be applied to any endpoint that alters system state. Evaluate if the endpoint falls under one of the following exemptions:
-
-* **Exemptions:**
- * API endpoints exclusively utilizing **Bearer Token** authentication (stateless requests that do not rely on cookies).
- * Webhooks from external systems that provide their own authentication mechanisms (e.g., HMAC signatures like WhatsApp/Meta).
- * Publicly fully accessible endpoints that do not affect any user data or system state.
-* **Requirements:**
- * All web-facing or cookie-authenticated endpoints must enforce CSRF checks.
- * Tokens must be bound to the user session.
- * Utilize double-submit cookie pattern or header-based token verification via the `CsrfManager`.
-
-## 2. Authentication & Authorization (RBAC) Requirements
-
-Do not expose new endpoints without explicitly defining their necessary permissions.
-
-* Ensure the endpoint is behind the `require_authentication_middleware` or similar authentication flow unless it is strictly intended to be public (e.g., `/api/auth/login`).
-* Assign appropriate RBAC (Role-Based Access Control) permissions and ensure `require_role_middleware` is validated.
-* Validate resource ownership. If a user tries to edit or delete an entity (e.g., a Bot, Document, or File), the backend must confirm they own the entity or possess tenant/admin privileges.
-
-## 3. Strict Security Headers
-
-All HTTP responses returning HTML content must include standard security headers.
-
-* Ensure the router uses `security_headers_middleware`.
-* Mandatory Headers:
- * `Content-Security-Policy`: Must clearly restrict `script-src`, `connect-src`, and `frame-ancestors`.
- * `X-Frame-Options: DENY` (or `SAMEORIGIN` if absolutely necessary for the suite).
- * `X-Content-Type-Options: nosniff`.
- * `Strict-Transport-Security` (HSTS).
- * `Referrer-Policy: strict-origin-when-cross-origin`.
-
-## 4. Input Validation & Sanitization
-
-Do not rely exclusively on client-side validation.
-
-* Validate the schema, length, and format of all incoming request payloads (`JSON`, `Query`, `Form`).
-* Sanitize inputs that might be used inside SQL queries, though using ORMs (like Diesel) or parameterized queries safely mitigates straightforward SQL injection. Avoid dynamic SQL string formatting.
-* Sanitize any output bound for HTML parsing to prevent Stored or Reflected XSS.
-
-## 5. Rate Limiting
-
-Endpoints must prevent brute force and DDoS abuse.
-
-* Apply or ensure that globally the `rate_limit_middleware` covers the new route.
-* Authentication endpoints (like login forms) should have significantly stricter rate limits.
-* Consider adding secondary quotas per underlying resource if dealing with expensive generation tasks (like LLM interactions).
-
-## 6. Secure Error Handling
-
-Never leak internal traces or paths.
-
-* Do not `unwrap()`, `expect()`, or `panic!()`. Use Rust's `?` operator.
-* Use `ErrorSanitizer` logic, or return generalized application errors like `(StatusCode::INTERNAL_SERVER_ERROR, "An internal error occurred")` instead of specific database schema details.
-
----
-
-### Process for Review
-
-When submitting a PR incorporating new endpoints, mention that you have completed this checklist in your PR description.
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
index a88f3b0e..a2383bbd 100644
--- a/src/SUMMARY.md
+++ b/src/SUMMARY.md
@@ -4,463 +4,289 @@
[Roadmap 2024-2026](./ROADMAP.md)
[Introduction](./introduction.md)
-# Part I - Getting Started
+---
-- [Chapter 01: Run and Talk](./01-introduction/README.md)
- - [Overview](./01-introduction/overview.md)
- - [Quick Start](./01-introduction/quick-start.md)
- - [Configuring .local Domains](./01-introduction/local-domains.md)
- - [Installation](./01-introduction/installation.md)
- - [First Conversation](./01-introduction/first-conversation.md)
- - [Sessions and Channels](./01-introduction/sessions.md)
+# Part I: Getting Started
-# Part II - Package System
+- [Chapter 1: Getting Started](./01-getting-started/README.md)
+ - [Overview](./01-getting-started/overview.md)
+ - [Quick Start](./01-getting-started/quick-start.md)
+ - [Installation](./01-getting-started/installation.md)
+ - [Configuring .local Domains](./01-getting-started/local-domains.md)
+ - [First Conversation](./01-getting-started/first-conversation.md)
+ - [Sessions and Channels](./01-getting-started/sessions.md)
-- [Chapter 02: About Packages](./02-templates/README.md)
- - [.gbai Architecture](./02-templates/gbai.md)
- - [.gbdialog Dialogs](./02-templates/gbdialog.md)
- - [.gbkb Knowledge Base](./02-templates/gbkb.md)
- - [.gbot Bot Configuration](./02-templates/gbot.md)
- - [.gbtheme UI Theming](./02-templates/gbtheme.md)
- - [.gbdrive File Storage](./02-templates/gbdrive.md)
- - [Bot Templates](./02-templates/templates.md)
- - [Template Samples & Conversations](./02-templates/template-samples.md)
- - [Template: Business Intelligence](./02-templates/template-bi.md)
- - [Template: Web Crawler](./02-templates/template-crawler.md)
- - [Template: Legal Documents](./02-templates/template-law.md)
- - [Template: LLM Server](./02-templates/template-llm-server.md)
- - [Template: LLM Tools](./02-templates/template-llm-tools.md)
- - [Template: API Client](./02-templates/template-api-client.md)
- - [Template: Platform Analytics](./02-templates/template-analytics.md)
- - [Template: Office Automation](./02-templates/template-office.md)
- - [Template: Reminders](./02-templates/template-reminder.md)
- - [Template: Sales CRM](./02-templates/template-crm.md)
- - [Template: CRM Contacts](./02-templates/template-crm-contacts.md)
- - [Template: Attendance CRM](./02-templates/template-attendance-crm.md)
- - [Template: Marketing](./02-templates/template-marketing.md)
- - [Template: Embedded Devices](./02-templates/template-embedded.md)
- - [Template: Creating Templates](./02-templates/template-template.md)
+---
-# Part III - Knowledge Base
+# Part II: Core Architecture
-- [Chapter 03: gbkb Reference](./03-knowledge-base/README.md)
- - [KB and Tools System](./03-knowledge-base/kb-and-tools.md)
- - [Vector Collections](./03-knowledge-base/vector-collections.md)
- - [Document Indexing](./03-knowledge-base/indexing.md)
- - [Semantic Search](./03-knowledge-base/semantic-search.md)
- - [Episodic Memory](./03-knowledge-base/episodic-memory.md)
- - [Semantic Caching](./03-knowledge-base/caching.md)
+- [Chapter 2: Architecture & Packages](./02-architecture-packages/README.md)
+ - [Architecture Overview](./02-architecture-packages/architecture.md)
+ - [Module Structure](./02-architecture-packages/crates.md)
+ - [Service Layer](./02-architecture-packages/services.md)
+ - [Building from Source](./02-architecture-packages/building.md)
+ - [Cargo Tools Reference](./02-architecture-packages/cargo-tools.md)
+ - [Container Deployment (LXC)](./02-architecture-packages/containers.md)
+ - [Docker Deployment](./02-architecture-packages/docker-deployment.md)
+ - [Kubernetes Deployment](./02-architecture-packages/kubernetes-deployment.md)
+ - [Scaling and Load Balancing](./02-architecture-packages/scaling.md)
+ - [Infrastructure Design](./02-architecture-packages/infrastructure.md)
+ - [Observability](./02-architecture-packages/observability.md)
+ - [Monitoring Setup](./02-architecture-packages/monitoring-setup.md)
+ - [Autonomous Task AI](./02-architecture-packages/autonomous-tasks.md)
+ - [Philosophy](./02-architecture-packages/philosophy.md)
+ - [.gbai Package Format](./02-architecture-packages/gbai.md)
+ - [.gbdialog Dialogs](./02-architecture-packages/gbdialog.md)
+ - [.gbkb Knowledge Base](./02-architecture-packages/gbkb.md)
+ - [.gbot Bot Configuration](./02-architecture-packages/gbot.md)
+ - [.gbtheme UI Theming](./02-architecture-packages/gbtheme.md)
+ - [.gbdrive File Storage](./02-architecture-packages/gbdrive.md)
+ - [Templates Overview](./02-architecture-packages/templates.md)
+ - [Template: BI](./02-architecture-packages/template-bi.md)
+ - [Template: Web Crawler](./02-architecture-packages/template-crawler.md)
+ - [Template: CRM](./02-architecture-packages/template-crm.md)
+ - [Template: Marketing](./02-architecture-packages/template-marketing.md)
-# Part IV - User Interface
+---
-- [Chapter 04: .gbui Interface Reference](./04-gbui/README.md)
- - [Suite User Manual](./04-gbui/suite-manual.md)
- - [Admin vs User Views](./04-gbui/admin-user-views.md)
- - [UI Structure](./04-gbui/ui-structure.md)
- - [single.gbui - Simple Chat](./04-gbui/single-gbui.md)
- - [Console Mode](./04-gbui/console-mode.md)
- - [Monitoring Dashboard](./04-gbui/monitoring.md)
- - [HTMX Architecture](./04-gbui/htmx-architecture.md)
- - [Dev Chat Widget](./04-gbui/dev-chat.md)
- - [Suite Applications](./04-gbui/apps/README.md)
- - [Suite - Full Desktop](./04-gbui/apps/suite.md)
- - [Chat - AI Assistant](./04-gbui/apps/chat.md)
- - [Drive - File Management](./04-gbui/apps/drive.md)
- - [Tasks](./04-gbui/apps/tasks.md)
- - [Mail - Email Client](./04-gbui/apps/mail.md)
- - [Calendar - Scheduling](./04-gbui/apps/calendar.md)
- - [Meet - Video Calls](./04-gbui/apps/meet.md)
- - [Player - Media Viewer](./04-gbui/apps/player.md)
- - [Paper - AI Writing](./04-gbui/apps/paper.md)
- - [Research - AI Search](./04-gbui/apps/research.md)
- - [CRM - Sales Pipeline](./04-gbui/apps/crm.md)
- - [Billing - Invoices & Payments](./04-gbui/apps/billing.md)
- - [Products - Catalog Management](./04-gbui/apps/products.md)
- - [Tickets - Support Cases](./04-gbui/apps/tickets.md)
- - [Analytics - Dashboards](./04-gbui/apps/analytics.md)
- - [Dashboards - Custom BI](./04-gbui/apps/dashboards.md)
- - [Designer - Visual Builder](./04-gbui/apps/designer.md)
- - [Sources - Prompts & Templates](./04-gbui/apps/sources.md)
- - [Compliance - Security Scanner](./04-gbui/apps/compliance.md)
- - [Compliance API Reference](./04-gbui/apps/compliance-api.md)
- - [How-To Tutorials](./04-gbui/how-to/README.md)
- - [Create Your First Bot](./04-gbui/how-to/create-first-bot.md)
- - [Write Your First Dialog](./04-gbui/how-to/write-first-dialog.md)
- - [Add Documents to Knowledge Base](./04-gbui/how-to/add-kb-documents.md)
- - [Connect WhatsApp](./04-gbui/how-to/connect-whatsapp.md)
- - [Monitor Your Bot](./04-gbui/how-to/monitor-sessions.md)
+# Part III: Intelligence
-# Part V - Themes and Styling
+- [Chapter 3: Knowledge & AI](./03-knowledge-ai/README.md)
+ - [KB and Tools System](./03-knowledge-ai/kb-and-tools.md)
+ - [Vector Collections](./03-knowledge-ai/vector-collections.md)
+ - [Document Indexing](./03-knowledge-ai/indexing.md)
+ - [Semantic Search](./03-knowledge-ai/semantic-search.md)
+ - [Episodic Memory](./03-knowledge-ai/episodic-memory.md)
+ - [Semantic Caching](./03-knowledge-ai/caching.md)
+ - [AI and LLM Integration](./03-knowledge-ai/ai-llm.md)
+ - [Hybrid RAG Search](./03-knowledge-ai/hybrid-search.md)
+ - [Memory Management](./03-knowledge-ai/memory-management.md)
+ - [Conversation Management](./03-knowledge-ai/conversation.md)
+ - [Automation](./03-knowledge-ai/automation.md)
+ - [Email Integration](./03-knowledge-ai/email.md)
+ - [Transfer to Human](./03-knowledge-ai/transfer-to-human.md)
+ - [LLM-Assisted Attendant](./03-knowledge-ai/attendant-llm-assist.md)
-- [Chapter 05: gbtheme CSS Reference](./05-gbtheme/README.md)
- - [Theme Structure](./05-gbtheme/structure.md)
- - [CSS Customization](./05-gbtheme/css.md)
+---
-# Part VI - BASIC Dialogs
+# Part IV: Programming
-- [Chapter 06: gbdialog Reference](./06-gbdialog/README.md)
- - [Dialog Basics](./06-gbdialog/basics.md)
- - [API Possibilities](./06-gbdialog/api-possibilities.md)
- - [Universal Messaging & Multi-Channel](./06-gbdialog/universal-messaging.md)
- - [BASIC vs n8n/Zapier/Make](./06-gbdialog/basic-vs-automation-tools.md)
- - [Template Variables](./06-gbdialog/template-variables.md)
- - [Template Examples](./06-gbdialog/templates.md)
- - [start.bas](./06-gbdialog/templates/start.md)
- - [enrollment.bas](./06-gbdialog/templates/enrollment.md)
- - [auth.bas](./06-gbdialog/templates/auth.md)
- - [ai-search.bas](./06-gbdialog/templates/ai-search.md)
- - [analytics-dashboard.bas](./06-gbdialog/templates/analytics-dashboard.md)
- - [announcements.bas](./06-gbdialog/templates/announcements.md)
- - [backup.bas](./06-gbdialog/templates/backup.md)
- - [bank.bas](./06-gbdialog/templates/bank.md)
- - [broadcast.bas](./06-gbdialog/templates/broadcast.md)
- - [default.bas](./06-gbdialog/templates/default.md)
- - [edu.bas](./06-gbdialog/templates/edu.md)
- - [employees.bas](./06-gbdialog/templates/employees.md)
- - [erp.bas](./06-gbdialog/templates/erp.md)
- - [helpdesk.bas](./06-gbdialog/templates/helpdesk.md)
- - [privacy.bas](./06-gbdialog/templates/privacy.md)
- - [sales-pipeline.bas](./06-gbdialog/templates/sales-pipeline.md)
- - [store.bas](./06-gbdialog/templates/store.md)
- - [talk-to-data.bas](./06-gbdialog/templates/talk-to-data.md)
- - [whatsapp.bas](./06-gbdialog/templates/whatsapp.md)
- - [Webhook Integrations and Jobs](./06-gbdialog/examples-consolidated.md)
- - [Data Sync Tools](./06-gbdialog/tools-data-sync.md)
- - [Keywords Reference](./06-gbdialog/keywords.md)
- - [TALK](./06-gbdialog/keyword-talk.md)
- - [HEAR](./06-gbdialog/keyword-hear.md)
- - [SET CONTEXT](./06-gbdialog/keyword-set-context.md)
- - [GET BOT MEMORY](./06-gbdialog/keyword-get-bot-memory.md)
- - [SET BOT MEMORY](./06-gbdialog/keyword-set-bot-memory.md)
- - [GET USER MEMORY](./06-gbdialog/keyword-get-user-memory.md)
- - [SET USER MEMORY](./06-gbdialog/keyword-set-user-memory.md)
- - [REMEMBER / RECALL](./06-gbdialog/keyword-remember.md)
- - [BOOK / BOOK_MEETING](./06-gbdialog/keyword-book.md)
- - [WEATHER / FORECAST](./06-gbdialog/keyword-weather.md)
- - [ADD BOT](./06-gbdialog/keyword-add-bot.md)
- - [ADD MEMBER](./06-gbdialog/keyword-add-member.md)
- - [ADD SUGGESTION](./06-gbdialog/keyword-add-suggestion.md)
- - [MODEL ROUTE](./06-gbdialog/keyword-model-route.md)
- - [SEND TEMPLATE](./06-gbdialog/keyword-send-template.md)
- - [SET USER](./06-gbdialog/keyword-set-user.md)
- - [USE MODEL](./06-gbdialog/keyword-use-model.md)
- - [DELEGATE TO BOT](./06-gbdialog/keyword-delegate-to-bot.md)
- - [BOT REFLECTION](./06-gbdialog/keyword-bot-reflection.md)
- - [RUN PYTHON / JAVASCRIPT / BASH](./06-gbdialog/keyword-run-code.md)
- - [USE KB](./06-gbdialog/keyword-use-kb.md)
- - [USE ACCOUNT](./06-gbdialog/keyword-use-account.md)
- - [CLEAR KB](./06-gbdialog/keyword-clear-kb.md)
- - [USE WEBSITE](./06-gbdialog/keyword-use-website.md)
- - [USE TOOL](./06-gbdialog/keyword-use-tool.md)
- - [CLEAR TOOLS](./06-gbdialog/keyword-clear-tools.md)
- - [GET](./06-gbdialog/keyword-get.md)
- - [SET](./06-gbdialog/keyword-set.md)
- - [ON](./06-gbdialog/keyword-on.md)
- - [ON EMAIL](./06-gbdialog/keyword-on-email.md)
- - [ON CHANGE](./06-gbdialog/keyword-on-change.md)
- - [SET SCHEDULE](./06-gbdialog/keyword-set-schedule.md)
- - [CREATE SITE](./06-gbdialog/keyword-create-site.md)
- - [CREATE DRAFT](./06-gbdialog/keyword-create-draft.md)
- - [CREATE TASK](./06-gbdialog/keyword-create-task.md)
- - [PRINT](./06-gbdialog/keyword-print.md)
- - [WAIT](./06-gbdialog/keyword-wait.md)
- - [FORMAT](./06-gbdialog/keyword-format.md)
- - [FIRST](./06-gbdialog/keyword-first.md)
- - [LAST](./06-gbdialog/keyword-last.md)
- - [FOR EACH](./06-gbdialog/keyword-for-each.md)
- - [EXIT FOR](./06-gbdialog/keyword-exit-for.md)
- - [SEND MAIL](./06-gbdialog/keyword-send-mail.md)
- - [FIND](./06-gbdialog/keyword-find.md)
- - [INSTR](./06-gbdialog/keyword-instr.md)
- - [IS NUMERIC](./06-gbdialog/keyword-is-numeric.md)
- - [SWITCH](./06-gbdialog/keyword-switch.md)
- - [WEBHOOK](./06-gbdialog/keyword-webhook.md)
- - [TABLE](./06-gbdialog/keyword-table.md)
- - [KB Statistics Keywords](./06-gbdialog/keywords-kb-statistics.md)
- - [KB STATISTICS](./06-gbdialog/keyword-kb-statistics.md)
- - [KB COLLECTION STATS](./06-gbdialog/keyword-kb-collection-stats.md)
- - [KB DOCUMENTS COUNT](./06-gbdialog/keyword-kb-documents-count.md)
- - [KB DOCUMENTS ADDED SINCE](./06-gbdialog/keyword-kb-documents-added-since.md)
- - [KB LIST COLLECTIONS](./06-gbdialog/keyword-kb-list-collections.md)
- - [KB STORAGE SIZE](./06-gbdialog/keyword-kb-storage-size.md)
- - [Multi-Agent Keywords](./06-gbdialog/keywords-multi-agent.md)
- - [Social Media Keywords](./06-gbdialog/keywords-social-media.md)
- - [Lead Scoring Keywords](./06-gbdialog/keywords-lead-scoring.md)
- - [HTTP & API Operations](./06-gbdialog/keywords-http.md)
- - [POST](./06-gbdialog/keyword-post.md)
- - [PUT](./06-gbdialog/keyword-put.md)
- - [PATCH](./06-gbdialog/keyword-patch.md)
- - [DELETE HTTP](./06-gbdialog/keyword-delete-http.md)
- - [SET HEADER](./06-gbdialog/keyword-set-header.md)
- - [GRAPHQL](./06-gbdialog/keyword-graphql.md)
- - [SOAP](./06-gbdialog/keyword-soap.md)
- - [Data Operations](./06-gbdialog/keywords-data.md)
- - [SAVE](./06-gbdialog/keyword-save.md)
- - [INSERT](./06-gbdialog/keyword-insert.md)
- - [UPDATE](./06-gbdialog/keyword-update.md)
- - [DELETE](./06-gbdialog/keyword-delete.md)
- - [MERGE](./06-gbdialog/keyword-merge.md)
- - [FILL](./06-gbdialog/keyword-fill.md)
- - [MAP](./06-gbdialog/keyword-map.md)
- - [FILTER](./06-gbdialog/keyword-filter.md)
- - [AGGREGATE](./06-gbdialog/keyword-aggregate.md)
- - [JOIN](./06-gbdialog/keyword-join.md)
- - [PIVOT](./06-gbdialog/keyword-pivot.md)
- - [GROUP BY](./06-gbdialog/keyword-group-by.md)
- - [Media & Messaging](./06-gbdialog/keywords-media.md)
- - [PLAY](./06-gbdialog/keyword-play.md)
- - [QR CODE](./06-gbdialog/keyword-qrcode.md)
- - [SEND SMS](./06-gbdialog/keyword-sms.md)
- - [START MEET / JOIN MEET](./06-gbdialog/keyword-start-meet.md)
- - [GPIO & IoT Keywords](./06-gbdialog/keywords-gpio.md)
- - [File Operations](./06-gbdialog/keywords-file.md)
- - [READ](./06-gbdialog/keyword-read.md)
- - [WRITE](./06-gbdialog/keyword-write.md)
- - [DELETE FILE](./06-gbdialog/keyword-delete-file.md)
- - [COPY](./06-gbdialog/keyword-copy.md)
- - [MOVE](./06-gbdialog/keyword-move.md)
- - [LIST](./06-gbdialog/keyword-list.md)
- - [COMPRESS](./06-gbdialog/keyword-compress.md)
- - [EXTRACT](./06-gbdialog/keyword-extract.md)
- - [UPLOAD](./06-gbdialog/keyword-upload.md)
- - [DOWNLOAD](./06-gbdialog/keyword-download.md)
- - [GENERATE PDF](./06-gbdialog/keyword-generate-pdf.md)
- - [MERGE PDF](./06-gbdialog/keyword-merge-pdf.md)
+- [Chapter 4: BASIC Scripting](./04-basic-scripting/README.md)
+ - [BASIC Basics](./04-basic-scripting/basics.md)
+ - [API Possibilities](./04-basic-scripting/api-possibilities.md)
+ - [Universal Messaging](./04-basic-scripting/universal-messaging.md)
+ - [BASIC vs n8n/Zapier/Make](./04-basic-scripting/basic-vs-automation-tools.md)
+ - [Template Variables](./04-basic-scripting/template-variables.md)
+ - [TALK](./04-basic-scripting/keyword-talk.md)
+ - [HEAR](./04-basic-scripting/keyword-hear.md)
+ - [SET CONTEXT](./04-basic-scripting/keyword-set-context.md)
+ - [GET BOT MEMORY](./04-basic-scripting/keyword-get-bot-memory.md)
+ - [SET BOT MEMORY](./04-basic-scripting/keyword-set-bot-memory.md)
+ - [GET USER MEMORY](./04-basic-scripting/keyword-get-user-memory.md)
+ - [SET USER MEMORY](./04-basic-scripting/keyword-set-user-memory.md)
+ - [REMEMBER / RECALL](./04-basic-scripting/keyword-remember.md)
+ - [BOOK / BOOK_MEETING](./04-basic-scripting/keyword-book.md)
+ - [WEATHER / FORECAST](./04-basic-scripting/keyword-weather.md)
+ - [ADD BOT](./04-basic-scripting/keyword-add-bot.md)
+ - [USE MODEL](./04-basic-scripting/keyword-use-model.md)
+ - [DELEGATE TO BOT](./04-basic-scripting/keyword-delegate-to-bot.md)
+ - [RUN CODE](./04-basic-scripting/keyword-run-code.md)
+ - [USE KB](./04-basic-scripting/keyword-use-kb.md)
+ - [GET](./04-basic-scripting/keyword-get.md)
+ - [SET](./04-basic-scripting/keyword-set.md)
+ - [ON](./04-basic-scripting/keyword-on.md)
+ - [SET SCHEDULE](./04-basic-scripting/keyword-set-schedule.md)
+ - [CREATE TASK](./04-basic-scripting/keyword-create-task.md)
+ - [FOR EACH](./04-basic-scripting/keyword-for-each.md)
+ - [SWITCH](./04-basic-scripting/keyword-switch.md)
+ - [SAVE](./04-basic-scripting/keyword-save.md)
+ - [INSERT](./04-basic-scripting/keyword-insert.md)
+ - [UPDATE](./04-basic-scripting/keyword-update.md)
+ - [DELETE](./04-basic-scripting/keyword-delete.md)
+ - [FIND](./04-basic-scripting/keyword-find.md)
+ - [FILTER](./04-basic-scripting/keyword-filter.md)
+ - [MAP](./04-basic-scripting/keyword-map.md)
+ - [AGGREGATE](./04-basic-scripting/keyword-aggregate.md)
+ - [POST](./04-basic-scripting/keyword-post.md)
+ - [GRAPHQL](./04-basic-scripting/keyword-graphql.md)
+ - [WEBHOOK](./04-basic-scripting/keyword-webhook.md)
+ - [PLAY](./04-basic-scripting/keyword-play.md)
+ - [SEND MAIL](./04-basic-scripting/keyword-send-mail.md)
+ - [SEND SMS](./04-basic-scripting/keyword-sms.md)
+ - [READ](./04-basic-scripting/keyword-read.md)
+ - [WRITE](./04-basic-scripting/keyword-write.md)
+ - [UPLOAD](./04-basic-scripting/keyword-upload.md)
+ - [DOWNLOAD](./04-basic-scripting/keyword-download.md)
+ - [GENERATE PDF](./04-basic-scripting/keyword-generate-pdf.md)
+ - [start.bas](./04-basic-scripting/templates/start.md)
+ - [default.bas](./04-basic-scripting/templates/default.md)
+ - [auth.bas](./04-basic-scripting/templates/auth.md)
+ - [enrollment.bas](./04-basic-scripting/templates/enrollment.md)
+ - [sales-pipeline.bas](./04-basic-scripting/templates/sales-pipeline.md)
-# Part VII - Extending General Bots
+---
-- [Chapter 07: gbapp Architecture Reference](./07-gbapp/README.md)
- - [Architecture Overview](./07-gbapp/architecture.md)
- - [Building from Source](./07-gbapp/building.md)
- - [Cargo Tools Reference](./07-gbapp/cargo-tools.md)
- - [Container Deployment (LXC)](./07-gbapp/containers.md)
- - [Docker Deployment](./07-gbapp/docker-deployment.md)
- - [Scaling and Load Balancing](./07-gbapp/scaling.md)
- - [Infrastructure Design](./07-gbapp/infrastructure.md)
- - [Observability](./07-gbapp/observability.md)
- - [Autonomous Task AI](./07-gbapp/autonomous-tasks.md)
- - [Philosophy](./07-gbapp/philosophy.md)
- - [Example gbapp](./07-gbapp/example-gbapp.md)
- - [Module Structure](./07-gbapp/crates.md)
- - [Service Layer](./07-gbapp/services.md)
- - [Creating Custom Keywords](./07-gbapp/custom-keywords.md)
- - [Adding Dependencies](./07-gbapp/dependencies.md)
- - [Testing & Safety Tooling](./07-gbapp/testing-safety.md)
+# Part V: Orchestration
-# Part VIII - Bot Configuration
+- [Chapter 5: Multi-Agent Orchestration](./05-multi-agent/README.md)
+ - [Task Workflow](./05-multi-agent/workflow.md)
+ - [App Generation](./05-multi-agent/app-generation.md)
+ - [Data Model](./05-multi-agent/data-model.md)
+ - [Designer](./05-multi-agent/designer.md)
+ - [Agent Workspaces](./05-multi-agent/agent-workspaces.md)
-- [Chapter 08: gbot Reference](./08-config/README.md)
- - [config.csv Format](./08-config/config-csv.md)
- - [Bot Parameters](./08-config/parameters.md)
- - [LLM Configuration](./08-config/llm-config.md)
- - [Context Configuration](./08-config/context-config.md)
- - [Drive Integration](./08-config/drive.md)
- - [Multimodal Configuration](./08-config/multimodal.md)
- - [Secrets Management](./08-config/secrets-management.md)
- - [System Limits](./08-config/system-limits.md)
- - [Sources Sync Strategy](./08-config/sources-sync-strategy.md)
+---
-# Part IX - Tools and Integration
+# Part VI: Connectivity
-- [Chapter 09: LLM Tools](./09-tools/README.md)
- - [Tool Definition](./09-tools/tool-definition.md)
- - [PARAM Declaration](./09-tools/param-declaration.md)
- - [Tool Compilation](./09-tools/compilation.md)
- - [MCP Format](./09-tools/mcp-format.md)
- - [Tool Format](./09-tools/openai-format.md)
- - [GET Keyword Integration](./09-tools/get-integration.md)
- - [External APIs](./09-tools/external-apis.md)
- - [LLM REST Server](./09-tools/llm-rest-server.md)
- - [NVIDIA GPU Setup for LXC](./09-tools/nvidia-gpu-setup.md)
+- [Chapter 6: Channels & Connectivity](./06-channels/README.md)
+ - [Channel Integrations](./06-channels/channels.md)
+ - [Service Catalog](./06-channels/catalog.md)
+ - [WhatsApp Quick Start](./06-channels/whatsapp-quick-start.md)
+ - [WhatsApp Webhooks](./06-channels/whatsapp-webhooks.md)
+ - [Teams Channel](./06-channels/teams-channel.md)
+ - [SMS Providers](./06-channels/sms-providers.md)
+ - [Attendance Queue](./06-channels/attendance-queue.md)
+ - [LLM Providers](./06-channels/llm-providers.md)
+ - [Storage Services](./06-channels/storage.md)
+ - [Directory Services](./06-channels/directory.md)
-- [Chapter 10: REST Endpoints](./10-rest/README.md)
- - [Files API](./10-rest/files-api.md)
- - [Document Processing API](./10-rest/document-processing.md)
- - [Users API](./10-rest/users-api.md)
- - [User Security API](./10-rest/user-security.md)
- - [Groups API](./10-rest/groups-api.md)
- - [Group Membership API](./10-rest/group-membership.md)
- - [Conversations API](./10-rest/conversations-api.md)
- - [Calls API](./10-rest/calls-api.md)
- - [Whiteboard API](./10-rest/whiteboard-api.md)
- - [Email API](./10-rest/email-api.md)
- - [Notifications API](./10-rest/notifications-api.md)
- - [Calendar API](./10-rest/calendar-api.md)
- - [Tasks API](./10-rest/tasks-api.md)
- - [Storage API](./10-rest/storage-api.md)
- - [Backup API](./10-rest/backup-api.md)
- - [Analytics API](./10-rest/analytics-api.md)
- - [Reports API](./10-rest/reports-api.md)
- - [Admin API](./10-rest/admin-api.md)
- - [Monitoring API](./10-rest/monitoring-api.md)
- - [AI API](./10-rest/ai-api.md)
- - [ML API](./10-rest/ml-api.md)
- - [Security API](./10-rest/security-api.md)
- - [Compliance API](./10-rest/compliance-api.md)
- - [Example Integrations](./10-rest/examples.md)
+---
-# Part X - Feature Deep Dive
+# Part VII: User Interface
-- [Feature System & Dependency Tree](./features.md)
-- [Chapter 11: Feature Reference](./11-features/README.md)
- - [Feature Editions](./11-features/editions.md)
- - [Core Features](./11-features/core-features.md)
- - [Cargo Feature Map](./11-features/feature-map.md)
- - [Conversation Management](./11-features/conversation.md)
- - [AI and LLM](./11-features/ai-llm.md)
- - [Knowledge Base](./11-features/knowledge-base.md)
- - [Automation](./11-features/automation.md)
- - [Email Integration](./11-features/email.md)
- - [Storage and Data](./11-features/storage.md)
- - [Multi-Channel Support](./11-features/channels.md)
- - [Drive Monitor](./11-features/drive-monitor.md)
- - [Platform Capabilities](./11-features/platform-comparison.md)
- - [Enterprise Platform Migration](./11-features/m365-comparison.md)
- - [Projects](./11-features/projects.md)
- - [Multi-Agent Office Suite Design](./11-features/multi-agent-design.md)
- - [What's New: Multi-Agent Features](./11-features/whats-new.md)
- - [Multi-Agent Orchestration](./11-features/multi-agent-orchestration.md)
- - [Memory Management](./11-features/memory-management.md)
- - [Hybrid RAG Search](./11-features/hybrid-search.md)
- - [Transfer to Human](./11-features/transfer-to-human.md)
- - [LLM-Assisted Attendant](./11-features/attendant-llm-assist.md)
- - [Attendance Suite](./attendance.md)
+- [Chapter 7: User Interface](./07-user-interface/README.md)
+ - [Suite User Manual](./07-user-interface/suite-manual.md)
+ - [Admin vs User Views](./07-user-interface/admin-user-views.md)
+ - [UI Structure](./07-user-interface/ui-structure.md)
+ - [single.gbui - Simple Chat](./07-user-interface/single-gbui.md)
+ - [Console Mode](./07-user-interface/console-mode.md)
+ - [Monitoring Dashboard](./07-user-interface/monitoring.md)
+ - [HTMX Architecture](./07-user-interface/htmx-architecture.md)
+ - [Suite - Full Desktop](./07-user-interface/apps/suite.md)
+ - [Chat - AI Assistant](./07-user-interface/apps/chat.md)
+ - [Drive - File Management](./07-user-interface/apps/drive.md)
+ - [Tasks](./07-user-interface/apps/tasks.md)
+ - [Mail - Email Client](./07-user-interface/apps/mail.md)
+ - [Calendar - Scheduling](./07-user-interface/apps/calendar.md)
+ - [Meet - Video Calls](./07-user-interface/apps/meet.md)
+ - [CRM - Sales Pipeline](./07-user-interface/apps/crm.md)
+ - [Billing - Invoices](./07-user-interface/apps/billing.md)
+ - [Tickets - Support Cases](./07-user-interface/apps/tickets.md)
+ - [Analytics - Dashboards](./07-user-interface/apps/analytics.md)
+ - [Designer - Visual Builder](./07-user-interface/apps/designer.md)
+ - [Create Your First Bot](./07-user-interface/how-to/create-first-bot.md)
+ - [Write Your First Dialog](./07-user-interface/how-to/write-first-dialog.md)
+ - [Add Documents to Knowledge Base](./07-user-interface/how-to/add-kb-documents.md)
+ - [Connect WhatsApp](./07-user-interface/how-to/connect-whatsapp.md)
+ - [Theme Structure](./07-user-interface/structure.md)
+ - [CSS Customization](./07-user-interface/css.md)
-# Part XI - Security
+---
-- [Chapter 12: Authentication & Permissions](./12-auth/README.md)
- - [Initial Setup & Bootstrap](./12-auth/initial-setup.md)
- - [User Authentication](./12-auth/user-auth.md)
- - [Password Security](./12-auth/password-security.md)
- - [API Endpoints](./12-auth/api-endpoints.md)
- - [Bot Authentication](./12-auth/bot-auth.md)
- - [Security Features](./12-auth/security-features.md)
- - [Security Policy](./12-auth/security-policy.md)
- - [Compliance Requirements](./12-auth/compliance-requirements.md)
- - [RBAC Overview](./12-auth/rbac-overview.md)
- - [Permissions Matrix](./12-auth/permissions-matrix.md)
- - [Permissions Reference](./12-auth/permissions-reference.md)
- - [User Context vs System Context](./12-auth/user-system-context.md)
- - [System Limits & Rate Limiting](./12-auth/system-limits.md)
- - [Security Checklist for SaaS](./12-auth/security-checklist.md)
+# Part VIII: Integration
-- [Chapter 23: Advanced Security](./23-security/README.md)
- - [RBAC & Security Design](./23-security/rbac-design.md)
- - [RBAC Configuration Guide](./23-security/rbac-configuration.md)
- - [Organization Multi-Tenancy](./23-security/organizations.md)
- - [Knowledge Base Permissions](./23-security/kb-permissions.md)
- - [Knowledge Base Security](./23-security/kb-security.md)
- - [Protection Tools](./23-security/protection-tools.md)
- - [SOC 2 Compliance](./23-security/soc2-compliance.md)
- - [Security Matrix Reference](./23-security/security-matrix.md)
- - [Endpoint Security Checklist](./23-security/endpoint-checklist.md)
+- [Chapter 8: REST API & Tools](./08-rest-api-tools/README.md)
+ - [Files API](./08-rest-api-tools/files-api.md)
+ - [Users API](./08-rest-api-tools/users-api.md)
+ - [Groups API](./08-rest-api-tools/groups-api.md)
+ - [Conversations API](./08-rest-api-tools/conversations-api.md)
+ - [Email API](./08-rest-api-tools/email-api.md)
+ - [Calendar API](./08-rest-api-tools/calendar-api.md)
+ - [Tasks API](./08-rest-api-tools/tasks-api.md)
+ - [Storage API](./08-rest-api-tools/storage-api.md)
+ - [Analytics API](./08-rest-api-tools/analytics-api.md)
+ - [Admin API](./08-rest-api-tools/admin-api.md)
+ - [AI API](./08-rest-api-tools/ai-api.md)
+ - [Tool Definition](./08-rest-api-tools/tool-definition.md)
+ - [PARAM Declaration](./08-rest-api-tools/param-declaration.md)
+ - [Tool Compilation](./08-rest-api-tools/compilation.md)
+ - [MCP Format](./08-rest-api-tools/mcp-format.md)
+ - [Tool Format](./08-rest-api-tools/openai-format.md)
+ - [External APIs](./08-rest-api-tools/external-apis.md)
+ - [LLM REST Server](./08-rest-api-tools/llm-rest-server.md)
-# Part XII - Device & Offline Deployment
+---
-- [Chapter 13: Hardware & Device Deployment](./13-hardware-devices/README.md)
- - [Buying Guide for Beginners](./13-hardware-devices/buying-guide.md)
- - [Mobile (Android & HarmonyOS)](./13-hardware-devices/mobile.md)
- - [Supported Hardware (SBCs)](./13-hardware-devices/hardware.md)
- - [Desktop & Server Hardware](./13-hardware-devices/desktop-hardware.md)
- - [Quick Start](./13-hardware-devices/quick-start.md)
- - [Local LLM with llama.cpp](./13-hardware-devices/local-llm.md)
+# Part IX: Security
-# Part XIII - Community
+- [Chapter 9: Security](./09-security/README.md)
+ - [Initial Setup & Bootstrap](./09-security/initial-setup.md)
+ - [User Authentication](./09-security/user-auth.md)
+ - [Password Security](./09-security/password-security.md)
+ - [API Endpoints](./09-security/api-endpoints.md)
+ - [Bot Authentication](./09-security/bot-auth.md)
+ - [Security Features](./09-security/security-features.md)
+ - [Security Policy](./09-security/security-policy.md)
+ - [Compliance Requirements](./09-security/compliance-requirements.md)
+ - [RBAC Overview](./09-security/rbac-overview.md)
+ - [Permissions Matrix](./09-security/permissions-matrix.md)
+ - [RBAC Configuration Guide](./09-security/rbac-configuration.md)
+ - [Organization Multi-Tenancy](./09-security/organizations.md)
+ - [Knowledge Base Permissions](./09-security/kb-permissions.md)
+ - [SOC 2 Compliance](./09-security/soc2-compliance.md)
+ - [Security Matrix Reference](./09-security/security-matrix.md)
+ - [Endpoint Security Checklist](./09-security/endpoint-checklist.md)
-- [Chapter 14: Contributing](./13-community/README.md)
- - [Development Setup](./13-community/setup.md)
- - [Testing Guide](./13-community/testing.md)
- - [Documentation](./13-community/documentation.md)
- - [Pull Requests](./13-community/pull-requests.md)
- - [Community Guidelines](./13-community/community.md)
- - [IDEs](./13-community/ide-extensions.md)
+---
-# Part XIV - Migration
+# Part X: Deployment
-- [Chapter 15: Migration Guide](./14-migration/README.md)
- - [Migration Overview](./14-migration/overview.md)
- - [Platform Comparison Matrix](./14-migration/comparison-matrix.md)
- - [Migration Resources](./14-migration/resources.md)
- - [Common Concepts](./14-migration/common-concepts.md)
- - [Knowledge Base Migration](./14-migration/kb-migration.md)
- - [Cloud Productivity Migration](./14-migration/google-workspace.md)
- - [Enterprise Platform Migration](./14-migration/microsoft-365.md)
- - [n8n Migration](./14-migration/n8n.md)
- - [Notion Migration](./14-migration/notion.md)
- - [Perplexity Migration](./14-migration/perplexity.md)
- - [Zapier and Make Migration](./14-migration/zapier-make.md)
- - [Intercom Migration](./14-migration/intercom.md)
- - [Dialogflow Migration](./14-migration/dialogflow.md)
- - [Botpress Migration](./14-migration/botpress.md)
- - [Automation Migration](./14-migration/automation.md)
- - [Validation and Testing](./14-migration/validation.md)
+- [Chapter 10: Configuration & Deployment](./10-configuration-deployment/README.md)
+ - [config.csv Format](./10-configuration-deployment/config-csv.md)
+ - [Bot Parameters](./10-configuration-deployment/parameters.md)
+ - [LLM Configuration](./10-configuration-deployment/llm-config.md)
+ - [Context Configuration](./10-configuration-deployment/context-config.md)
+ - [Drive Integration](./10-configuration-deployment/drive.md)
+ - [Multimodal Configuration](./10-configuration-deployment/multimodal.md)
+ - [Secrets Management](./10-configuration-deployment/secrets-management.md)
+ - [System Limits](./10-configuration-deployment/system-limits.md)
+ - [MinIO Storage](./10-configuration-deployment/minio.md)
-# Part XV - Testing
+---
-- [Chapter 16: Testing](./17-testing/README.md)
- - [End-to-End Testing](./17-testing/e2e-testing.md)
- - [Testing Architecture](./17-testing/architecture.md)
- - [Performance Testing](./17-testing/performance.md)
- - [Best Practices](./17-testing/best-practices.md)
- - [CI/CD Integration](./17-testing/ci-cd.md)
+# Part XI: Hardware & Scale
-# Part XVI - Autonomous Tasks
+- [Chapter 11: Hardware & Scaling](./11-hardware-scaling/README.md)
+ - [Buying Guide for Beginners](./11-hardware-scaling/buying-guide.md)
+ - [Mobile (Android & HarmonyOS)](./11-hardware-scaling/mobile.md)
+ - [Supported Hardware (SBCs)](./11-hardware-scaling/hardware.md)
+ - [Desktop & Server Hardware](./11-hardware-scaling/desktop-hardware.md)
+ - [Local LLM with llama.cpp](./11-hardware-scaling/local-llm.md)
+ - [Sharding Architecture](./11-hardware-scaling/sharding.md)
+ - [Database Optimization](./11-hardware-scaling/database-optimization.md)
-- [Chapter 17: Autonomous Tasks](./17-autonomous-tasks/README.md)
- - [Task Workflow](./17-autonomous-tasks/workflow.md)
- - [App Generation](./17-autonomous-tasks/app-generation.md)
- - [Data Model](./17-autonomous-tasks/data-model.md)
- - [Examples](./17-autonomous-tasks/examples.md)
- - [Designer](./17-autonomous-tasks/designer.md)
- - [Agent Workspaces](./17-autonomous-tasks/agent-workspaces.md)
+---
-# Part XVII - Scale
+# Part XII: Ecosystem
-- [Chapter 18: Scale](./21-scale/README.md)
- - [Sharding Architecture](./21-scale/sharding.md)
- - [Database Optimization](./21-scale/database-optimization.md)
-
-# Part XVIII - White Label
-
-- [Chapter 19: White Label](./22-white-label/README.md)
-
-# Appendices
-
-- [Appendix A: Database Model](./15-appendix/README.md)
- - [Schema Overview](./15-appendix/schema.md)
- - [Tables](./15-appendix/tables.md)
- - [Relationships](./15-appendix/relationships.md)
-
-- [Appendix B: External Services](./18-appendix-external-services/README.md)
- - [Service Catalog](./18-appendix-external-services/catalog.md)
- - [LLM Providers](./18-appendix-external-services/llm-providers.md)
- - [Weather API](./18-appendix-external-services/weather.md)
- - [Channel Integrations](./18-appendix-external-services/channels.md)
- - [Quick Start Guide](./18-appendix-external-services/whatsapp-quick-start.md)
- - [Webhook Configuration](./18-appendix-external-services/whatsapp-webhooks.md)
- - [Code Examples](./18-appendix-external-services/whatsapp-examples.md)
- - [Troubleshooting](./18-appendix-external-services/whatsapp-troubleshooting.md)
- - [Quick Reference](./18-appendix-external-services/whatsapp-quick-reference.md)
- - [Storage Services](./18-appendix-external-services/storage.md)
- - [Directory Services](./18-appendix-external-services/directory.md)
- - [Attendance Queue](./18-appendix-external-services/attendance-queue.md)
- - [Hosting, DNS, and MDA](./18-appendix-external-services/hosting-dns.md)
- - [Time-Series Database](./18-appendix-external-services/timeseries.md)
- - [NVIDIA GPU](./18-appendix-external-services/nvidia.md)
- - [Multimodal](./18-appendix-external-services/multimodal.md)
- - [Console (XtreeUI)](./18-appendix-external-services/console.md)
-
-- [Appendix C: Maintenance](./19-maintenance/README.md)
- - [CLI Reference](./19-maintenance/cli-reference.md)
- - [Updating Components](./19-maintenance/updating-components.md)
- - [Component Reference](./19-maintenance/component-reference.md)
- - [Security Auditing](./19-maintenance/security-auditing.md)
- - [Backup and Recovery](./19-maintenance/backup-recovery.md)
- - [Troubleshooting](./19-maintenance/troubleshooting.md)
- - [LXC Migration](./19-maintenance/lxc-migration.md)
-
-
-
-
-[Glossary](./glossary.md)
-[Contact](./contact/README.md)
+- [Chapter 12: Ecosystem & Reference](./12-ecosystem-reference/README.md)
+ - [Migration Overview](./12-ecosystem-reference/overview.md)
+ - [Platform Comparison Matrix](./12-ecosystem-reference/comparison-matrix.md)
+ - [Knowledge Base Migration](./12-ecosystem-reference/kb-migration.md)
+ - [Cloud Productivity Migration](./12-ecosystem-reference/google-workspace.md)
+ - [Enterprise Platform Migration](./12-ecosystem-reference/microsoft-365.md)
+ - [n8n Migration](./12-ecosystem-reference/n8n.md)
+ - [Notion Migration](./12-ecosystem-reference/notion.md)
+ - [Zapier and Make Migration](./12-ecosystem-reference/zapier-make.md)
+ - [CLI Reference](./12-ecosystem-reference/cli-reference.md)
+ - [Updating Components](./12-ecosystem-reference/updating-components.md)
+ - [Component Reference](./12-ecosystem-reference/component-reference.md)
+ - [Security Auditing](./12-ecosystem-reference/security-auditing.md)
+ - [Backup and Recovery](./12-ecosystem-reference/backup-recovery.md)
+ - [Troubleshooting](./12-ecosystem-reference/troubleshooting.md)
+ - [Testing Strategy](./12-ecosystem-reference/architecture.md)
+ - [End-to-End Testing](./12-ecosystem-reference/e2e-testing.md)
+ - [Performance Testing](./12-ecosystem-reference/performance.md)
+ - [CI/CD Integration](./12-ecosystem-reference/ci-cd.md)
+ - [Contributing Overview](./12-ecosystem-reference/setup.md)
+ - [Local Development](./12-ecosystem-reference/local-development.md)
+ - [Pull Requests](./12-ecosystem-reference/pull-requests.md)
+ - [Community Guidelines](./12-ecosystem-reference/community.md)
+ - [Schema Overview](./12-ecosystem-reference/schema.md)
+ - [Tables](./12-ecosystem-reference/tables.md)
+ - [Relationships](./12-ecosystem-reference/relationships.md)
+ - [Glossary](./glossary.md)
+ - [Contact](./contact/README.md)
+ - [Features](./features.md)
+ - [Attendance](./attendance.md)
diff --git a/src/assets/chapter-01/bootstrap-process.svg b/src/assets/01-getting-started/bootstrap-process.svg
similarity index 100%
rename from src/assets/chapter-01/bootstrap-process.svg
rename to src/assets/01-getting-started/bootstrap-process.svg
diff --git a/src/assets/chapter-01/quick-start-bootstrap-wide.svg b/src/assets/01-getting-started/quick-start-bootstrap-wide.svg
similarity index 100%
rename from src/assets/chapter-01/quick-start-bootstrap-wide.svg
rename to src/assets/01-getting-started/quick-start-bootstrap-wide.svg
diff --git a/src/assets/chapter-01/quick-start-bootstrap.svg b/src/assets/01-getting-started/quick-start-bootstrap.svg
similarity index 100%
rename from src/assets/chapter-01/quick-start-bootstrap.svg
rename to src/assets/01-getting-started/quick-start-bootstrap.svg
diff --git a/src/assets/chapter-01/session-manager.svg b/src/assets/01-getting-started/session-manager.svg
similarity index 100%
rename from src/assets/chapter-01/session-manager.svg
rename to src/assets/01-getting-started/session-manager.svg
diff --git a/src/assets/chapter-01/session-states.svg b/src/assets/01-getting-started/session-states.svg
similarity index 100%
rename from src/assets/chapter-01/session-states.svg
rename to src/assets/01-getting-started/session-states.svg
diff --git a/src/assets/chapter-01/tool-execution-flow.svg b/src/assets/01-getting-started/tool-execution-flow.svg
similarity index 100%
rename from src/assets/chapter-01/tool-execution-flow.svg
rename to src/assets/01-getting-started/tool-execution-flow.svg
diff --git a/src/assets/chapter-07/autonomous-task-flow.svg b/src/assets/02-architecture-packages/chapter-07/autonomous-task-flow.svg
similarity index 100%
rename from src/assets/chapter-07/autonomous-task-flow.svg
rename to src/assets/02-architecture-packages/chapter-07/autonomous-task-flow.svg
diff --git a/src/assets/chapter-07/data-flow.svg b/src/assets/02-architecture-packages/chapter-07/data-flow.svg
similarity index 100%
rename from src/assets/chapter-07/data-flow.svg
rename to src/assets/02-architecture-packages/chapter-07/data-flow.svg
diff --git a/src/assets/chapter-07/data-traceability.svg b/src/assets/02-architecture-packages/chapter-07/data-traceability.svg
similarity index 100%
rename from src/assets/chapter-07/data-traceability.svg
rename to src/assets/02-architecture-packages/chapter-07/data-traceability.svg
diff --git a/src/assets/chapter-07/module-data-flow.svg b/src/assets/02-architecture-packages/chapter-07/module-data-flow.svg
similarity index 100%
rename from src/assets/chapter-07/module-data-flow.svg
rename to src/assets/02-architecture-packages/chapter-07/module-data-flow.svg
diff --git a/src/assets/chapter-07/module-dependency.svg b/src/assets/02-architecture-packages/chapter-07/module-dependency.svg
similarity index 100%
rename from src/assets/chapter-07/module-dependency.svg
rename to src/assets/02-architecture-packages/chapter-07/module-dependency.svg
diff --git a/src/assets/chapter-07/system-architecture.svg b/src/assets/02-architecture-packages/chapter-07/system-architecture.svg
similarity index 100%
rename from src/assets/chapter-07/system-architecture.svg
rename to src/assets/02-architecture-packages/chapter-07/system-architecture.svg
diff --git a/src/assets/chapter-02/package-structure.svg b/src/assets/02-architecture-packages/package-structure.svg
similarity index 100%
rename from src/assets/chapter-02/package-structure.svg
rename to src/assets/02-architecture-packages/package-structure.svg
diff --git a/src/assets/chapter-02/template-deployment-flow.svg b/src/assets/02-architecture-packages/template-deployment-flow.svg
similarity index 100%
rename from src/assets/chapter-02/template-deployment-flow.svg
rename to src/assets/02-architecture-packages/template-deployment-flow.svg
diff --git a/src/assets/chapter-03/caching-architecture.svg b/src/assets/03-knowledge-ai/caching-architecture.svg
similarity index 100%
rename from src/assets/chapter-03/caching-architecture.svg
rename to src/assets/03-knowledge-ai/caching-architecture.svg
diff --git a/src/assets/chapter-03/context-window.svg b/src/assets/03-knowledge-ai/context-window.svg
similarity index 100%
rename from src/assets/chapter-03/context-window.svg
rename to src/assets/03-knowledge-ai/context-window.svg
diff --git a/src/assets/chapter-03/kb-architecture-pipeline.svg b/src/assets/03-knowledge-ai/kb-architecture-pipeline.svg
similarity index 100%
rename from src/assets/chapter-03/kb-architecture-pipeline.svg
rename to src/assets/03-knowledge-ai/kb-architecture-pipeline.svg
diff --git a/src/assets/chapter-03/search-pipeline.svg b/src/assets/03-knowledge-ai/search-pipeline.svg
similarity index 100%
rename from src/assets/chapter-03/search-pipeline.svg
rename to src/assets/03-knowledge-ai/search-pipeline.svg
diff --git a/src/assets/chapter-03/storage-breakdown.svg b/src/assets/03-knowledge-ai/storage-breakdown.svg
similarity index 100%
rename from src/assets/chapter-03/storage-breakdown.svg
rename to src/assets/03-knowledge-ai/storage-breakdown.svg
diff --git a/src/assets/chapter-03/storage-multiplication.svg b/src/assets/03-knowledge-ai/storage-multiplication.svg
similarity index 100%
rename from src/assets/chapter-03/storage-multiplication.svg
rename to src/assets/03-knowledge-ai/storage-multiplication.svg
diff --git a/src/assets/chapter-03/technical-specs.svg b/src/assets/03-knowledge-ai/technical-specs.svg
similarity index 100%
rename from src/assets/chapter-03/technical-specs.svg
rename to src/assets/03-knowledge-ai/technical-specs.svg
diff --git a/src/assets/chapter-06/basic-execution-flow.svg b/src/assets/04-basic-scripting/basic-execution-flow.svg
similarity index 100%
rename from src/assets/chapter-06/basic-execution-flow.svg
rename to src/assets/04-basic-scripting/basic-execution-flow.svg
diff --git a/src/assets/chapter-17/app-generation-flow.svg b/src/assets/05-multi-agent/app-generation-flow.svg
similarity index 100%
rename from src/assets/chapter-17/app-generation-flow.svg
rename to src/assets/05-multi-agent/app-generation-flow.svg
diff --git a/src/assets/chapter-17/autotask-architecture.svg b/src/assets/05-multi-agent/autotask-architecture.svg
similarity index 100%
rename from src/assets/chapter-17/autotask-architecture.svg
rename to src/assets/05-multi-agent/autotask-architecture.svg
diff --git a/src/assets/chapter-17/bot-database-architecture.svg b/src/assets/05-multi-agent/bot-database-architecture.svg
similarity index 100%
rename from src/assets/chapter-17/bot-database-architecture.svg
rename to src/assets/05-multi-agent/bot-database-architecture.svg
diff --git a/src/assets/chapter-17/data-model-flow.svg b/src/assets/05-multi-agent/data-model-flow.svg
similarity index 100%
rename from src/assets/chapter-17/data-model-flow.svg
rename to src/assets/05-multi-agent/data-model-flow.svg
diff --git a/src/assets/chapter-17/designer-workflow.svg b/src/assets/05-multi-agent/designer-workflow.svg
similarity index 100%
rename from src/assets/chapter-17/designer-workflow.svg
rename to src/assets/05-multi-agent/designer-workflow.svg
diff --git a/src/assets/chapter-17/task-workflow.svg b/src/assets/05-multi-agent/task-workflow.svg
similarity index 100%
rename from src/assets/chapter-17/task-workflow.svg
rename to src/assets/05-multi-agent/task-workflow.svg
diff --git a/src/assets/chapter-04/analytics-interface.svg b/src/assets/07-user-interface/analytics-interface.svg
similarity index 100%
rename from src/assets/chapter-04/analytics-interface.svg
rename to src/assets/07-user-interface/analytics-interface.svg
diff --git a/src/assets/chapter-04/autotask-interface.svg b/src/assets/07-user-interface/autotask-interface.svg
similarity index 100%
rename from src/assets/chapter-04/autotask-interface.svg
rename to src/assets/07-user-interface/autotask-interface.svg
diff --git a/src/assets/chapter-04/calendar-interface.svg b/src/assets/07-user-interface/calendar-interface.svg
similarity index 100%
rename from src/assets/chapter-04/calendar-interface.svg
rename to src/assets/07-user-interface/calendar-interface.svg
diff --git a/src/assets/chapter-04/compliance-interface.svg b/src/assets/07-user-interface/compliance-interface.svg
similarity index 100%
rename from src/assets/chapter-04/compliance-interface.svg
rename to src/assets/07-user-interface/compliance-interface.svg
diff --git a/src/assets/chapter-04/designer-interface.svg b/src/assets/07-user-interface/designer-interface.svg
similarity index 100%
rename from src/assets/chapter-04/designer-interface.svg
rename to src/assets/07-user-interface/designer-interface.svg
diff --git a/src/assets/chapter-04/drive-interface.svg b/src/assets/07-user-interface/drive-interface.svg
similarity index 100%
rename from src/assets/chapter-04/drive-interface.svg
rename to src/assets/07-user-interface/drive-interface.svg
diff --git a/src/assets/chapter-04/kb-semantic-search-flow.svg b/src/assets/07-user-interface/kb-semantic-search-flow.svg
similarity index 100%
rename from src/assets/chapter-04/kb-semantic-search-flow.svg
rename to src/assets/07-user-interface/kb-semantic-search-flow.svg
diff --git a/src/assets/chapter-04/mail-interface.svg b/src/assets/07-user-interface/mail-interface.svg
similarity index 100%
rename from src/assets/chapter-04/mail-interface.svg
rename to src/assets/07-user-interface/mail-interface.svg
diff --git a/src/assets/chapter-04/meet-interface.svg b/src/assets/07-user-interface/meet-interface.svg
similarity index 100%
rename from src/assets/chapter-04/meet-interface.svg
rename to src/assets/07-user-interface/meet-interface.svg
diff --git a/src/assets/chapter-04/paper-interface.svg b/src/assets/07-user-interface/paper-interface.svg
similarity index 100%
rename from src/assets/chapter-04/paper-interface.svg
rename to src/assets/07-user-interface/paper-interface.svg
diff --git a/src/assets/chapter-04/research-interface.svg b/src/assets/07-user-interface/research-interface.svg
similarity index 100%
rename from src/assets/chapter-04/research-interface.svg
rename to src/assets/07-user-interface/research-interface.svg
diff --git a/src/assets/chapter-04/sources-interface.svg b/src/assets/07-user-interface/sources-interface.svg
similarity index 100%
rename from src/assets/chapter-04/sources-interface.svg
rename to src/assets/07-user-interface/sources-interface.svg
diff --git a/src/assets/chapter-04/step-flow-4-steps.svg b/src/assets/07-user-interface/step-flow-4-steps.svg
similarity index 100%
rename from src/assets/chapter-04/step-flow-4-steps.svg
rename to src/assets/07-user-interface/step-flow-4-steps.svg
diff --git a/src/assets/chapter-04/suite-main-layout.svg b/src/assets/07-user-interface/suite-main-layout.svg
similarity index 100%
rename from src/assets/chapter-04/suite-main-layout.svg
rename to src/assets/07-user-interface/suite-main-layout.svg
diff --git a/src/assets/chapter-04/tasks-interface.svg b/src/assets/07-user-interface/tasks-interface.svg
similarity index 100%
rename from src/assets/chapter-04/tasks-interface.svg
rename to src/assets/07-user-interface/tasks-interface.svg
diff --git a/src/assets/chapter-04/whatsapp-integration-flow.svg b/src/assets/07-user-interface/whatsapp-integration-flow.svg
similarity index 100%
rename from src/assets/chapter-04/whatsapp-integration-flow.svg
rename to src/assets/07-user-interface/whatsapp-integration-flow.svg
diff --git a/src/assets/chapter-10/api-architecture.svg b/src/assets/08-rest-api-tools/api-architecture.svg
similarity index 100%
rename from src/assets/chapter-10/api-architecture.svg
rename to src/assets/08-rest-api-tools/api-architecture.svg
diff --git a/src/assets/chapter-10/api-request-flow.svg b/src/assets/08-rest-api-tools/api-request-flow.svg
similarity index 100%
rename from src/assets/chapter-10/api-request-flow.svg
rename to src/assets/08-rest-api-tools/api-request-flow.svg
diff --git a/src/assets/chapter-13/botdevice-architecture.svg b/src/assets/11-hardware-scaling/botdevice-architecture.svg
similarity index 100%
rename from src/assets/chapter-13/botdevice-architecture.svg
rename to src/assets/11-hardware-scaling/botdevice-architecture.svg
diff --git a/src/assets/chapter-13/budget-decision-tree.svg b/src/assets/11-hardware-scaling/budget-decision-tree.svg
similarity index 100%
rename from src/assets/chapter-13/budget-decision-tree.svg
rename to src/assets/11-hardware-scaling/budget-decision-tree.svg
diff --git a/src/assets/chapter-13/embedded-architecture.svg b/src/assets/11-hardware-scaling/embedded-architecture.svg
similarity index 100%
rename from src/assets/chapter-13/embedded-architecture.svg
rename to src/assets/11-hardware-scaling/embedded-architecture.svg
diff --git a/src/assets/chapter-13/gpio-button-interface.svg b/src/assets/11-hardware-scaling/gpio-button-interface.svg
similarity index 100%
rename from src/assets/chapter-13/gpio-button-interface.svg
rename to src/assets/11-hardware-scaling/gpio-button-interface.svg
diff --git a/src/assets/chapter-13/local-llm-architecture.svg b/src/assets/11-hardware-scaling/local-llm-architecture.svg
similarity index 100%
rename from src/assets/chapter-13/local-llm-architecture.svg
rename to src/assets/11-hardware-scaling/local-llm-architecture.svg
diff --git a/src/assets/chapter-13/orange-pi-5-specs.svg b/src/assets/11-hardware-scaling/orange-pi-5-specs.svg
similarity index 100%
rename from src/assets/chapter-13/orange-pi-5-specs.svg
rename to src/assets/11-hardware-scaling/orange-pi-5-specs.svg
diff --git a/src/assets/roadmap-complete.md b/src/assets/roadmap-complete.md
index 8d4947dd..1531f6f6 100644
--- a/src/assets/roadmap-complete.md
+++ b/src/assets/roadmap-complete.md
@@ -29,7 +29,7 @@ This table merges the proposed timeline with all features documented in botbook/
| 1 | Package System (.gbai/.gbot/.gbkb/.gbdialog/.gbtheme) | Your list + botbook | 02-templates/ |
| 2 | TALK / HEAR Keywords | Your list + botbook | 06-gbdialog/keyword-talk.md |
| 3 | NLP / BERT Intent Recognition | Your list | 06-gbdialog/ |
-| 4 | GPT-3.5 Integration | Your list | 08-config/llm-config.md |
+| 4 | GPT-3.5 Integration | Your list | 10-configuration-deployment/llm-config.md |
| 5 | QR CODE Keyword | Your list + botbook | 06-gbdialog/keyword-qrcode.md |
| 6 | SET SCHEDULE Keyword | Your list + botbook | 06-gbdialog/keyword-set-schedule.md |
| 7 | LLM Keyword | Your list + botbook | 06-gbdialog/ |
@@ -45,14 +45,14 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
-| 1 | Migration v5 → v6 | Your list | 14-migration/ |
+| 1 | Migration v5 → v6 | Your list | 12-ecosystem-reference/ |
| 2 | Node.js → Rust Rewrite | Your list + botbook | 07-gbapp/architecture.md |
| 3 | New Rust Architecture | Your list + botbook | 07-gbapp/crates.md |
| 4 | Minimal Flow MVP | Your list | 07-gbapp/ |
-| 5 | PostgreSQL + Diesel ORM | botbook | 15-appendix/schema.md |
+| 5 | PostgreSQL + Diesel ORM | botbook | 12-ecosystem-reference/schema.md |
| 6 | Auto-Bootstrap System | botbook | 01-introduction/ |
-| 7 | Vault Secrets Management | botbook | 08-config/secrets-management.md |
-| 8 | Basic HTMX UI | botbook | 04-gbui/htmx-architecture.md |
+| 7 | Vault Secrets Management | botbook | 10-configuration-deployment/secrets-management.md |
+| 8 | Basic HTMX UI | botbook | 07-user-interface/htmx-architecture.md |
---
@@ -61,15 +61,15 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
| 1 | BASIC Engine (70+ keywords) | Your list + botbook | 06-gbdialog/keywords.md |
-| 2 | System Automation (cron) | Your list + botbook | 11-features/automation.md |
-| 3 | Web Chat Channel | Your list + botbook | 04-gbui/apps/chat.md |
-| 4 | LLM Integration (multi-provider) | Your list + botbook | 08-config/llm-config.md |
+| 2 | System Automation (cron) | Your list + botbook | 03-knowledge-ai/automation.md |
+| 3 | Web Chat Channel | Your list + botbook | 07-user-interface/apps/chat.md |
+| 4 | LLM Integration (multi-provider) | Your list + botbook | 10-configuration-deployment/llm-config.md |
| 5 | Drive Storage (S3) | Your list + botbook | 02-templates/gbdrive.md |
-| 6 | Email System (IMAP/SMTP) | Your list + botbook | 11-features/email.md |
-| 7 | REST API | Your list + botbook | 10-rest/ |
-| 8 | **Telegram Channel** | botbook | 11-features/channels.md |
+| 6 | Email System (IMAP/SMTP) | Your list + botbook | 03-knowledge-ai/email.md |
+| 7 | REST API | Your list + botbook | 08-rest-api-tools/ |
+| 8 | **Telegram Channel** | botbook | 03-knowledge-ai/channels.md |
| 9 | **PDF Generation** | botbook | 06-gbdialog/keyword-generate-pdf.md |
-| 10 | **WhatsApp Channel** | botbook | 11-features/channels.md |
+| 10 | **WhatsApp Channel** | botbook | 03-knowledge-ai/channels.md |
---
@@ -80,13 +80,13 @@ This table merges the proposed timeline with all features documented in botbook/
| 1 | Tasks AI Autonomous (AUTOTASK) | Your list + botbook | 07-gbapp/autonomous-tasks.md |
| 2 | Knowledge Base (Vector) | Your list + botbook | 03-knowledge-base/ |
| 3 | Vector Database (Qdrant) | Your list + botbook | 03-knowledge-base/vector-collections.md |
-| 4 | Tools System (MCP) | Your list + botbook | 09-tools/ |
-| 5 | UI Minimal Suite | Your list + botbook | 04-gbui/ |
+| 4 | Tools System (MCP) | Your list + botbook | 08-rest-api-tools/ |
+| 5 | UI Minimal Suite | Your list + botbook | 07-user-interface/ |
| 6 | APP Generator | Your list + botbook | 07-gbapp/autonomous-tasks.md |
| 7 | **BOT Generator** | botbook | 07-gbapp/autonomous-tasks.md |
| 8 | **SITE Generator** | botbook | 06-gbdialog/keyword-create-site.md |
| 9 | **LANDPAGE Generator** | botbook | 07-gbapp/autonomous-tasks.md |
-| 10 | **Analytics Dashboard** | botbook | 04-gbui/apps/analytics.md |
+| 10 | **Analytics Dashboard** | botbook | 07-user-interface/apps/analytics.md |
---
@@ -95,17 +95,17 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
| 1 | **Tasks AI GO** ⭐ | Your list + botbook | 07-gbapp/autonomous-tasks.md |
-| 2 | Gmail Integration | Your list | 10-rest/email-api.md |
-| 3 | Outlook/Hotmail | Your list | 10-rest/email-api.md |
-| 4 | Google Drive | Your list | 08-config/drive.md |
-| 5 | OneDrive | Your list | 08-config/drive.md |
-| 6 | Google Calendar | Your list | 10-rest/calendar-api.md |
-| 7 | Outlook Calendar | Your list | 10-rest/calendar-api.md |
-| 8 | Speech to Text | Your list | 08-config/multimodal.md |
-| 9 | Image Generation | Your list | 08-config/multimodal.md |
-| 10 | Vision Analysis | Your list | 08-config/multimodal.md |
-| 11 | **MS Teams Channel** | Your list + botbook | 11-features/channels.md |
-| 12 | **Multi-Agent System** | Your list + botbook | 11-features/multi-agent-orchestration.md |
+| 2 | Gmail Integration | Your list | 08-rest-api-tools/email-api.md |
+| 3 | Outlook/Hotmail | Your list | 08-rest-api-tools/email-api.md |
+| 4 | Google Drive | Your list | 10-configuration-deployment/drive.md |
+| 5 | OneDrive | Your list | 10-configuration-deployment/drive.md |
+| 6 | Google Calendar | Your list | 08-rest-api-tools/calendar-api.md |
+| 7 | Outlook Calendar | Your list | 08-rest-api-tools/calendar-api.md |
+| 8 | Speech to Text | Your list | 10-configuration-deployment/multimodal.md |
+| 9 | Image Generation | Your list | 10-configuration-deployment/multimodal.md |
+| 10 | Vision Analysis | Your list | 10-configuration-deployment/multimodal.md |
+| 11 | **MS Teams Channel** | Your list + botbook | 03-knowledge-ai/channels.md |
+| 12 | **Multi-Agent System** | Your list + botbook | 03-knowledge-ai/multi-agent-orchestration.md |
---
@@ -113,20 +113,20 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
-| 1 | **Paper App (AI Writing)** | botbook | 04-gbui/apps/paper.md |
-| 2 | **Research App (AI Search)** | botbook | 04-gbui/apps/research.md |
-| 3 | **Transfer to Human** | botbook | 11-features/transfer-to-human.md |
-| 4 | **LLM-Assisted Attendant** (AI Copilot for Agents) | botbook | 11-features/attendant-llm-assist.md |
+| 1 | **Paper App (AI Writing)** | botbook | 07-user-interface/apps/paper.md |
+| 2 | **Research App (AI Search)** | botbook | 07-user-interface/apps/research.md |
+| 3 | **Transfer to Human** | botbook | 03-knowledge-ai/transfer-to-human.md |
+| 4 | **LLM-Assisted Attendant** (AI Copilot for Agents) | botbook | 03-knowledge-ai/attendant-llm-assist.md |
| 5 | Bot Marketplace | Your list | Future |
-| 6 | Compliance Suite | Your list + botbook | 04-gbui/apps/compliance.md |
-| 7 | Analytics Reports | Your list + botbook | 10-rest/analytics-api.md |
-| 8 | **Slack Channel** | botbook | 11-features/channels.md |
-| 9 | **Discord Channel** | botbook | 11-features/channels.md |
+| 6 | Compliance Suite | Your list + botbook | 07-user-interface/apps/compliance.md |
+| 7 | Analytics Reports | Your list + botbook | 08-rest-api-tools/analytics-api.md |
+| 8 | **Slack Channel** | botbook | 03-knowledge-ai/channels.md |
+| 9 | **Discord Channel** | botbook | 03-knowledge-ai/channels.md |
| 10 | **Google Sheets** | botbook | Future |
| 11 | **Excel Online** | botbook | Future |
-| 12 | **Whiteboard Collaboration** | botbook | 10-rest/whiteboard-api.md |
-| 13 | **Player App (Media)** | botbook | 04-gbui/apps/player.md |
-| 14 | **Sources App (Prompts)** | botbook | 04-gbui/apps/sources.md |
+| 12 | **Whiteboard Collaboration** | botbook | 08-rest-api-tools/whiteboard-api.md |
+| 13 | **Player App (Media)** | botbook | 07-user-interface/apps/player.md |
+| 14 | **Sources App (Prompts)** | botbook | 07-user-interface/apps/sources.md |
---
@@ -134,11 +134,11 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
-| 1 | Workflow Designer | Your list + botbook | 04-gbui/apps/designer.md |
+| 1 | Workflow Designer | Your list + botbook | 07-user-interface/apps/designer.md |
| 2 | CRM Integration | Your list | 02-templates/template-crm.md |
-| 3 | **Voice Synthesis (TTS)** | botbook | 08-config/multimodal.md |
+| 3 | **Voice Synthesis (TTS)** | botbook | 10-configuration-deployment/multimodal.md |
| 4 | **ERP Integration** | botbook | 02-templates/template-erp.md |
-| 5 | **Instagram Channel** | botbook | 11-features/channels.md |
+| 5 | **Instagram Channel** | botbook | 03-knowledge-ai/channels.md |
| 6 | **SMS Channel** | botbook | 06-gbdialog/keyword-sms.md |
---
@@ -148,12 +148,12 @@ This table merges the proposed timeline with all features documented in botbook/
| # | Feature | Source | Documentation |
|---|---------|--------|---------------|
| 1 | Mobile Apps (iOS/Android) | Your list + botbook | 13-devices/mobile.md |
-| 2 | Enterprise SSO (SAML/OIDC) | Your list + botbook | 12-auth/ |
-| 3 | **Backup & Restore** | botbook | 10-rest/backup-api.md |
-| 4 | **NVIDIA GPU Support** | botbook | 09-tools/nvidia-gpu-setup.md |
+| 2 | Enterprise SSO (SAML/OIDC) | Your list + botbook | 09-security/ |
+| 3 | **Backup & Restore** | botbook | 08-rest-api-tools/backup-api.md |
+| 4 | **NVIDIA GPU Support** | botbook | 08-rest-api-tools/nvidia-gpu-setup.md |
| 5 | **Docker Deployment** | botbook | 07-gbapp/docker-deployment.md |
| 6 | **LXC Containers** | botbook | 07-gbapp/containers.md |
-| 7 | **Advanced Monitoring** | botbook | 10-rest/monitoring-api.md |
+| 7 | **Advanced Monitoring** | botbook | 08-rest-api-tools/monitoring-api.md |
---
@@ -161,19 +161,19 @@ This table merges the proposed timeline with all features documented in botbook/
| App | Category | Timeline | Documentation |
|-----|----------|----------|---------------|
-| Chat | Core | 2025 H1 ✅ | 04-gbui/apps/chat.md |
-| Drive | Storage | 2025 H1 ✅ | 04-gbui/apps/drive.md |
-| Tasks | Productivity | 2025 H2 ✅ | 04-gbui/apps/tasks.md |
-| Mail | Communication | 2025 H1 ✅ | 04-gbui/apps/mail.md |
-| Calendar | Scheduling | 2026 Q1 📋 | 04-gbui/apps/calendar.md |
-| Meet | Video | 2026 Q2 📋 | 04-gbui/apps/meet.md |
-| Paper | AI Writing | 2026 Q2 📋 | 04-gbui/apps/paper.md |
-| Research | AI Search | 2026 Q2 📋 | 04-gbui/apps/research.md |
-| Analytics | Reports | 2025 H2 ✅ | 04-gbui/apps/analytics.md |
-| Designer | Visual | 2026 Q3 📋 | 04-gbui/apps/designer.md |
-| Sources | Prompts | 2026 Q2 📋 | 04-gbui/apps/sources.md |
-| Compliance | Security | 2026 Q2 📋 | 04-gbui/apps/compliance.md |
-| Player | Media | 2026 Q2 📋 | 04-gbui/apps/player.md |
+| Chat | Core | 2025 H1 ✅ | 07-user-interface/apps/chat.md |
+| Drive | Storage | 2025 H1 ✅ | 07-user-interface/apps/drive.md |
+| Tasks | Productivity | 2025 H2 ✅ | 07-user-interface/apps/tasks.md |
+| Mail | Communication | 2025 H1 ✅ | 07-user-interface/apps/mail.md |
+| Calendar | Scheduling | 2026 Q1 📋 | 07-user-interface/apps/calendar.md |
+| Meet | Video | 2026 Q2 📋 | 07-user-interface/apps/meet.md |
+| Paper | AI Writing | 2026 Q2 📋 | 07-user-interface/apps/paper.md |
+| Research | AI Search | 2026 Q2 📋 | 07-user-interface/apps/research.md |
+| Analytics | Reports | 2025 H2 ✅ | 07-user-interface/apps/analytics.md |
+| Designer | Visual | 2026 Q3 📋 | 07-user-interface/apps/designer.md |
+| Sources | Prompts | 2026 Q2 📋 | 07-user-interface/apps/sources.md |
+| Compliance | Security | 2026 Q2 📋 | 07-user-interface/apps/compliance.md |
+| Player | Media | 2026 Q2 📋 | 07-user-interface/apps/player.md |
---
@@ -181,13 +181,13 @@ This table merges the proposed timeline with all features documented in botbook/
| Channel | Timeline | Documentation |
|---------|----------|---------------|
-| Web Chat | 2025 H1 ✅ | 04-gbui/apps/chat.md |
-| WhatsApp | 2025 H1 ✅ | 11-features/channels.md |
-| Telegram | 2025 H1 ✅ | 11-features/channels.md |
-| MS Teams | 2026 Q1 📋 | 11-features/channels.md |
-| Slack | 2026 Q2 📋 | 11-features/channels.md |
-| Discord | 2026 Q2 📋 | 11-features/channels.md |
-| Instagram | 2026 Q3 📋 | 11-features/channels.md |
+| Web Chat | 2025 H1 ✅ | 07-user-interface/apps/chat.md |
+| WhatsApp | 2025 H1 ✅ | 03-knowledge-ai/channels.md |
+| Telegram | 2025 H1 ✅ | 03-knowledge-ai/channels.md |
+| MS Teams | 2026 Q1 📋 | 03-knowledge-ai/channels.md |
+| Slack | 2026 Q2 📋 | 03-knowledge-ai/channels.md |
+| Discord | 2026 Q2 📋 | 03-knowledge-ai/channels.md |
+| Instagram | 2026 Q3 📋 | 03-knowledge-ai/channels.md |
| SMS | 2026 Q3 📋 | 06-gbdialog/keyword-sms.md |
---
@@ -204,12 +204,12 @@ This table merges the proposed timeline with all features documented in botbook/
| Feature | Timeline | Documentation |
|---------|----------|---------------|
-| PostgreSQL | 2024 ✅ | 15-appendix/schema.md |
+| PostgreSQL | 2024 ✅ | 12-ecosystem-reference/schema.md |
| Redis Cache | 2024 ✅ | 07-gbapp/architecture.md |
-| MinIO/S3 | 2024 ✅ | 08-config/drive.md |
+| MinIO/S3 | 2024 ✅ | 10-configuration-deployment/drive.md |
| Qdrant Vector | 2025 H2 ✅ | 03-knowledge-base/ |
-| Vault Secrets | 2024 ✅ | 08-config/secrets-management.md |
-| NVIDIA GPU | 2026 Q4 📋 | 09-tools/nvidia-gpu-setup.md |
+| Vault Secrets | 2024 ✅ | 10-configuration-deployment/secrets-management.md |
+| NVIDIA GPU | 2026 Q4 📋 | 08-rest-api-tools/nvidia-gpu-setup.md |
| Docker | 2026 Q4 📋 | 07-gbapp/docker-deployment.md |
| LXC | 2026 Q4 📋 | 07-gbapp/containers.md |
diff --git a/src/attendance.md b/src/attendance.md
index 1031c835..81fc5a6d 100644
--- a/src/attendance.md
+++ b/src/attendance.md
@@ -2369,7 +2369,7 @@ O plano atual cobre **~70% das features enterprise-grade**:
## 14. Arquivo de Referência
Ver também:
-- [Transfer to Human](11-features/transfer-to-human.md)
-- [LLM Assist](11-features/attendant-llm-assist.md)
-- [Attendance Queue](18-appendix-external-services/attendance-queue.md)
-- [WhatsApp Setup](chapter-04-gbui/how-to/connect-whatsapp.md)
+- [Transfer to Human](03-knowledge-ai/transfer-to-human.md)
+- [LLM Assist](03-knowledge-ai/attendant-llm-assist.md)
+- [Attendance Queue](06-channels/attendance-queue.md)
+- [WhatsApp Setup](07-user-interface/how-to/connect-whatsapp.md)
diff --git a/src/executive-vision.md b/src/executive-vision.md
index a817328a..de1e3795 100644
--- a/src/executive-vision.md
+++ b/src/executive-vision.md
@@ -274,15 +274,15 @@ Pragmatismo develops General Bots as an open-source platform for enterprise AI a
Ready to see it in action? Skip to the hands-on guide:
-**[⚡ Quick Start: Run Your First Bot in 5 Minutes →](./chapter-01/quick-start.md)**
+**[⚡ Quick Start: Run Your First Bot in 5 Minutes →](./01-getting-started/quick-start.md)**
Or continue reading for the full journey:
| Path | Time | Best For |
|------|------|----------|
-| [Quick Start](./chapter-01/quick-start.md) | 5 min | Developers who want to dive in immediately |
+| [Quick Start](./01-getting-started/quick-start.md) | 5 min | Developers who want to dive in immediately |
| [Introduction](./introduction.md) | 10 min | Understanding the "No Forms" philosophy |
-| [Chapter 01](./chapter-01/README.md) | 15 min | Complete installation and first conversation |
+| [Chapter 01](./01-getting-started/README.md) | 15 min | Complete installation and first conversation |
---
@@ -306,4 +306,4 @@ Or continue reading for the full journey:
-[Chapter 01: Run and Talk →](./chapter-01/README.md)
\ No newline at end of file
+[Chapter 01: Run and Talk →](./01-getting-started/README.md)
\ No newline at end of file
diff --git a/src/introduction.md b/src/introduction.md
index 2e9688de..88e5a09b 100644
--- a/src/introduction.md
+++ b/src/introduction.md
@@ -1,15 +1,15 @@
# Introduction to General Bots
-> **⚡ Want to skip ahead?** [Quick Start →](./chapter-01/quick-start.md) gets you running in 5 minutes.
+> **⚡ Want to skip ahead?** [Quick Start →](./01-getting-started/quick-start.md) gets you running in 5 minutes.
-**Build conversational AI bots in minutes, not months.** General Bots lets you create intelligent chatbots by writing simple [BASIC scripts](./chapter-06-gbdialog/basics.md) and dropping in your [documents](./chapter-02/gbkb.md). No complex frameworks, no cloud dependencies, no AI expertise required.
+**Build conversational AI bots in minutes, not months.** General Bots lets you create intelligent chatbots by writing simple [BASIC scripts](./04-basic-scripting/basics.md) and dropping in your [documents](./02-architecture-packages/gbkb.md). No complex frameworks, no cloud dependencies, no AI expertise required.
| Your Goal | Go To |
|-----------|-------|
-| Run a bot NOW | [Quick Start](./chapter-01/quick-start.md) |
+| Run a bot NOW | [Quick Start](./01-getting-started/quick-start.md) |
| Understand the vision | Keep reading below |
-| Write your first script | [Chapter 06: BASIC Dialogs](./chapter-06-gbdialog/README.md) |
-| Add documents to bot | [Chapter 02: Packages](./chapter-02/README.md) |
+| Write your first script | [Chapter 06: BASIC Dialogs](./04-basic-scripting/README.md) |
+| Add documents to bot | [Chapter 02: Packages](./02-architecture-packages/README.md) |
## The No Forms Movement
@@ -134,14 +134,14 @@ This is why General Bots focuses on:
Want a student enrollment bot? Here's all you need:
-1. **Drop your documents** in a [`.gbkb` folder](./chapter-02/gbkb.md):
+1. **Drop your documents** in a [`.gbkb` folder](./02-architecture-packages/gbkb.md):
```
edu.gbkb/
enrollment-policy.pdf
course-catalog.pdf
```
-2. **Write a simple [tool](./chapter-03/kb-and-tools.md)** (optional):
+2. **Write a simple [tool](./03-knowledge-ai/kb-and-tools.md)** (optional):
```basic
' enrollment.bas
PARAM name, email, course
@@ -165,10 +165,10 @@ No form. No UI. Just conversation.
```bash
./botserver
```
-That's it. No Kubernetes, no cloud accounts. The [bootstrap process](./chapter-01/installation.md) installs everything locally in 2-5 minutes. PostgreSQL, vector database, object storage, cache - all configured automatically with secure credentials stored in Vault.
+That's it. No Kubernetes, no cloud accounts. The [bootstrap process](./01-getting-started/installation.md) installs everything locally in 2-5 minutes. PostgreSQL, vector database, object storage, cache - all configured automatically with secure credentials stored in Vault.
### Real BASIC, Real Simple
-We brought BASIC back for conversational AI. See our [complete keyword reference](./chapter-06-gbdialog/keywords.md):
+We brought BASIC back for conversational AI. See our [complete keyword reference](./04-basic-scripting/keywords.md):
```basic
' save-note.bas - A simple tool
PARAM topic, content
@@ -291,10 +291,10 @@ The default bot is ready. Ask it anything. Modify `templates/default.gbai/` to c
## What's Next?
-- **[Chapter 01](./chapter-01/README.md)** - Install and run your first bot
-- **[Chapter 02](./chapter-02/README.md)** - Understanding packages
-- **[Chapter 06](./chapter-06-gbdialog/README.md)** - Writing BASIC dialogs
-- **[Templates](./chapter-02/templates.md)** - Explore example bots
+- **[Chapter 01](./01-getting-started/README.md)** - Install and run your first bot
+- **[Chapter 02](./02-architecture-packages/README.md)** - Understanding packages
+- **[Chapter 06](./04-basic-scripting/README.md)** - Writing BASIC dialogs
+- **[Templates](./02-architecture-packages/templates.md)** - Explore example bots
## Community
@@ -304,7 +304,7 @@ General Bots is open source (AGPL-3.0) developed by Pragmatismo.com.br and contr
- **Version**: 6.1.0
- **Status**: Production Ready
-Ready to build your bot? Turn to [Chapter 01](./chapter-01/README.md) and let's go!
+Ready to build your bot? Turn to [Chapter 01](./01-getting-started/README.md) and let's go!
---