Back to Blog

8 Mermaid Flowchart Examples You Can Copy and Change

November 7, 2026by TypeFire
mermaid flowchart examplesmermaid examplesmermaid flowchartflowchart examplesmermaid diagram examplesprocess flowchart markdownmermaid templates

The fastest way to learn Mermaid is to change a diagram that already works. Here are eight from real work, each with its code, the drawing it makes and the edit most people make first.

Paste any of them into the free Mermaid live editor and start changing labels. For the rules behind them, see Mermaid flowchart syntax.

The short version

  • Copy, paste, rename. Each block below is a complete diagram.
  • LR or TD on the first line sets the direction.
  • {Question?} makes a decision; label its arrows -- Yes -->.
  • [(Text)] draws the cylinder people use for "done" or a database.

1. Expense approval

flowchart LR
  A[Expense submitted] --> B{Over $500?}
  B -- No --> C[Manager approves]
  B -- Yes --> D[Finance reviews]
  D --> E{Approved?}
  E -- Yes --> C
  E -- No --> F[Sent back with a note]
  C --> G[(Paid on Friday)]
An expense approval: small claims go to the manager, large ones to finance first

Change first: the threshold in {Over $500?} and who approves.

2. User onboarding

flowchart TD
  A(Signs up) --> B[Welcome email]
  B --> C{Opened in 2 days?}
  C -- Yes --> D[Setup guide]
  C -- No --> E[Reminder email]
  E --> D
  D --> F[First project]
  F --> G(Active user)
Onboarding with a reminder for people who don't open the first email

Change first: the wait in {Opened in 2 days?}. Round brackets give the start and end soft corners.

3. Incident response

flowchart TD
  A[Alert fires] --> B{Customers affected?}
  B -- Yes --> C[Open an incident]
  B -- No --> D[Log a ticket]
  C --> E[Post a status update]
  E --> F[Fix and verify]
  F --> G[Write the review]
  D --> F
An incident runbook: customer-facing alerts get a status update, the rest get a ticket

Change first: add a step between "Open an incident" and the status update, like C --> H[Page the owner].

4. Deploy pipeline

flowchart LR
  A[Push] --> B[Run tests]
  B --> C{Passed?}
  C -- No --> D[Fix the build]
  D --> A
  C -- Yes --> E[Deploy to staging]
  E --> F[Smoke test]
  F --> G[(Production)]
A deploy pipeline with a loop back when tests fail

Change first: add a manual approval before production: F --> H{Approved?} -- Yes --> G.

5. Refund policy

flowchart TD
  A[Refund request] --> B{Within 30 days?}
  B -- Yes --> C{Item returned?}
  B -- No --> D[Offer store credit]
  C -- Yes --> E[Refund the card]
  C -- No --> F[Send a return label]
  F --> C
A refund policy with two checks and a loop until the item comes back

Change first: the window in {Within 30 days?}. Put this one in your support notes so everyone answers the same way.

6. Support ticket triage

flowchart LR
  A[New ticket] --> B{Billing question?}
  B -- Yes --> C[Send to billing]
  B -- No --> D{Urgent?}
  D -- Yes --> E[Page the on-call]
  D -- No --> F[Add to the queue]
  C --> G[(Reply sent)]
  E --> G
  F --> G
Ticket triage: billing, urgent and everything else, all ending in a reply

Change first: add your own queue, like B -- Bug --> H[Send to engineering].

7. A Git branch

gitGraph
  commit id: "Start"
  branch feature
  checkout feature
  commit id: "Add search"
  commit id: "Tests"
  checkout main
  commit id: "Hotfix"
  merge feature
  commit id: "Release"
A feature branch, a hotfix on main, then the merge and a release

Change first: the commit names. id: "..." is the label each dot gets.

8. A launch week

timeline
  title Launch week
  Monday : Freeze features
  Tuesday : Final testing
  Wednesday : Press kit out
  Thursday : Launch
  Friday : Read the numbers
A five-day launch timeline

Change first: add a second item to a day: Thursday : Launch : Post the announcement.

Keep them in your notes

These diagrams are most useful next to the notes they describe: the runbook beside the incident flowchart, the policy beside the refund flow. In TypeFire for Mac they draw right in the note, open full window to zoom, and a box can link to another note. See diagrams in TypeFire, or try every example free in the live editor.

Mermaid flowchart text becomes a drawn ticket triage flowchart with two decisions
Text on the left, the drawn flowchart on the right.
In their words

Loved by people who type all day.

Unprompted reactions from users, in their own words.

Exactly what macOS has been needing: blazing fast, beautifully designed, and it respects your privacy without forcing a subscription.
Physician
I use TypeFire every single day, all day long. I love it.
Works at Apple
The way you've handled the AI integrations is very elegant. A great implementation.
Mac user
TypeFire is the absolute replacement for TextExpander.
Works at Apple
I love your app. Love it. The only one that does what I want it to do.
Mac user
I'm loving the date math. Amazing, love it.
ICU doctor
It instantly imported my 502 snippets. Flawless import.
Moved over from TextExpander
Incredibly lightweight. It has quickly become a go-to tool in my daily workflow.
Physician
Love the app, and your development pace rocks.
Longtime user
This app is AWESOME! And I definitely want to buy the Pro version.
Free user
Fantastic. Thank you for the very fast fix.
EU keyboard user
This app has so much potential. I'm really grateful that I found it.
Mac user

Used by people at

AppleRed HatPalo Alto NetworksHubSpotIndeedSentryFreshworksTrustpilotBumbleFarfetchSaint-GobainfoodpandaMcKinseyAccentureIntuitInstacartRakutenDow JonesHearstRokuxAINuroGitGuardianMeltwaterDevRevWoltAirwallex

Company names are places where our users work. They do not imply endorsement or affiliation.