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.
| Technique | How to ask | Best 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-consistency | Ask for several independent solutions, then the most common answer | Maths, logic, reliability |
| Tree of thoughts | Generate options, score them, drop weak ones, expand the best | Planning and complex decisions |
| ReAct (reason + act) | Think, call a tool (search, calculator), then continue | Agents 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 minTry self-consistency and tree of thoughts
- Give an AI chatbot a tricky riddle using the self-consistency prompt from this lesson.
- Plan a weekend with the tree-of-thoughts prompt.
- 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.