Build

Generating diagrams

Drawing an architecture by hand takes an afternoon; describing it takes a minute. Generation turns text into a structured diagram: typed nodes, flow edges, nested zones, and column-level lineage where the input carries it. The output is a real canvas document, not an image, so everything the generator produces can be edited afterwards.

A generated diagram on the Datadef canvas: ingestion, bronze, silver, and gold zones with table nodes carrying typed columns
What generation produces: zones, flow edges, and table nodes with real columns, all editable.

How it works

  1. 1Describe the system in the prompt bar, or paste Terraform, SQL, dbt, or OpenAPI text, or attach files.
  2. 2Name what matters. The technologies, zones, and tables you name are treated as a specification, not a suggestion.
  3. 3Datadef generates an overview-scoped diagram a reader can follow in one pass, with icons for the technologies it recognizes.
  4. 4Refine the result on the canvas or through the AI panel; every generated element stays editable.

Where you can generate

  • The dashboard prompt bar. Creates a new cloud project from a description or attached files.
  • The scratch canvas at /scratch, without an account.
  • The AI panel on the canvas. Edits the open diagram in place: "add a staging zone", "collapse the ingestion tier".
  • An AI agent over MCP, with the create_diagram and edit_diagram tools. See MCP and agents.
  • A connected repository, where the input is the code itself. See Repositories.

Writing a prompt that works

The diagram is only as detailed as the description. The generator does not pad a thin prompt with invented services, so the difference between a generic diagram and your platform is what you name:

  • Name the actual technologies. "Snowflake, dbt, Airflow, Kafka, Fivetran" draws those, with their icons. "A data pipeline" draws a guess.
  • Name the layers or zones you want. Zone names you give are treated as a specification, not a suggestion: ask for "bronze, silver, gold" and you get exactly those three zones.
  • Name the tables that matter. Tables you name arrive as table nodes with columns, which is what makes column-level lineage possible later.

Pasting Terraform, SQL, dbt, or OpenAPI text

The prompt field accepts infrastructure and schema text directly. Paste Terraform resources, SQL DDL, a dbt_project.yml with model SQL, or an OpenAPI spec, and the generator reads the structure out of it rather than treating it as prose.

You can also attach files. Accepted types:

KindExtensions
Documents.pdf .md .txt .docx .doc .pptx .ppt
Diagrams and data.xml .drawio .json .csv
Images.png .jpg .jpeg .webp .svg

A reference image is recreated structurally: the generator reproduces its zones, nesting, and components in Datadef's own visual language. It does not trace pixels, and layout is recomputed.

Scope: overview and detailed

Generation runs against an explicit size budget:

  • Overview (the default): 12 to 20 nodes, no more connections than nodes. Repeated objects collapse into one node stating the count, and supporting tiers like governance or monitoring get at most one node each. This is the right scope for almost every request; a reader should follow the whole flow in one pass.
  • Detailed: 25 to 40 nodes carrying full fields, schedules, contracts, and owners. Reserved for when depth is explicitly asked for. Today the detailed scope is exposed through the MCP create_diagram tool's scope parameter; in-app generation uses the overview budget.

Why the budget exists

A dense 40-node diagram is impressive and usually not what anyone wanted from a one-line request. Overview first, then expand the parts that deserve it on the canvas or through the AI panel.

Generation allowances

WhoAllowance
Anonymous, on the scratch canvas3 generations per day, enforced server-side, resets daily.
Active trial, Pro, or TeamGeneration is not credit-metered. This includes generation through MCP and repository sync.
Account without an active planNo generation. Everything already made stays viewable.

Further reading