← back to features
ENGINEERING ap-diagrams Draw.io CLI

System Architecture
Auto-Drawing

Describe architecture → AI layouts → Export SVG/PNG

① Describe in natural language ② Agent builds draw.io graph ③ Export SVG/PNG/PDF

// AGENT SESSION LOG

U

"Draw a microservice architecture: API Gateway → Auth Service, User Service, Order Service. Order Service connects to Payment Service and Notification Service. All services connect to a shared Redis cache."

AP

// Parsing topology: 6 services, 7 connections

  • → Create microservice diagram template
  • → Add 6 service nodes with icons
  • → Wire connections with directional arrows
  • → Add Redis cache as shared infrastructure layer
  • → Apply dark theme, export SVG + PNG
agentputer — ap-diagrams executor

$ ap-diagrams new --type microservice --theme dark

✓ Diagram initialized with microservice template

$ ap-diagrams add node --label "API Gateway" --icon aws-api-gateway --x 400 --y 60

✓ Node added: API Gateway (entry point)

$ ap-diagrams add node --labels "Auth,User,Order" --row 2 --spacing 200

✓ 3 service nodes auto-positioned in row 2

$ ap-diagrams connect "API Gateway" --to "Auth,User,Order" --style arrow

✓ 3 connections wired with directional arrows

$ ap-diagrams add node --label "Redis Cache" --icon redis --layer infrastructure

✓ Shared cache layer added at bottom

$ ap-diagrams export --svg --png --fit-page

✓ Exported: microservice-arch.svg + microservice-arch.png

elapsed: 31s
📐 microservice-arch.svg Vector editable

// WHAT THIS SCENARIO SUPPORTS

☁️

Cloud icon libraries

AWS, GCP, Azure, and Kubernetes icon sets built-in. No manual icon imports.

🔗

Smart auto-routing

Connection lines auto-route around nodes. No manual drag-to-connect needed.

📊

Multiple diagram types

Microservice, ER, network topology, sequence, UML, C4 model — all supported.

🎨

Dark & light themes

Professional diagram themes. Consistent visual style across the entire diagram.

📄

From code / schema

Generate ER diagrams from SQL schema files. Auto-detect tables and relationships.

✏️

Editable SVG output

Output is a standard SVG — open and edit further in any vector tool.

// DEPLOY YOUR AGENT

Stop drawing diagrams manually.

Describe your system. AgentPuter builds the diagram — precise, professional, exportable. No diagramming tool required.