> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diagram.eoeok.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI capabilities

> Understand how DiagramAI generates, edits, checks, and manages diagrams.

DiagramAI combines AI planning with diagram-type-specific rendering and deterministic validation. You can begin with a prompt or supported source file, then continue editing the result on the canvas.

<Columns cols={2}>
  <Card title="Generate from prompts and files" icon="sparkles">
    Start with a prompt, image, specification, infrastructure file, or ZIP source package instead of
    a blank canvas.
  </Card>

  <Card title="13 professional diagram types" icon="grid-2x2">
    Use structure, shapes, and layout rules suited to architecture, process, sequence, data, and
    modeling diagrams.
  </Card>

  <Card title="AI editing and quality checks" icon="badge-check">
    Make focused changes in place, switch styles or vendors, and check structure, rendering,
    overlap, and connectors.
  </Card>

  <Card title="Team workspaces and permissions" icon="users">
    Manage organization workspaces, roles, invitations, editing locks, shared credits, and seats.
  </Card>
</Columns>

## Generate from prompts and files

You can submit a prompt, attach supported source material, or combine both:

* Natural-language prompts
* PNG, JPEG, and WebP images
* OpenAPI JSON or YAML
* SQL schemas
* Docker Compose and Kubernetes YAML
* Terraform configuration
* CI workflow configuration
* ZIP source packages containing supported files

DiagramAI first identifies the source family. Deterministic parsers preserve entities and relationships from text-based sources. AI then helps with grouping, labels, intent, and visual refinement.

## Use the right professional diagram type

DiagramAI supports 13 explicit diagram types:

1. Flowchart
2. Architecture diagram
3. Sequence diagram
4. ER diagram
5. Mind map
6. Topology diagram
7. UML class diagram
8. C4 diagram
9. Machine-learning diagram
10. SysML diagram
11. BPMN diagram
12. Swimlane diagram
13. Tube map

**Auto detect** is a selection mode, not an additional diagram type. A manual selection locks the requested type.

## Edit with intent-aware routing

DiagramAI chooses an execution path based on the requested impact:

* Presentation edits preserve meaning, topology, and coordinates while changing labels, styles, or icons.
* Incremental edits apply a structured change and rearrange only the affected area where possible.
* Full generation handles new diagrams, type conversion, major restructuring, and explicit redesign requests.

If the request is ambiguous, DiagramAI asks what you intend before changing a non-empty diagram.

## Validate before delivery

Generated results pass structural and rendering checks. Depending on the execution path, DiagramAI can also inspect labels, overlap, hierarchy, and connector readability. A valid result remains editable in the embedded editor.

## Work as a team

Business organizations can use team workspaces with:

* Owner, Admin, and Member roles
* Member invitations and workspace assignment
* One active editor lock per diagram to avoid overwrites
* Shared organization credits
* Organization seat management

DiagramAI does not currently provide simultaneous multi-user editing, comments, public sharing, or multi-user cursors.

<Tip>
  Continue with [Create diagrams with AI](/en/create-with-ai) for supported inputs, limits, and
  prompt guidance.
</Tip>
