← All articles
Techniques5 min read

Chain-of-Thought Prompting

Making AI reason step by step before answering. One technique that dramatically improves accuracy on hard problems.

The problem it solves

When you ask an AI a complex question directly, it often jumps to an answer without working through the problem — and gets it wrong.

This happens because LLMs generate tokens sequentially. If they output the answer immediately, they haven't "thought" through the problem — they've just predicted what the answer looks like.

Chain-of-thought prompting forces the model to reason through steps before arriving at a conclusion. The intermediate reasoning improves the final answer.

How to use it

Add one of these phrases to your prompt:

"Think step by step"

"Walk me through your reasoning"

"Before answering, reason through this carefully"

"Let's work through this step by step"

That's it. The model will show its reasoning, and the final answer will be more accurate.

Prompt
I need to decide between [option A] and [option B] for my business. Think step by step through the pros, cons, and tradeoffs of each option, then give me your recommendation with your reasoning.

---

I have [situation/problem]. Before giving me your answer, walk me through how you're thinking about this — what factors matter, what the tradeoffs are, and then your recommendation.

When it helps most

Chain-of-thought helps most on tasks that require reasoning:

**Business decisions** — Should I expand to this market?

**Problem-solving** — Why is my ad not converting?

**Analysis** — What's the strongest strategy given these constraints?

**Math and logic** — Any calculation or logical deduction

For simple tasks like "write a tweet," chain-of-thought is unnecessary and slows you down.

Few-shot chain-of-thought

For maximum effectiveness, you can provide examples of the reasoning process you want — not just ask for reasoning, but show it.

"Here's an example of how I want you to analyze a business decision: [paste example analysis]. Now apply the same approach to [new problem]."

This is called few-shot chain-of-thought and produces consistently high-quality reasoning on structured problems.

Takeaway

"Think step by step" is one of the highest-leverage phrases in AI. Use it anytime the answer requires reasoning, not just recall.