Usage¶
This guide covers common interaction patterns with the Modeling Agent. For the technical details of how requests are processed, see End-to-End Flow. For the JSON schemas behind each response, see Schema Reference.
On this page
How Operation Mode is Selected¶
The agent infers the operation mode from your phrasing. There are two plan
modes (ALLOWED_MODEL_MODES):
Mode |
Triggered by |
Example |
|---|---|---|
|
Describing a whole domain or system to build from scratch |
“create a class diagram for an e-commerce system” |
|
Referring to something that already exists, or creating one specific element |
“rename Order to PurchaseOrder”, “add email to User”, “create a User class”, “add a Cancelled state” |
Note
A modify_model operation targeting a flow-style diagram that does not
exist yet is automatically promoted to complete_system, so “add a task
to the order process” creates the process when there is none.
Note
ObjectDiagram requires a ClassDiagram to exist first — the agent uses class definitions to generate object instances with realistic values. UserDiagram does not: its reference catalog is a bundled metamodel.
The agent also judges how the request relates to what is already on the
canvas (model_disposition): extend the current model, replace it, build in
a new tab, or reuse it for generation without changing it. When a request
would discard or overwrite an existing model, it asks first rather than
guessing destructively.
Common Modeling Requests¶
The agent interprets natural language and determines both the diagram type and the operation mode automatically.
Class Diagram Examples¶
# Single element
create a User class with id and email
# Complete system
create a class diagram for an e-commerce system with products, orders, and customers
# Modification
add a password attribute to the User class
rename the Order class to PurchaseOrder
Object Diagram Examples¶
# Single instance
create an object instance of User called admin
# Complete system
create object instances for all classes in the model
State Machine Examples¶
# Complete system
create a login state machine
create an order processing state diagram
# Single element
add a "Cancelled" state to the state machine
Agent Diagram Examples¶
create a multi-agent support workflow
create a chatbot for restaurant ordering
GUI Diagram Examples¶
create a GUI diagram for the current class model
create a dashboard with charts for user statistics
Quantum Circuit Examples¶
create a quantum circuit for Bell state
create a 3-qubit Grover search circuit
BPMN Examples¶
# Complete system
model an order fulfillment process as a BPMN diagram
create a business process for document review with two reviewers
# Modification
add a task to the order fulfillment process
add an exclusive gateway after the review task
# Agentic BPMN (say "agentic", "multi-agent" or "agent swarm")
create an agentic BPMN swarm for document review with three reviewer agents
change the lane role of Reviewer to supervision
Component and Deployment Examples¶
Name the diagram explicitly: generic words such as “system architecture” stay on the class diagram.
create a component diagram for a RAG agent swarm
add a supervises dependency from Supervisor to Writer
create a deployment diagram for the agent services
add a WebApp artifact to the Production Server node
User Profile Examples¶
Profiles describe a target user as matching criteria (age >= 18,
level == B2) rather than concrete instance values.
create a target user profile for elderly users with sight issues
add a language competence of at least B2 to the profile
Multi-step Requests¶
The planner can split combined requests into ordered operations:
create a class diagram for a bookstore and then generate django backend
create a hospital management system, add a state machine for patient
admission, and build a GUI
create a banking system and generate SQL schema
The planner ensures correct ordering (e.g., ClassDiagram is always created before ObjectDiagram or GUI generation).
Generation Requests¶
Supported generator types and their keywords:
Generator |
Example Request |
Output |
|---|---|---|
|
|
Django project trigger |
|
|
Backend code trigger |
|
|
Full-stack app trigger |
|
|
SQL DDL trigger |
|
|
ORM model trigger |
|
|
Python code trigger |
|
|
Java code trigger |
|
|
Pydantic model trigger |
|
|
JSON Schema trigger |
|
|
Smart data trigger |
|
|
Agent code trigger |
|
|
Quantum code trigger |
|
|
REST API trigger |
|
|
RDF trigger |
Spec-Driven Agent (smart route)¶
Anything outside that list goes to the Spec-Driven Agent — an LLM-authored codebase rather than a template. Two kinds of request take this route:
A language or framework outside the assistant’s direct generator routes (Rails, Rust, Kotlin, Next.js, Go, Laravel, .NET, …).
A BESSER stack plus extras the template cannot produce — auth, JWT, OAuth, Docker, migrations, tests, rate limiting, custom middleware.
build a Rails 7 app with Devise auth from my model
generate a FastAPI backend with JWT and Docker
Runs can use a configured free or sponsored tier, or the user’s provider key. A saved key can start a requested run immediately and incur provider charges; set the cost and time limits in the editor’s key dialog before generating. If the request describes a different domain than the class diagram already on the canvas (classes say “Team/Player”, the request says “a shoe store”), it offers three choices instead of silently rewriting: update the model and generate, generate anyway, or cancel.
Continuing from GitHub¶
A project that was generated and pushed to GitHub can be resumed:
continue from github.com/owner/repo
resume work on github.com/owner/repo on branch develop
The agent hands the frontend a trigger_github_import action; the frontend
calls the backend’s import endpoint, loads the project, and arms incremental
modification. The agent itself never contacts GitHub.
Inline Configuration¶
Some generators accept inline configuration:
# Django with config
generate django backend with project name "myproject" and app name "store"
# SQL with dialect
generate SQL schema for PostgreSQL
# Qiskit with backend
generate Qiskit code using Aer simulator with 1024 shots
Export and Deploy¶
export project to JSON
export to BUML
deploy to Render
File Conversion¶
Attachments are converted into diagram specifications:
File Type |
Extensions |
Output |
|---|---|---|
PlantUML |
|
Diagram type detected from the PlantUML source |
Knowledge Graph |
|
ClassDiagram |
XMI / Ecore |
|
ClassDiagram |
|
Converted via the vision model |
|
Images |
|
Converted via the vision model; a UI screenshot or mockup becomes a GUINoCodeDiagram (see below) |
Generic text |
any other |
ClassDiagram (via LLM interpretation) |
Upload a file alongside your message and the agent converts it automatically.
Conversion can target any of ClassDiagram, StateMachineDiagram,
ObjectDiagram, AgentDiagram or BPMN
(CONVERTIBLE_DIAGRAM_TYPES); the target is auto-detected when you do not
name one. If the resulting diagram would overwrite something already on the
canvas, the agent asks whether to replace, keep, or use a new tab first.
From a screenshot or mockup to a GUI¶
Attach a screenshot, mockup, wireframe or sketch of a page and the agent
builds it as a GUI (GUINoCodeDiagram). It is treated as a mockup when your
message asks for a GUI (“build this page”, “turn this mockup into screens”),
or, with no message, when the vision model reads the image as a user
interface rather than a diagram. Several screenshots in one message become one
app with a page per image.
The image goes to the same model calls as a typed GUI request, with instructions to reproduce it: the same sections and layout, every visible text copied exactly, the mockup’s colours, fonts and spacing in the page’s stylesheet, and pictures redrawn as inline SVG. When a class diagram exists, tables and charts shown in the mockup are bound to its classes, so the “Basic CRUD pages” / “Experimental AI design” question is skipped. An existing GUI gets the usual replace / keep / new-tab question.
Reading images needs a model with vision: the server’s OpenAI models, or your own OpenAI or Anthropic key. Pixel values are read by eye, so expect to adjust spacing and colours in the editor.
Voice Input¶
Voice messages are transcribed with OpenAI speech-to-text and then handled
exactly like typed messages. The language is auto-detected by default; a
deployment can pin one with BESSER_AGENT_STT_LANGUAGE. Because a
transcript arrives as plain text with no JSON context, the frontend sends the
workspace context separately just before the audio.
Using Your Own API Key¶
If you supply your own OpenAI, Anthropic or Mistral key in the editor, the agent routes its generation and conversational calls through a per-request client built from that key instead of the shared server key. The Spec-Driven Agent always uses your key. See Configuration for what is and is not routed.
UML Specification Queries¶
The agent can answer questions about the UML specification using RAG:
what is a composite state in UML?
explain the difference between aggregation and composition
what are the metaclasses in UML?
Model Description¶
Ask the agent to describe your current model:
describe my current model
what does my class diagram contain?
summarize the project
Quick Start Commands¶
# Greeting / capabilities
hello
what can you do?
# Help
help
?
Quality Suggestions¶
After generating a diagram, the agent may offer quality suggestions:
Missing expected attributes (e.g., User without email/password)
Isolated classes with no relationships
Missing ID attributes
Cross-diagram suggestions (e.g., “create a state machine for User lifecycle”)
These appear as “What’s next?” hints after each generation.