botbook/src/chapter-02
Rodrigo Rodriguez (Pragmatismo) e5fd4bd3fc docs: Update model names to latest (GPT-5, Claude 4.5, DeepSeek-R3)
- Update all model references across 14+ documentation files
- GPT-4.1 → GPT-5, GPT-5 mini
- Claude Sonnet/Opus → Claude Sonnet 4.5, Claude Opus 4.5
- DeepSeek-R1 → DeepSeek-R3
- Add Template: Attendance CRM to SUMMARY.md
- Update attendant.csv docs with multi-channel columns
- Update TASKS.md with completed model updates
2025-12-05 14:54:59 -03:00
..
assets - Split from botserver. 2025-12-03 19:56:35 -03:00
gbai.md docs: Add LLM-assisted attendant documentation 2025-12-05 13:50:28 -03:00
gbdialog.md - Split from botserver. 2025-12-03 19:56:35 -03:00
gbdrive.md - Split from botserver. 2025-12-03 19:56:35 -03:00
gbkb.md - Split from botserver. 2025-12-03 19:56:35 -03:00
gbot.md - Split from botserver. 2025-12-03 19:56:35 -03:00
gbtheme.md - Split from botserver. 2025-12-03 19:56:35 -03:00
README.md - Split from botserver. 2025-12-03 19:56:35 -03:00
summary.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-analytics.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-api-client.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-attendance-crm.md docs: Update model names to latest (GPT-5, Claude 4.5, DeepSeek-R3) 2025-12-05 14:54:59 -03:00
template-bi.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-crawler.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-crm-contacts.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-crm.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-law.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-llm-server.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-llm-tools.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-marketing.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-office.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-reminder.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-samples.md - Split from botserver. 2025-12-03 19:56:35 -03:00
template-template.md - Split from botserver. 2025-12-03 19:56:35 -03:00
templates.md - Split from botserver. 2025-12-03 19:56:35 -03:00

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


General Bots