Skip to content

.gbdialog Dialogs 🟑 BETA

The .gbdialog prefix holds the BASIC .bas files that define a bot's tools and event handlers.

Layout

{bot}.gbdialog/
β”œβ”€β”€ start.bas        session entry point (suggestions, memory, context)
β”œβ”€β”€ tables.bas       schema declarations, parsed at compile time
β”œβ”€β”€ {tool}.bas       callable tools, compiled to {tool}.ast
└── schedulers/      scheduled jobs

start.bas runs on WebSocket connect and again on the first message; a Redis flag keyed by session id prevents a second run in the same session. Without a PROMPT-{CHANNEL}.md in the bot's .gbot/, the runtime uses a generic fallback prompt and tools stop being called. This behaviour is specified in the root AGENTS.md.

Execution

.bas in ALM repo β†’ materialized in work dir β†’ compiled to .ast β†’ CALL "tool" or TOOL_EXEC (type 6) β†’ result in chat

tables.bas is never called with CALL: it is parsed automatically to drive sync_bot_tables(). TOOL_EXEC bypasses the LLM and knowledge base entirely.

Source of truth

For git-owned bots the repository is authoritative. Editing a .bas file straight in Drive is out-of-band; the git monitor materializes the repository copy and the archive pass removes the Drive edit.

Limits

Claim Status
Invented keywords A keyword must be registered in a botbasic_* crate or botserver/src/basic/keywords/.
File counts, timeouts, tool limits Not asserted here; use the generated keyword reference and the system-limits page.
Direct Drive edits for git-owned bots Archived, not used.