Skip to content

Tree of Thoughts (ToT) prompting

Tree of Thoughts (ToT) prompting is a technique where you ask the AI to generate multiple reasoning paths (branches), evaluate them, and then expand on the most promising ones. Unlike “Chain of Thought” (which follows a single linear path), ToT allows the AI to backtrack, self-correct, and explore different possibilities before deciding on a final answer. Below are clear examples of how to use Tree of Thoughts prompting in a chat interface to simulate this complex reasoning process.


1. The “Three Experts” Method (General Problem Solving)

This is one of the most effective ways to force the AI to debate itself and prune bad ideas.

Prompt idea

“Imagine three different experts are answering this question.

All three experts will write down 1 step of their thinking, and then share it with the group.

Then all experts will go on to the next step, etc.

If any expert realizes they are wrong at any point then they leave.

The question is: [Insert Complex Question here, e.g., ‘How can we increase user retention for a niche gardening app by 20% in 3 months?’]”

Why it works: It forces the model to create distinct “personas” that check each other’s work, naturally filtering out weak logic.

Example Template

The Problem: [Insert your problem here]

The Panel: Imagine three experts are solving this.

Expert A ([Role 1]): Focuses strictly on [Constraint A: e.g., Cost, Speed, Ethics].

Expert B ([Role 2]): Focuses strictly on [Constraint B: e.g., Quality, Safety, Innovation].

Expert C ([Role 3]): Focuses on [Constraint C: e.g., User Experience, Legal, Long-term].

The Procedure:

Brainstorm: Each expert suggests 1 solution.

Critique: Each expert critiques the others' solutions based on their specific focus.

Synthesize: The experts collaboratively create one final solution that addresses the major concerns of all three.

2. Creative Writing: Plot Development

In this scenario, you use ToT to avoid cliché endings by exploring multiple narrative arcs simultaneously.

Prompt:

I am writing a sci-fi mystery story. 
The protagonist just found a hidden door in their spaceship 
that wasn't on the blueprints.

Step 1: Generate 3 distinct 'branches' for what could happen next.

Branch A: A horror/thriller direction.

Branch B: A psychological/hallucination direction.

Branch C: A political conspiracy direction.

Step 2: Evaluate each branch based on: Originality, coherence,
 and potential for character development. Assign a score (1-10) to each.

Step 3: Select the winning branch and write the next scene.

Why it works: It explicitly separates the generation of ideas from the evaluation of ideas, preventing the model from locking into the first predictable path it calculates.

See also  2026 List of Useful AI Prompts & Strategies


3. Strategic Business Decision (Risk Analysis)

Use this when you need a robust plan that considers failure points.

Prompt:

I need to decide whether to launch my product in Market A (high competition, high volume) 
or Market B (low competition, low volume).

Perform a Tree of Thoughts reasoning process:

Root: Analyze the immediate pros/cons of both markets.

Branching (Scenario Planning): For each market, imagine a 'Best Case' 
and 'Worst Case' scenario over 1 year.

Pruning: Look at the 'Worst Case' scenarios. Which one is fatal to the business? 
Discard that path if the risk is too high.

Conclusion: Based on the remaining branches,
 which market provides the best risk-adjusted return?"

Why it works: It forces the AI to look ahead (simulation) rather than just stating current facts.


Summary: The Universal ToT Template

You can adapt this template for almost any complex task:

Topic: [Your Topic]

Task:

Brainstorm: Generate 3 distinct approaches/perspectives to this problem.

Evaluate: Critique the pros and cons of each approach. Identify the flaws.

Select: Choose the most promising approach (or combine the best parts of two).

Expand: Develop the selected approach into a comprehensive solution.

More examples

Tree of Thoughts for General Problem Solving example: learning Japanese

I want to learn the basics of conversational Japanese in 30 days.
The Experts:
-​The Academic Linguist: 
Focuses on grammar rules, perfect syntax, and writing systems (Kanji).
-​The 'Street Smart' Polyglot: 
Focuses on pure immersion, common phrases, 
and ignoring grammar mistakes to speak fast.
​-The Memory Athlete: 
Focuses on mnemonics, spaced repetition systems (Anki),
 and cognitive optimization.
The Process:
​-Step 1: The Linguist proposes a syllabus.
​-Step 2: The Polyglot shreds the syllabus, 
removing anything that isn't essential for speaking immediately.
-​Step 3: The Memory Athlete optimizes the remaining schedule for maximum retention.
Output: 
A day-by-day 30-day plan that is grammatically sound (Linguist), 
practical (Polyglot), and stickier (Memory Athlete).

ToT example: crisis handling

Situation: A video of our customer support agent being rude 
to an elderly client has gone viral. We need a response strategy.

The Experts:

The Empath (PR Specialist): Wants to apologize profusely, show heart,
and regain public trust immediately.

The Shield (Legal Counsel): Wants to admit no liability, avoid lawsuits,
 and say as little as possible.

The Fixer (Operations Director): Wants to focus purely on the new training programs 
and policy changes to ensure it never happens again.

The Process:

Step 1: Each expert writes a draft public statement.

Step 2: The Legal Counsel ruthlessly edits the Empath's statement to remove liability. 
The Empath edits the Legal statement to make it sound human.

Step 3: The Fixer adds concrete steps to the final best draft.

Final Output: The final statement and a bullet-point list of internal actions.

ToT Example: Creative Writing: Plot Development

I am writing a sci-fi mystery story. The protagonist just found a hidden door in their spaceship that wasn't on the blueprints.

Step 1: Generate 3 distinct 'branches' for what could happen next.

Branch A: A horror/thriller direction.

Branch B: A psychological/hallucination direction.

Branch C: A political conspiracy direction.

Step 2: Evaluate each branch based on: Originality, coherence, and potential for character development. Assign a score (1-10) to each.

Step 3: Select the winning branch and write the next scene.

ToT example: planning a trip to Italy

I am planning a 7-day trip to Italy with my partner. 
I like to see every museum and historical site. 
My partner likes to sleep in and sit at cafes.

The Experts:

The Scheduler (Me): Wants an itinerary packed with value. Fear of missing out (FOMO).

The Chiller (Partner): Wants zero alarm clocks and 'vibes' only.

The Travel Agent: Focused on logistics, travel times between cities,
 and avoiding burnout for both parties.

The Process:

Brainstorm: Create a draft itinerary for Day 1 and Day 2.

Conflict: The Chiller points out where the Scheduler's plan is exhausting. 
The Scheduler points out where the Chiller's plan is boring/wasteful.

The 'Golden Rule' Compromise: The Travel Agent proposes a 'One Big Thing per Day' rule.

Final Output: A revised 7-day itinerary using this compromise.

Leave a Reply

error: Content is protected !!