Skip to content

1.7 Tree-of-Thought & Prompt Chaining

Complex decisions

The problem has multiple viable approaches and you need to compare them before committing.

Multi-step projects

The task is too large for one prompt: a grant proposal, a literature review, an experimental design.


Regular prompting follows a single line of reasoning. Tree-of-Thought (ToT) asks the AI to branch out, consider several paths, evaluate each one, and prune the weak options before continuing. Think of it as a panel of experts debating in your chat window.

The original research by Yao et al. (2023) showed dramatic improvements: on a mathematical reasoning task, chain-of-thought prompting scored 4% while Tree-of-Thought scored 74%.

You do not need to write code to use it. Dave Hulbert created a simplified version that works in any chat interface.

The simplest and most tested version. Paste this before your question:

Prompt: Three experts (Hulbert)
Imagine three different experts are answering this question.
All experts will write down 1 step of their thinking, then
share it with the group. Then all experts will go on to the
next step, etc. If any expert realises they're wrong at any
point then they leave. The question is:
[YOUR QUESTION HERE]

Prompt chaining splits a big task into focused steps. You run one prompt, take its output, and feed it into the next prompt. Each link in the chain has a single clear job.

This works better than one long prompt because:

  • The AI gives its full attention to one subtask at a time
  • You can check and correct the output at each step
  • If something goes wrong, you only need to redo that one step
  1. Break the task into subtasks - Each subtask should have one clear goal. If you are describing two goals in a single prompt, split it.

  2. Run each subtask as its own prompt - Give the AI one focused instruction. Include relevant output from the previous step as context.

  3. Check the output before moving on - Do not blindly feed one step’s output into the next. A small error early in the chain will compound through every following step.

  4. Carry forward what matters, summarise the rest - Pass key decisions and data to the next step. Summarise verbose reasoning rather than copying it in full.

This four-step chain turns a rough proposal into reviewed, structured text. Run each prompt separately, using the previous output as input for the next.

Prompt: Chain step 1 - Outline
I am writing a grant proposal for [NWO Open Competition / Veni /
Horizon Europe]. My research area is [topic].
Here is my core research idea:
[PASTE YOUR IDEA]
Create a detailed outline for this proposal. For each section,
list the key points that must be covered and the approximate
word count. Flag any sections where my idea needs more detail.

Tree-of-Thought and prompt chaining work well together. Use ToT within a chain when a particular step involves a difficult decision:

  1. Chain step 1: Define your research question (simple prompt)
  2. Chain step 2: Choose your methodology (use ToT here - ask three expert perspectives to evaluate different methodological approaches)
  3. Chain step 3: Draft the methods section based on the chosen approach (simple prompt)
  4. Chain step 4: Review the full draft (use ToT here - multiple reviewer perspectives)

The rule of thumb: use a simple prompt for straightforward steps, and switch to Tree-of-Thought when the step involves judgement or trade-offs.


  • Simple tasks - If the AI can answer well in one go, do not add complexity.
  • Tight deadlines - Both techniques add rounds of interaction. Sometimes a single well-crafted prompt is faster and good enough.
  • Short questions - “What is the Shannon diversity index?” does not benefit from three experts debating.

Tree-of-Thought is most valuable when the problem has multiple valid approaches that need comparison. Prompt chaining is most valuable when the task has multiple distinct stages that benefit from focused attention.



Based on materials from Yao et al. (2023) - Tree of Thoughts, Dave Hulbert - Simplified ToT, Prompt Engineering Guide - ToT, Prompt Engineering Guide - Chaining, and Anthropic - Chain Complex Prompts.

Have a chaining workflow that works well for your research? Share it with RSO so we can add it to the library.