Skip to content

Overview 🟑 BETA

This page maps the parts of General Bots to the guide that explains each one, so a new user can pick the next step.

The four BotBook guides: Lite for first use, Desktop for apps, Admin for servers, Dev for builders.

Core Philosophy

Principle Where it shows up
Local first The stack installs under botserver-stack/
Bot as a folder A bot is a set of .gbot, .gbdialog, .gbkb and .gbdrive prefixes in Drive
BASIC Scripts in .gbdialog/ declare tools with PARAM and DESCRIPTION
Channels Channel adapters are Cargo features
Knowledge first Documents live under .gbkb/ and are read when the bot answers

Architecture Overview

The server is a Rust workspace with a botserver binary and feature crates under botserver/crates/. See Architecture β€” Dev guide.

Storage Layer

Store Role
PostgreSQL Users, sessions, messages and other structured records
OtterIO S3-compatible object storage for bot files
Valkey Cache and session data
Qdrant Vector store used by retrieval

Application Layer

Part Role
Bot pipeline Builds a turn from prompt, history, retrieval and tools
BASIC compiler Parses .bas files and tool declarations
Drive monitors Reload bot prefixes when Drive changes
Channel adapters Translate a channel's messages into the bot pipeline

Service Layer

Service Role
Suite, cloud and login UI Static pages served by botui
REST and WebSocket routes Mounted in botserver/src/main_module/routes/
Scheduler Automation and cron features
Vault Secrets for services and bots

Key Features

Conversation Management

A turn keeps its thread in a session. The history-limit setting controls how much history is sent to the model.

Knowledge Base System

Documents under .gbkb/ supply the content the bot can use in an answer. Configuration keys live in botserver/src/core/bot/kb_context/. This page states no chunk size or rank count.

BASIC Scripting Language

Scripts are .bas files. TALK, LLM, USE TOOL and GET BOT MEMORY are verified forms in the generated BASIC reference.

Multi-Channel Support

Channels are enabled as Cargo features. The channel prompt is PROMPT-{CHANNEL}.md in the bot's .gbot/ folder; without it the generic fallback prompt is used.

Enterprise Features

Security, directory, RBAC, billing and compliance are Cargo features. Confirm a feature is compiled before you look for its settings.

System Requirements

Minimum Requirements

Use the local stack for development. The dependency check reports what the host lacks: ./PROD-DEPENDENCIES.sh --check.

Sizing depends on the services you enable. Use Hardware and scaling and the version pins in botserver/3rdparty.toml.

Configuration

Service endpoints and credentials live in Vault. Per-bot keys live in config.csv in the bot's .gbot/ folder. Read config.csv Format for the current keys.

Bot Package Structure

  1. Create the prefixes in Drive under {org}.gborg/{workspace}.gbai/.
  2. Add PROMPT-{CHANNEL}.md and config.csv to {bot}.gbot/.
  3. Add scripts to {bot}.gbdialog/ and documents to {bot}.gbkb/.
  4. Let drive_monitor register the bot.

The work/ folder is an internal materialization target, not a source.

Deployment Models

Standalone Server

One botserver process serves bots from Drive. This is the local stack described in Installation.

Incus Containers

Components and agent VMs can run in Incus instances on a Linux host. See Container Deployment.

Embedded Mode

The desktop sidecar embeds the suite UI and starts botserver as a local service; see First-Run Wizard.

Getting Started

  1. Install the stack.
  2. Follow Quick Start to the first answer.
  3. Read First Conversation to see which bot files supplied it.
  4. Continue in GB Lite for daily use.

Use Cases

Customer Support

Provide manuals in .gbkb/ and a tool in .gbdialog/ for the action the bot must perform.

Internal Tools

Provide policies in .gbkb/ and a tool for the request the bot must record.

Educational Applications

Provide course material in .gbkb/ and a tool for enrolment or progress.

Healthcare Applications

Provide education material in .gbkb/; keep the channel prompt and tool descriptions explicit about what the bot may do.

Security Features

The repository requires SafeCommand for process execution, sql_guard for identifiers, log_and_sanitize for error responses, rate limiting and CSRF protection on state-changing endpoints. See Security Features.

Monitoring and Operations

Health Checks

curl -s http://localhost:8080/health answers without a token.

Metrics

Server-side metric families are exposed at GET /metrics; see Observability.

Logging

botserver.log carries API, error and client events. Component logs live in botserver-stack/logs/.

Extensibility

Channel Adapters

Add a channel as a Cargo feature and register its adapter; the bot keeps the same prompt and tools.

Storage Backends

Object storage is S3-compatible. Credentials are read from Vault; do not place them in config.csv.

Community and Support

Documentation

Start with the Desktop guide for app tasks, or the Developer guide for code.

Resources

Generated tables list apps, keywords and routes.

Contributing

Use the repository issue tracker. General Bots is MIT licensed.

Codebase Statistics

Counts change with every commit. Regenerate them from the repository; do not copy a number from this page into another document.

Summary

General Bots is a local-first server: a Rust binary, a set of feature crates, bot files in Drive and four guides that split the work by reader. Start with GB Lite and move to the other guides when the task changes.