Describe a process in words, get a clean diagram
After this, you'll be able to describe a workflow, decision tree, or org chart in plain language. Claude produces a rendered Mermaid diagram you can export, with no boxes or arrows drawn by hand.
Complete SVG Artifacts: diagrams, icons, and visual outputs first; this lesson builds on that one by moving from drawn visuals to diagrams generated from text, and both depend on you being comfortable with visual Artifacts rendering in the panel.
A Mermaid Artifact turns a plain-English description into a rendered diagram. Describe a workflow, a decision tree, or an org chart in words, and Claude renders a clean visual you can export. Mermaid is a simple text language for diagrams, and you never learn it yourself; you say what connects to what, and Claude draws it.
The big payoff comes when the process changes. You tell Claude "add a review step after step 3" and the whole diagram re-flows cleanly, with no boxes re-aligned by hand.
In ChatGPT and Gemini: ChatGPT's code blocks preview Mermaid diagrams in the chat. We found no equivalent in Gemini, so check your account.
Now try it: send "Make a flowchart of this process as a Mermaid diagram: a customer submits a support ticket, support reads it, if it is a billing question route to finance, otherwise support handles it, and every ticket ends with a follow-up email." Then ask Claude to add a step and watch the diagram re-flow.
You describe the logic in plain English; Claude draws the diagram and re-draws it whenever the process changes.
Paste this into Claude
Make me a flowchart as a Mermaid diagram from this plain-English process. I do not want to learn any diagram syntax; just turn my description into a rendered diagram. Process: Approving a vacation request. 1. An employee submits a vacation request. 2. Their manager reviews it. 3. If the request is 5 days or fewer, the manager approves it directly. 4. If it is more than 5 days, it goes to HR for a second review. 5. HR either approves or denies it. 6. Either way, the employee gets an email with the final decision. Render the diagram in the panel so I can see the boxes and arrows. Then add one new step: after any approval, the request is added to the team calendar. Re-flow the whole diagram to include it.
What a good response looks like
A flowchart opened in the panel. Reading it top to bottom:
Employee submits request, then Manager reviews. A decision diamond asks "5 days or fewer?" - Yes: Manager approves. - No: HR second review, then a second diamond "HR approves?" with Approve and Deny paths. All paths join at "Employee gets decision email".
After your add-a-step request, "Add to team calendar" now sits between each approval and the email, on both approval paths. The deny path skips it.
Behind the scenes it is a short text description (called Mermaid code, which you never have to write), which Claude re-flowed when you asked for the change:
flowchart TD A[Employee submits request] --> B[Manager reviews] B --> C{5 days or fewer?} C -->|Yes| D[Manager approves] C -->|No| E[HR second review] E --> F{HR approves?} F -->|Yes| D F -->|No| G[Request denied] D --> H[Add to team calendar] H --> I[Email final decision] G --> I
Check yours against
Paste this into claude.ai, filling in the brackets: 'Make a flowchart as a Mermaid diagram from this process, no diagram syntax needed: [list your steps in order, spelling out any if-this-then-that branches]. Render it in the panel, then add [a new step] and re-flow the whole diagram.'
Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.
Before you look back, pick a process from your own work with at least one 'if this, then that' step. Write it in plain sentences the way you'd ask Claude to draw it.
One good answer: 'A parent emails the school. The office reads it. If it's about absence, it goes to attendance; otherwise the office replies. Every email gets logged.' If your branches each have their own outcome, you're there.
A Mermaid Artifact turns plain-English steps into a clean rendered diagram, and re-flows itself when the process changes. You describe the logic; Claude draws and re-draws the boxes.