Chain-of-Thought prompting follows one reasoning path. Tree of Thoughts (ToT) goes further: it asks the AI to generate multiple distinct reasoning branches, evaluate each one, and continue down the most promising path — like a chess player thinking several moves ahead before committing to a move.
The Chain-of-Thought technique we covered in Topic 1 is linear: the model reasons step-A → step-B → step-C → answer. This works beautifully for problems with one clear logical path. But many real problems are not like that. Business strategy decisions, creative writing plot choices, software architecture trade-offs — these all benefit from exploring multiple options before committing.
Tree of Thoughts was formalised in a 2023 paper by Yao et al. The key insight is to treat problem-solving as a search through a tree of possible thoughts, where the model can: (1) generate several candidate next-steps, (2) evaluate the promise of each, and (3) select the best branch to continue. In practice, you can implement a simplified version of ToT entirely through prompt design, without any special infrastructure.
A Tree of Thoughts prompt does three things:
The evaluation step is what separates ToT from simple brainstorming. You are not just asking for ideas — you are asking the model to act as a critic and selector, not just a generator.
Plain CoT can tunnel-vision on the first reasonable-looking path. If that path leads to a dead end, the model commits to it anyway rather than backing up and trying something else. For problems with multiple viable approaches — like choosing a business strategy, debugging a complex system, or writing a persuasive argument — this tunnel-vision is a real limitation.
ToT prompting forces the model to consider the problem landscape before committing. The result is more creative, more balanced, and often more correct outputs.
Here is a complete example. The task is choosing a marketing strategy for a product launch:
You are a marketing strategist. A new productivity app is launching next month.
Budget: £5,000. Target audience: freelancers aged 25-40 in the UK.
Consider three distinct marketing approaches:
A) Content marketing — blog posts, SEO, YouTube tutorials
B) Paid social advertising — targeted LinkedIn and Instagram ads
C) Partnership / affiliate marketing — deals with productivity influencers
For each approach:
1. Describe the core execution plan (3-4 sentences)
2. List the main risks
3. Estimate expected reach and cost efficiency on a scale of 1-10
Then select the best approach with a brief justification,
and write a concrete 4-week action plan for it.
This single prompt implements ToT: generate three branches (A, B, C), evaluate each (risks + score), then develop the winner. No special tools required.
A powerful ToT variation is the "expert panel" prompt — where you ask the model to simulate multiple experts each proposing their own approach:
Imagine three experts are answering this question:
"How should a solo developer price a B2B SaaS tool?"
Expert 1 is a venture-backed startup founder who prioritises growth.
Expert 2 is a bootstrapped indie hacker who prioritises profitability.
Expert 3 is a pricing consultant who focuses on value-based pricing theory.
Each expert should:
- State their recommended pricing model and price range
- Give the top two reasons for their choice
- Acknowledge the main weakness of their approach
After all three have spoken, synthesise a final recommendation that
takes the best of each perspective.
The synthesis step at the end is key — it turns three divergent opinions into one actionable recommendation.
Take a decision you are currently facing — at work, in a project, or in your personal life. Write a ToT prompt with three named approaches, each evaluated on two criteria of your choice. Compare the model's recommendation to your own instinct.
Try the "expert panel" variant on a topic where different viewpoints genuinely matter — for example, remote-work policy, curriculum design, or investment strategy. Write the prompt, run it, and evaluate whether the synthesis is better than any single expert's view.
Use ToT for a creative writing challenge: ask the model to outline three different plot directions for a story you are writing, score each for tension and originality, then develop the winner into a full scene.
Sign in to join the discussion and post comments.
Sign inPrompt Engineering for Content & Copywriting
Write blogs, ads, emails, and social media content ten times faster with AI. 13 practical tutorials on prompt engineering for content creators and copywriters.
Prompt Engineering for Developers
Use AI as your coding co-pilot. 18 tutorials on writing prompts to generate clean code, debug faster, write tests, build APIs, and ship better software.
Prompt Engineering for Data Science & Analytics
Supercharge your data workflows with AI. 15 practical tutorials on using prompt engineering for data cleaning, EDA, machine learning, SQL, visualisation, and more.
Foundations of Prompt Engineering
The must-know basics of prompt engineering. Learn what prompts are, how AI models read them, and how to write clear instructions that get great results.
Prompt Engineering for Specific AI Tools
Tool-by-tool mastery — deep dives into ChatGPT, Claude, Gemini, GitHub Copilot, Midjourney, Stable Diffusion, and more. Learn the exact prompting techniques each platform rewards.
Prompt Engineering for Image Generation
Turn words into stunning visuals. Master AI image generation tools like Midjourney, DALL·E 3, and Stable Diffusion with 18 focused tutorials — from first prompt to full brand identity.