Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
All diagram types

Mermaid User Journey Syntax & UX Examples

A user journey map scores each step from 1 to 5 and names who is involved. The score is the point of the diagram.

Examples

Copy an example, or open it in the live editor with this diagram already loaded.

Checkout satisfaction

Scores run from 1 to 5. A low score is the step the team should look at first.

journey
    title Checkout
    section Browse
      Search: 5: Shopper
      Compare: 4: Shopper
    section Pay
      Enter card: 2: Shopper
      Confirm: 4: Shopper, Checkout
    section After
      Receipt email: 5: Shopper, Email

First-week onboarding

Sections are the phases. Several actors can share a task; separate them with commas.

journey
    title First week
    section Invite
      Open invite: 4: New hire, Admin
      Create password: 3: New hire
    section Setup
      Install tools: 2: New hire
      First task: 3: New hire, Mentor
    section Settle
      Ship a change: 5: New hire

Support conversation

A support journey where the low score is the wait, not the resolution.

journey
    title Support request
    section Ask
      Find the form: 3: Customer
      Describe the issue: 4: Customer
    section Wait
      Wait for a reply: 1: Customer
    section Resolve
      Apply the fix: 4: Customer, Agent
      Confirm it worked: 5: Customer

What is a User Journey Map?

A Mermaid journey diagram is a satisfaction chart. title names the journey. section groups steps into a phase. Each task line is Task name: score: Actors, where the score is an integer from 1 (frustrating) to 5 (smooth) and the actors are the people in that step. The picture shows the ups and downs of the experience rather than system logic. Use it in a UX review. It does not replace a flowchart of the product's decisions.

When to use it

Use a journey map to find the painful steps in onboarding, checkout, or support. Use a flowchart to specify what the product does at each branch. Use a sequence diagram when the review is about service calls rather than how the step felt.

Edit this user journey map in the live editor, read the Mermaid cheat sheet, or compare it with Flowchart, Sequence Diagram and State Diagram.

Common Use Cases

  • •UX design - Map user experiences across product touchpoints
  • •Customer journey analysis - Identify pain points and satisfaction levels
  • •Onboarding flows - Visualize new user first-time experiences
  • •Service design - Document end-to-end service interactions
  • •Product planning - Prioritize improvements based on satisfaction scores

Syntax Quick Reference

ElementSyntaxDescription
Titletitle Journey NameJourney map heading
Sectionsection NameGroup related tasks
TaskTask name: score: actorsTask with satisfaction (1-5)
Score1-51 = worst, 5 = best satisfaction
ActorMe, CatPeople involved in the task

Syntax tips

  • •Each task is Task: score: Actor. The score is an integer from 1 to 5.
  • •section Name starts a phase. Tasks stay in that section until the next section line.
  • •List extra actors after the score, separated by commas: Confirm: 4: Shopper, Checkout.
  • •Keep task names short. The diagram plots a score, so the label only needs to identify the step.
  • •The vertical position is the score. A 1 sits at the bottom of the scale and a 5 sits at the top.

Common mistakes

Using a score outside 1 to 5, or a decimal.

Scores are integers from 1 through 5. Rewrite 0 as 1 and 4.5 as 4 or 5.

Forgetting the second colon, so the actor is read as part of the score.

The line needs two colons: Task name: 3: Actor.

Drawing product logic, branches, and error states as a journey.

A journey records satisfaction. Put the branching behavior in a flowchart or a state diagram.

Export Options

Journey maps are workshop artifacts. PNG drops cleanly into a slide; SVG is better in a research write-up. Free PNG exports include a watermark.

Got Mermaid code from ChatGPT? Paste it here to render and export instantly.

Get the Free Mermaid Syntax Cheat Sheet

Free Mermaid Syntax Cheat Sheet

All 21 diagram types in one PDF reference.

Frequently Asked Questions

Ready to create your own user journey map?

Open the editor with this example pre-loaded and start customizing.

User Journey Map templates

Related Diagram Types

All diagram types