Pullout | How to Use ChatGPT to Draw Diagrams in Just a Few Seconds

Step 1: Record Your Process

<aside> 📢

I like to use Wispr Flow for dictation especially for technical work.

👉🏼 Click the link here 👈🏼 to get a FREE MONTH of Wispr Flow Pro

</aside>


Step 2: Convert to Steps for ChatGPT

Upload the key steps to ChatGPT and ask for a Mermaid or PlantUML diagram.


Step 3: Generate the Mermaid Diagram

Here’s an example of what ChatGPT will generate:

sequenceDiagram
    participant Customer
    participant Website
    participant AccountManager
    participant PaymentGateway

    Customer->>Website: Sign Up
    Website->>Customer: Verify Email
    Customer->>Website: Log In
    Customer->>Website: Request Pricing
    Website->>AccountManager: Forward Pricing Request
    AccountManager->>Customer: Send Pricing Details
    Customer->>Website: Log In
    Customer->>Website: Add Items to Basket
    Customer->>Website: Checkout

    alt Pay on Account
        Customer->>Website: Select "Pay on Account"
        Website->>Customer: Confirm Order
    else Pay by Credit Card
        Customer->>PaymentGateway: Enter Credit Card Details
        PaymentGateway->>Website: Confirm Payment
        Website->>Customer: Confirm Order
    end

    Website->>Customer: Send Order Confirmation

<aside> 🐞

Getting errors when you paste your mermaid code?

Claude, ChatGPT, Grok they all make mistakes with mermaid when you start to get a little complex.

Checkout this Mermaid Prompt to help your LLM draw better diagrams. You will have less errors but LLMS will still make mistakes.

</aside>

Step 4: Import to Draw.io or Mermaid

You have two choices right here depending on your preference. Draw.io or Mermaid