Botpress Migration Guide π‘ BETA
This guide maps Botpress concepts to the Chat and Drive surfaces shipped in General Bots Desktop.
Overview
| Capability | What ships |
|---|---|
| Surfaces | Chat and Drive only in the government edition (apps=chat,drive) |
| Engines | On this computer, own server or key, free model, subscription agent |
| Data | Local engine keeps text on the machine; other engines are chosen explicitly |
| Install | Offline installer with SHA-256 checked assets in botserver-installers/ |
| Version | 7.1.2 from the root Cargo.toml |
Why Migrate
The reason to move is data control: the local engine keeps text on the machine, and the installer is offline with verified assets. The trade-off is that the desktop edition offers Chat and Drive, not a visual flow builder.
Concept Mapping
| Botpress concept | General Bots Desktop equivalent |
|---|---|
| Flow | A .bas script in the bot repository |
| Node | A BASIC statement |
| Slot | A variable and HEAR input |
| Content card | A chat message produced by TALK |
| Knowledge base | Documents under the bot .gbkb prefix |
| Channel connector | Not shipped in the desktop edition; the full platform has separate channels |
Flow Migration
Rewrite each flow as a short script: ask with TALK, collect with HEAR, then answer from documents or a configured engine. Keep the script in .gbdialog/ in the bot repository.
Botpress Flow Structure
A visual flow is a directed graph of nodes with slots. That graph is not imported; list its nodes and their order before writing the script.
General Bots Equivalent
A script is linear BASIC with registered keywords. Only keywords present in the BASIC reference are valid.
Migration Examples
Start with the smallest flow that can be verified end to end: one question, one document answer, one follow-up.
Simple Welcome Flow
A welcome flow is a start.bas script that greets the user and adds suggestions; it runs once per session (root AGENTS.md, start.bas).
Lead Capture Flow
Collect fields one at a time with HEAR and store them through a registered data keyword; do not assume a scoring keyword exists.
FAQ Bot with Fallback
Put the FAQ documents in .gbkb, ask one question at a time, and route a handoff only through a tool that is actually registered for the bot.
Multi-Step Booking Flow
Booking needs a registered scheduling keyword and a tool backed by the bot data. If neither is present, keep the flow as a documented question rather than an automated booking.
NLU Migration
The desktop edition has no intent-training screen. Conversation behaviour comes from the bot prompt and the configured engine.
Botpress Intents
Export the intent names and example utterances as a checklist; they describe behaviour to verify, not configuration to import.
General Bots Approach
Write the expected behaviour in PROMPT.md / PROMPT-{CHANNEL}.md in the bot .gbot/ folder; without that file the bot silently uses the generic fallback prompt (root AGENTS.md, Bot Source Rules).
Entity Extraction
Use HEAR AS <type> only for a type that exists in the keyword registry; otherwise collect the value as plain text and validate it in the script.
Actions Migration
Replace a custom action with a tool .bas script executed by CALL or a tool execution message; no separate JavaScript action file is imported.
Botpress Custom Actions
List the external calls an action made and check whether a registered BASIC keyword, an app command or a tool exists for each one.
General Bots
Chat cannot call raw REST directly; it uses keywords, tools and app commands (root AGENTS.md, Expose the feature to the LLM).
Hooks Migration
Event-driven behaviour is written as ON handlers or in the bot prompt, using only registered triggers.
Botpress Hooks
Map each hook to the event that starts it. An unregistered event name is not a trigger.
General Bots Triggers
Use the local keyword registry as the authority for trigger syntax; do not invent an event string.
Content Types
The chat surface renders text and the UI cards that the shell supports; rich content types from another vendor are not imported.
Botpress Content
Export card text as plain text and keep any media in Drive.
General Bots
Use TALK for text and Drive attachments for files; the assistant shell renders markdown in replies.
Knowledge Base Migration
Copy the exported Q&A and documents into the bot .gbkb/ prefix and verify retrieval with a few known questions.
Botpress Q&A
A Q&A pair becomes a document or a short answer file; there is no intent-to-answer mapping to import.
General Bots RAG
Retrieval behaviour and configuration keys live under botserver/src/core/bot/kb_context/; no chunk size or top-k value is documented here.
Channel Migration
The government desktop edition ships Chat and Drive only. The full platform supports other channels separately (root AGENTS.md, Ports & Services).
Botpress Channels
List the channels the old bot served and decide which need the full platform rather than the desktop edition.
General Bots
Chat and Drive run inside one desktop shell; no channel connector is configured from this page.
Database and State
Bot memory is stored by the runtime; persistent rows belong in the application database through registered data keywords.
Botpress State
Export any state values that must survive a conversation; they are not imported automatically.
General Bots
Use SET BOT MEMORY / GET BOT MEMORY when those keywords are registered for the bot, otherwise keep state in a bot table.
What You Gain
- Text can stay on the machine when the local engine is selected.
- Scripts and prompts live in the bot repository and are versioned.
- The installer is offline and verifies each component checksum.
Migration Checklist
- Export flows, Q&A and channel settings from Botpress.
- Write one
.basscript per flow using registered keywords. - Copy documents into
.gbkb/and commit prompts in.gbot/. - Verify answers with a small question set.
- Deploy the desktop installer to the user machine.
Pre-Migration
Keep the export in /tmp and record the product version 7.1.2 from the root Cargo.toml in the migration notes.
Migration
Write scripts, documents and prompts; do not edit the materialized work-dir copy of a git-owned bot.
Post-Migration
Compare a fixed set of conversations before decommissioning Botpress.
See Also
Authority: botserver/.product.gblite, root AGENTS.md, DESIGN-SYSTEM.md Β§0 and the BASIC reference.
Limits
- No Botpress import tool, connector or flow converter exists in this repository.
- No intent training UI ships in the desktop edition.
- No model name, chunk size or top-k value is claimed here.
- Competitor features are described only as migration inputs, not as General Bots features.