.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. |
Related
- Quick Start β a first conversation.
- Knowledge Base β the document surface.
- Chapter 03: Knowledge Base β how KB context is injected.
- Conversation β the chat flow.
- KB and TOOL system β the keyword surface.
- AI and LLM β generation path.
- UI overview β the suite surface.
- External APIs β outbound calls from tools.
- System limits β documented quotas.
- Package overview β chapter index.
- .gbdialog reference β this page.