How to Make Flowcharts in Microsoft Loop Using Mermaid Diagrams Easily 2026
By Impran M N
Rather than exporting static flowchart images from a separate design tool, you can write Mermaid.js code directly inside a Microsoft Loop page and have it render as a live, editable flowchart. This guide covers setting up the diagram block, defining node shapes, and connecting them into a working process map.
01Open the diagram code block
Move your cursor to a new line in your Loop page and type the /mermaid slash command to deploy the diagram script container.
02Set your flowchart orientation
Type flowchart TD for a top-down layout or flowchart LR for left-to-right at the top of your code block to define the diagram's direction.
03Define your nodes
Give each step a short identifier and use brackets or curly braces to style the text as rectangles, rounded blocks, or decision diamonds.
04Connect the nodes with arrows
Use arrow shorthand and vertical pipes to link your nodes together, adding labels for conditional paths where needed.
05Preview and share the flowchart
Toggle between code view and split-screen live preview to check your layout, then let Loop auto-sync the rendered diagram across your shared workspace.
Frequently asked questions
Do I need special software to build flowcharts this way?
No, Mermaid diagrams render natively inside Loop's editor, so you don't need a separate drafting tool.
Can I make decision diamonds in a Mermaid flowchart?
Yes, using curly brace syntax around a node's text renders it as a diamond shape suited for decision points.
What's the difference between flowchart TD and flowchart LR?
TD lays the flowchart out top-down, while LR arranges it left-to-right — the choice depends on which orientation fits your process better.
Will my flowchart update automatically for teammates?
Yes, since it's rendered live from code on a shared page, Loop syncs updates to the diagram across your team's shared channels.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



