Diagrams / Mermaid User Journey: Syntax & Examples

Mermaid User Journey: Syntax & Examples

Create a Mermaid journey diagram with stages, tasks, actors and scores. Read an example and understand what experience scores can and cannot show.

When to use User Journey Diagram

A Mermaid user journey diagram combines tasks, actors, and experience scores across stages. Use it to summarize research or organize a workshop discussion. Explain how the scores were chosen so readers can distinguish observed evidence from a working assumption.

Read the User Journey Diagram example

Diagram source

journey
    title Pele Editor User Journey
    section Create
      Open editor: 5: User
      Paste Mermaid code: 4: User
    section Review
      Check live preview: 5: User
      Fix syntax: 3: User
    section Share
      Export PNG: 5: User
      Add to docs: 5: User
The example follows a user from creating a diagram to reviewing and sharing it. A lower score points to a stage worth investigating; it does not explain the cause of friction by itself.

Syntax and interpretation

ConceptHow to apply it
SectionsGroup tasks into recognizable stages such as Discover, Try, and Use.
ScoresChoose values consistently and explain the scale. Avoid presenting subjective workshop estimates as measured conversion data.
ActorsList the people or roles involved in a task. Keep roles consistent across the journey.

Common questions

Should I include every click?

Use the level of detail needed for the experience question. A journey map is usually more useful when tasks reflect user goals rather than every interface action.