DEV Community

Michael Salaverry
Michael Salaverry

Posted on

9

ChatGPT can draw system architecture diagrams using mermaid

Turns out that ChatGPT can draw system architecture diagrams for it's suggestions using mermaid.js

I asked ChatGPT for some system architecture advice for monitoring some windows and linux on-prem servers my company runs using this prompt:

... (conversation including details on my goals)
draw a system architecture design using mermaid and markdown

Here is the design ChatGPT produced:



graph LR
    A[VPN] --> B[On-Prem Windows]
    A --> C[On-Prem Linux]
    A --> D[Docker Containers]
    B --> E{Prometheus}
    C --> E
    D --> E
    E --> F[Grafana]
    G[User] --> F


Enter fullscreen mode Exit fullscreen mode

system architecture diagram by chatgpt

Top comments (2)

Collapse
 
darrinm profile image
Darrin Massena

Doesn’t seem to work with gpt-4. :(

Collapse
 
johannes_k_rexx profile image
johnblommers

Confirmed! How did you ever come to realize that ChatGPT could output Mermaid diagrams? Thanks for sharing this.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay