Dialogflow Migration Guide π‘ BETA
This guide maps Dialogflow intents and fulfillment to the scripts and documents used by 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 is control of the model and the documents: the local engine keeps text on the machine, and knowledge comes from files in the bot repository rather than a hosted connector.
Cost Comparison
No price table is published for either product. A self-hosted deployment pays for its own hardware and for any external engine the user chooses.
Dialogflow Pricing
Pricing belongs to the provider; this page does not restate it.
General Bots
The community edition is MIT; component pins are in botserver/3rdparty.toml. No per-intent or per-message price is defined in the repository.
Architecture Comparison
| Aspect | Dialogflow | General Bots Desktop |
|---|---|---|
| Conversation model | Intents and fulfillment | Prompts and BASIC scripts |
| Knowledge | Connector to hosted documents | .gbkb/ documents in Drive |
| Runtime | Hosted service | Local botserver started by the desktop app |
| Model choice | Provider-defined | Four engines chosen in Settings |
Dialogflow Architecture
Export intents, entities and fulfillment code as a checklist; none of these objects is imported by a tool in this repository.
General Bots Architecture
A chat turn runs through the session handler, prompt and configured engine; tools execute as .ast scripts without an LLM call (root AGENTS.md, Chat Flow).
Concept Mapping
| Dialogflow | General Bots Desktop |
|---|---|
| Intent | Expected behaviour in the bot prompt |
| Entity | HEAR AS <type> where the type is registered |
| Fulfillment webhook | Tool .bas or app command |
| Context | Bot memory / conversation state |
| Knowledge connector | Documents under .gbkb/ |
Intents to BASIC
Write one script per conversation path using only registered keywords; the intent names themselves are not configuration.
Entity Types
Use plain HEAR and validate in the script unless the exact type is present in the generated BASIC reference.
Migration Examples
Begin with FAQ answering, then add a multi-step flow once the knowledge base answers correctly.
Simple FAQ Bot
Copy the FAQ documents into .gbkb/ and ask a fixed set of questions to confirm retrieval.
Order Status Bot
Query an internal table or external service through a registered keyword; do not assume an order API exists.
Appointment Booking
Use a registered scheduling keyword if present; otherwise treat the booking as a manual handoff.
Multi-Turn Conversation
Collect one field at a time with HEAR and keep state with bot memory keywords where registered.
Migrating Fulfillment Code
Replace a webhook with a tool script in the bot repository and register it for the session.
Dialogflow Webhook
Export the webhook URL and payload fields as documentation of what behaviour must be recreated.
General Bots Equivalent
A tool .bas script executed directly (message type 6) bypasses the LLM and responds immediately (root AGENTS.md).
Knowledge Base Migration
Copy documents into .gbkb/ and verify retrieval. No chunk size, top-k or threshold value is documented here.
Dialogflow Knowledge Connector
Export the source documents; the connector configuration itself is not portable.
General Bots Knowledge Base
Retrieval behaviour and configuration keys live under botserver/src/core/bot/kb_context/.
Context Migration
Dialogflow context parameters become bot memory or table rows, not a context object.
Dialogflow Contexts
List the parameters that must survive a turn and map each to a memory key or a column.
General Bots Memory
Use SET BOT MEMORY / GET BOT MEMORY when registered; otherwise store the value in a bot table.
Multi-Channel Deployment
The full platform serves other channels; the desktop edition is Chat and Drive only.
Dialogflow Integrations
List the integrations the old agent used and decide which need the full platform.
General Bots
Chat and Drive share one desktop shell; no channel integration is configured from this page.
Advanced Features
| Feature | Desktop edition |
|---|---|
| Small talk | Behaviour written in the prompt, not a built-in module |
| Sentiment analysis | No dedicated keyword is documented here |
| Rich responses | Markdown text in the assistant shell |
Small Talk
Add the expected tone to PROMPT.md in the bot repository.
Sentiment Analysis
Do not document a sentiment keyword without checking the generated BASIC reference.
Rich Responses
The assistant shell renders markdown; custom cards belong to the full Suite, not to the reduced edition.
Migration Checklist
- Export intents, entities and documents.
- Write prompts in
.gbot/and scripts in.gbdialog/. - Copy documents into
.gbkb/. - Verify a fixed question set in a fresh session.
- Deploy and keep the export until answers match.
Pre-Migration
Record the product version 7.1.2 from the root Cargo.toml in the migration notes.
Migration
Edit the bot repository, not the materialized work-dir copy.
Post-Migration
Compare answers before retiring the Dialogflow agent.
What You Gain
Versioned scripts and prompts, a private document store and a choice of where text is processed.
See Also
Authority: root AGENTS.md, DESIGN-SYSTEM.md Β§0, .product.gblite and the BASIC reference.
Limits
- No Dialogflow importer exists in this repository.
- No intent-training UI, hosted connector, price or date is claimed.
- No keyword is treated as available unless it appears in the generated BASIC reference.