Skip to content

Quick Start 🟑 BETA

This page runs a local botserver stack and takes you to a first chat answer; it is the short path into GB Lite.

The four BotBook guides: this page is the short start for GB Lite.

Installation in 3 Steps

1. Run botserver

  1. Open a terminal in the directory that holds the botserver binary.
  2. Run ./botserver.
  3. Leave the process running until bootstrap finishes.
./botserver

2. Wait for Bootstrap (2-5 minutes)

The first run creates botserver-stack/, downloads the pinned components, seeds credentials in Vault and deploys the default bot. Check progress with the health endpoint rather than by reading a fixed log line.

curl -s http://localhost:8080/health

3. Open Browser

  1. Open http://localhost:3000.
  2. Select the default bot.
  3. Type a short question and press Enter.

What Just Happened?

Bootstrap Flow

Bootstrap stages: detect the host, install components, initialize services and deploy the default bot.

Stage Result
Detect host OS and architecture are read
Install components Versions come from botserver/3rdparty.toml
Initialize services Database, object storage and secrets are prepared
Deploy default bot A bot is registered from the templates

Using Existing Services

Platform endpoints and credentials live in Vault, not in config.csv. Per-bot keys, such as server-port, live in the bot's config.csv. See Installation for the Vault paths and config.csv format for the keys.

Step 2: Write a Simple Tool

How Tools Work

A tool call: the assistant matches a request to a .bas tool and writes the reply.

  1. Create a .bas file in the bot's .gbdialog/ folder.
  2. Declare inputs with PARAM and describe the tool with DESCRIPTION.
  3. Use TALK for the answer.
  4. Commit the file in the bot's repository when the bot is git-owned.
PARAM topic:string DESCRIPTION "The topic to record"
DESCRIPTION "Records a short note"
TALK "Noted: " + topic

The compiler parses PARAM and DESCRIPTION. See Tool Definition and the BASIC keywords.

Step 3: Add Knowledge Base

  1. Put documents in the bot's .gbkb/ folder in Drive.
  2. Wait for the drive monitor to reload them.
  3. Ask a question covered by the documents.

Container Deployment (Incus)

  1. Create an instance with base image images:ubuntu/24.04.
  2. Install the runtime dependencies inside it.
  3. Run the binary and check the health endpoint.
incus launch images:ubuntu/24.04 botserver
incus start botserver

Run container create commands on the host. See Container Deployment for the supported layer.

Optional Components

Use the component CLI only for components you need:

botserver install vault
botserver install vector_db

Check the CLI reference for the exact component names and the --container form.

Example Bot Structure

{org}.gborg/
└── {workspace}.gbai/
    β”œβ”€β”€ {bot}.gbot/          # config.csv, PROMPT-{CHANNEL}.md
    β”œβ”€β”€ {bot}.gbdialog/      # start.bas and tools
    β”œβ”€β”€ {bot}.gbkb/          # documents
    └── {bot}.gbdrive/       # generated files and media

Upload the tree to Drive to register a bot. The work/ folder is an internal materialization target.

Local Development with Auto-Sync

  1. Configure an S3-compatible client for the Drive endpoint.
  2. Sync a local folder to the {org}.gborg/{workspace}.gbai prefix.
  3. Let the drive monitor pick up .gbkb/ and .gbdrive/ changes.
rclone sync ./workspace.gbai drive:workspace.gborg/workspace.gbai --watch

.gbdialog/ and .gbot/ changes for a git-owned bot belong in the bot's repository, not in a direct Drive edit.

How It Really Works

1. Add Documents

Documents in .gbkb/ supply the content the bot can use when it answers.

2. Create Tools (Optional)

A tool needs a file in .gbdialog/, PARAM declarations and a DESCRIPTION.

3. Start Chatting!

Send a question in the suite at http://localhost:3000. The thread is kept as a session.

Configuration (Optional)

Per-bot settings are keys in config.csv. The generated config.csv format lists the keys; do not copy a key from an older example.

Troubleshooting

Port 8080 in use?

  1. Stop the process that holds the port, or set server-port in the bot's config.csv.
  2. Re-run curl -s http://localhost:8080/health.

Clean install?

On a dedicated development host, remove botserver-stack/ and the ignored .env, then run ./botserver again. Do not do this on a host with data you need.

Check component status

botserver list
botserver status tables

The component name is required after status.

Documentation

The Magic Formula

What You DON'T Need:

A hand-written intent table, dialog tree or state machine is not required for a simple tool.

What You DO:

Add documents, declare a tool and chat. The inputs are the files under .gbkb/, .gbdialog/ and .gbot/.

Philosophy

  1. Run the binary first; inspect the result second.
  2. Keep bot files in Drive, not in work/.
  3. Keep the channel prompt beside the tool it governs.
  4. Verify with the health endpoint and the rendered page.

Real Example: Education Bot

  1. Add course material to .gbkb/.
  2. Add a tool to .gbdialog/ with PARAM declarations and a DESCRIPTION.
  3. Add the channel prompt to .gbot/.
  4. Ask a question about the course in chat.

The answer depends on the files you supplied; this page does not guarantee a wording.