Decision Tree Generator

Simple yes/no decision trees for any question

Ad placeholder (leaderboard)

A decision tree generator that builds a binary yes/no tree for a chosen domain and lets you walk it interactively to a final outcome. It is handy for chatbot logic mockups, routing demos, and explaining how rule-based decision flows work.

How it works

Pick a domain — support routing, loan approval, medical triage, or spam filtering — and a depth. The generator recursively builds a full binary tree: every internal node is a question drawn from the domain’s question bank, and every leaf at the chosen depth is filled with an outcome from the domain’s outcome list. Because each level branches into two, a depth-N tree has 2^N leaves.

You can walk the tree by answering Yes or No, descending one level per answer until you hit a leaf and see the outcome. A Back button steps up one level and Start over returns to the root. The tree is seeded for reproducibility, so the same settings reproduce the same tree, and Regenerate advances the seed.

Tips and example

Keep the depth modest — two or three — for a readable tree; depth five already produces 32 leaves. The full tree prints as an indented flowchart, for example:

Is the customer a paying subscriber?
Yes: Did the issue start in the last 24 hours?
    Yes: → Escalate to Tier 2
    No:  → Send self-help article
No:  → Close as resolved

Walk it to demo a routing flow, then copy the full tree as plain text for a spec or slide. Remember the questions and outcomes are illustrative samples, not a model trained on real data.

Ad placeholder (rectangle)