Decision tree

Updated

A decision tree is a branching diagram that starts with one decision and spreads out into the options available, the events that may follow and the outcome of each path. Laying the choices out as a tree makes it easier to compare them, explain a recommendation and see what each option depends on.

Parts of a decision tree

  • Root node: the decision or question the tree starts from.

  • Decision node: a point where you choose between options, drawn as a square.

  • Chance node: a point where the result is uncertain, drawn as a circle, with a probability on each branch.

  • End node: the final outcome of a path, drawn as a triangle.

  • Branches: the lines that connect the nodes, each labeled with an option or a result.

How to make a decision tree

  1. Write the decision at the root.

  2. Add a branch for each option.

  3. Add what happens next: further decisions, or chance nodes with their possible results.

  4. Estimate values. Where you can, add costs, payoffs and probabilities.

  5. Compare the paths. Multiply each payoff by its probability and add them up to get the expected value of an option, then choose.

When to use a decision tree

Decision trees suit choices with a few clear options and consequences that can be described: whether to build or buy software, which supplier to choose, or how to handle a support request. They are also used to write down rules so that everyone handles the same case in the same way, and in machine learning, where a tree is learned from data to classify or predict.

Example

Emma runs a bakery and must decide whether to open a second shop. One branch is "open now", with a chance node for strong or weak demand. The other is "wait a year". With rough numbers on each end node, the tree shows that opening now has the higher expected value but a much larger loss if demand is weak, so she chooses a smaller location to limit that risk.

Decision tree vs flowchart

A flowchart describes a process that already exists and may loop back. A decision tree only branches forward and compares options that have not been chosen yet. A mind map also branches from a center, but it organizes ideas and does not weigh outcomes. For ranking many options at once, use a priority matrix. For a longer guide with more examples, read Decision tree diagram.

Decision trees in MockFlow

Type the decision you face and the AI decision tree generator drafts the branches on a MockFlow board, where your team can adjust options and add notes. For simple yes or no logic, the decision flowchart skill is a quick start. More generators are listed on the AI diagram generator page.

MockFlow

Turn ideas into plans on one board.

No account needed
mockflow.com/new

Open a blank board in one click. Boards last 24 hours, so sign up to keep one.

MCPBrainstorm with MockFlow MCP

Add MockFlow as an MCP connector in Claude, Cursor, or any MCP-compatible AI assistant to generate flowcharts, mindmaps, architecture diagrams, and 16 types of visualizations.

Desktop App MCP Powerful
CLI Web MCP Developer
Web MCP Easiest

Built into the MockFlow Desktop App. AI creates visuals directly on your open canvas — no URLs, no waiting.

1
Open Desktop App → open a MockFlow project
2
In Claude Code / Cursor, run:
claude mcp add --transport http -s user mockflow-ideaboard http://localhost:21193/mcp
3
Ask: "Create a flowchart for..."

Best for: Designers, product teams, daily MockFlow users.

Download Desktop App →

Install from npm, log in via browser (OAuth), and boards are saved to your MockFlow account.

1
npm install -g @mockflow/ideaboard-mcp
2
mockflow-ideaboard-mcp login
3
mockflow-ideaboard-mcp

Best for: Developers using Claude Code, Cursor, or VS Code Copilot.

npm Package →

Add MockFlow as a connector in Claude.ai or ChatGPT. No installation. A new board is created and you get a shareable URL.

1
Open Claude.ai → Settings → Connectors
2
Paste this URL, then click Connect and sign in to MockFlow: https://app.mockflow.com/ideaboard/connector/mcp
3
Ask Claude to create a flowchart — done!

ChatGPT: use https://app.mockflow.com/ideaboard/mcp and save its boards to your account to keep them

Best for: Managers, marketers, anyone using Claude.ai or ChatGPT in the browser.

Welcome back
Don't have an account? Sign up

Faster ways in

Sign in with an account you already use.