merIDK / Diagram types / User journey map
Mermaid user journey map: example and syntax
User journey maps score each step of a task from a user's point of view, so you can see where the experience is good and where it hurts. Product and UX teams use them to decide what to fix first.
Open this example in the editor
Example code
journey
title Buying a coffee
section Order
Find shop: 4: Me
Queue: 2: Me
Order: 5: Me, Barista
section Drink
Wait: 3: Me
Sip: 5: Me
Result
journey
title Buying a coffee
section Order
Find shop: 4: Me
Queue: 2: Me
Order: 5: Me, Barista
section Drink
Wait: 3: Me
Sip: 5: MeSyntax quick reference
- Each step:
Task name: score: Actor1, Actor2. - Scores run from 1 (bad) to 5 (good).
- Group steps with
section.
How to use it
- Open the example in the editor, or paste your own Mermaid code.
- Edit the code on the left. The preview updates as you type, and errors point to the line.
- Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.