Chain-of-thought walks one path. But hard problems — planning, strategy, puzzles — rarely have one obvious path. Tree-of-thought prompting makes the AI explore several branches, evaluate each, prune the weak ones, and expand the best — thinking less like a calculator and more like a chess player.
Born as a research technique, it translates beautifully into normal chat once you know the patterns. This guide covers how it differs from the techniques you already know, three copy-paste ToT patterns, and when a tree beats a chain. Guide #14 of the Prompt Engineering roadmap.
Chain vs Jury vs Tree — Know Your Tools
The key difference from self-consistency: there, the runs are independent and you count votes. In a tree, the branches are deliberately different approaches, and evaluation — not voting — picks the winner. Exploration plus judgment.
3 Chat-Friendly ToT Patterns
Where Trees Beat Chains
- Planning with trade-offs: launch strategies, study plans, project roadmaps — where the first idea is rarely the best idea
- Puzzles & constraint problems: scheduling, packing, “arrange X so that Y” — where wrong early moves doom the whole chain
- Creative strategy: naming, campaign angles, story plots — explore wide before committing deep
- Architecture & design decisions: “3 ways to structure this app/database/essay” with explicit evaluation criteria
When a Tree Is Overkill
- One-method problems: a percentage calculation has no branches worth exploring — use CoT
- Simple tasks: rewrites, lookups, formatting — a tree just burns tokens
- When you already know the approach: exploration is for uncertainty; if the path is clear, walk it
Honest Limitations
- Token hungry: exploring 3 branches costs roughly 3× a chain — reserve it for decisions that matter
- Self-scored branches: the AI evaluates its own ideas; scores are useful signals, not truth. Sanity-check the winner (or make the AI play devil’s advocate against it)
- Long outputs: use “one line per branch” in early rounds and expand only the survivor — that’s what keeps trees readable in chat
Frequently Asked Questions
Making the AI explore several different approaches to a problem, evaluate each against criteria, discard the weak ones, and fully develop the best — exploring like a chess player instead of walking one line of reasoning.
CoT follows one reasoning path step by step. ToT generates multiple different paths, judges them, and can backtrack — better when the method itself is uncertain.
Self-consistency re-runs the SAME approach and takes a majority vote. Tree-of-thought deliberately generates DIFFERENT approaches and picks by evaluation, not voting.
Yes — the research version uses code to manage branches, but the explore-evaluate-expand loop works in plain chat. Pattern 1 in this guide is a single copy-paste prompt.
Three is the sweet spot — enough diversity to matter, few enough to compare honestly. Go to five only for genuinely open creative exploration.
‘Give me options’ stops at listing. ToT adds the crucial second half: explicit evaluation against YOUR criteria and full development of the winner — options plus judgment.
Explore wide. Prune hard. Commit late. 🌳
Next: ReAct Prompting — guide #15.




