Skip to content
Agentic Levels
Start hereLevelsTracksPromptsAbout
Get my levelGet my level

  • Start hereYour first useful task with AI.
  • Level quiz8 questions. No AI needed.
  • Fluency ScoreYour Level and a score, from your own AI.

  • LevelsThe 11 levels, in order.
  • LessonsShort lessons, filter by level.
  • TracksGuided paths by tool, role or goal.
  • Set up your AI tool
  • Starter packFree files that help AI remember.

  • PromptsReady prompts to copy and adapt.
  • ChatGPT vs Claude vs GeminiPick the right one for the job.
  • How-tos
  • ReferenceCommands for Claude Code, Codex, Antigravity.
  • ResourcesHand-picked reading and tools.

  • Your progress
  • Your next moveAn interview that picks your next skill.
  • Your next lessonsThe next lessons at your level.
  • Updates

  • Pricing
  • About
  • FAQ & Feedback
  • Work with us
  • How we handle your data
Sign inPreferences
AboutPricingHow-tosPromptsStarter packMy stackHow we handle your data

© 2026 Fuentes Studio

PrivacyTermsRefundsAccessibilityAI content policyCredits
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

←Claude Fundamentals
  1. Tracks
  2. ›Claude Fundamentals: Module 3
  3. ›Mermaid Artifacts: flowcharts and diagrams from text
2

Level 2 · Lesson 22 of 50 · Free

Mermaid Artifacts: flowcharts and diagrams from text

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.

Before you start

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.

The idea

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.

Worked example

Before and after

Without this, you map a refund approval process by drawing five boxes in slide software and realigning arrows three times into a crooked chart. With Claude, you write the steps as sentences and a clean, properly connected flowchart renders in seconds.

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.

Try it (9 min)

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

  • A rendered flowchart appeared in the Artifact panel, with boxes connected by arrows
  • The diagram shows the 5-day branch and the more-than-5-days branch as separate paths
  • Every path ends at the decision email, matching the described process
  • After your add-a-step request, the 'add to team calendar' step appears in the right place
  • The diagram re-flowed cleanly when the step was added, with no boxes left disconnected
  • Describing the process out of order; list the steps in sequence so the arrows connect the way you expect
  • Leaving decision points vague; spell out the 'if this, then that' branches or the diagram guesses the logic
  • Trying to learn Mermaid syntax yourself; you do not need to, plain-English steps are enough
  • Cramming a 30-step process into one diagram; break large processes into a few smaller, readable diagrams
  • Exporting a screenshot instead of the diagram; use the panel's Export or Copy control (or ask Claude for the diagram's text) so you can re-edit it later by changing the words

When this breaks

  • Breaks when your description skips the decision logic because the diagram only knows the branches you name, so an 'it depends' step with no stated condition turns into a straight line that misrepresents the process.
  • Breaks when the process is too large for one diagram because everything crammed onto one canvas becomes unreadable, so a sprawling workflow needs splitting into linked smaller diagrams instead.

AI can help with this

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.'

Try it from memory

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.

Key takeaways

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.

  1. 1Describe a process in plain English and Claude renders the flowchart; you never learn Mermaid syntax.
  2. 2Spell out every 'if this, then that' branch so the diagram captures the real logic.
  3. 3List steps in sequence so the arrows connect the way you intend.
  4. 4Split large processes into linked smaller diagrams instead of one unreadable canvas.
  5. 5Change the process by asking; the diagram re-flows, no manual box-nudging required.

Go deeper

  • Anthropic: What are Artifacts and how do I use themsupport.claude.com (opens in a new tab) ↗
Up nextReact Artifacts: when to use them (and when not to)→

Was this helpful?

← Back to Claude Fundamentals