Advanced reasoning prompts: self-consistency, tree of thoughts and ReAct

Chain of thought asks the AI for one line of reasoning. Advanced techniques go further: self-consistency asks several times and takes the most common answer; tree of thoughts explores several paths and drops the weak ones; ReAct mixes reasoning with actions such as searching or calculating.

Everyday analogy

Solving a puzzle as a team: ask three friends and go with the majority (self-consistency), sketch several routes on a map and cross out the dead ends (tree of thoughts), or think, look something up, then think again (ReAct).

Example

Planning a 3-day trip: a tree-of-thoughts prompt asks for three itinerary ideas, scores each one for cost and travel time, drops the weakest two, and develops the best one day by day.

ProblemIdea A · 6/10✕droppedIdea B · 9/10Idea C · 4/10✕droppedStep 1Step 2
Tree of thoughts: explore several ideas, score them, drop the weak ones and develop the best.
TechniqueHow to askBest for
Role prompting"You are a career counsellor…"Expert tone and focus
Constraint prompting"Under 100 words, no jargon, 5 bullets"Controlling length and format
Self-consistencyAsk for several independent solutions, then the most common answerMaths, logic, reliability
Tree of thoughtsGenerate options, score them, drop weak ones, expand the bestPlanning and complex decisions
ReAct (reason + act)Think, call a tool (search, calculator), then continueAgents that need fresh facts

Prompts to copy

Self-consistency:
Solve this three separate times, each with fresh reasoning.
Then tell me which answer appeared most often, and why.

Tree of thoughts:
Suggest 3 different approaches to [problem].
Score each from 1 to 10 for [cost, time, risk].
Drop the weakest two, then develop the best one step by step.

ReAct (for tools that can search):
Think step by step. When you need a fact, search for it first,
show what you found, then continue reasoning.

Note: today's reasoning models (with a built-in "thinking" mode) do much of this automatically. These prompts still help with everyday chat models, and for double-checking important answers.

Try it yourself

About 15 min

Try self-consistency and tree of thoughts

  1. Give an AI chatbot a tricky riddle using the self-consistency prompt from this lesson.
  2. Plan a weekend with the tree-of-thoughts prompt.
  3. Compare with the answers you get from a plain prompt.

What you should see: More careful, better-reasoned answers, especially for puzzles and plans.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectPrompt lab: build a prompt pack for your real workAbout 90 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.