Chain of Thought in AI

From the AI Prompting cheat sheet · Advanced Prompting Patterns · verified Jul 2026

Chain of Thought

Guide step-by-step reasoning for complex problems

javascript
NAME: Step-by-Step Reasoning
PURPOSE: Break down complex problems into logical steps for better accuracy
TEMPLATE:
Let's solve this step-by-step.

Problem: [COMPLEX PROBLEM]

Please work through this systematically:
1. First, identify [KEY COMPONENTS]
2. Then, analyze [RELATIONSHIPS/DEPENDENCIES]
3. Next, consider [CONSTRAINTS/EDGE CASES]
4. Finally, synthesize [SOLUTION/CONCLUSION]

Show your reasoning at each step before providing the final answer.
EXAMPLE:
Let's solve this step-by-step.

Problem: Calculate the ROI of migrating from on-premise to cloud infrastructure

Please work through this systematically:
1. First, identify current costs and cloud costs
2. Then, analyze migration expenses and timeline
3. Next, consider risk factors and hidden costs
4. Finally, synthesize the 3-year ROI projection

Show your reasoning at each step before providing the final answer.
OUTPUT:
I'll work through this ROI calculation systematically.

**Step 1: Identifying Costs**
Current on-premise costs (annual):
- Hardware refresh: $500K every 3 years = $167K/year
- Data center: $200K/year
- IT staff (5 FTEs): $500K/year
- Total: $867K/year

Cloud costs (estimated annual):
- Compute (EC2): $300K/year
- Storage (S3): $50K/year
- Network: $40K/year
- Total: $390K/year

**Step 2: Migration Analysis**
One-time migration costs:
- Professional services: $150K
- Training: $30K
- Parallel running (3 months): $97K
- Total: $277K

Timeline: 6-month migration period

**Step 3: Risk Factors**
- 10% cost overrun buffer: $28K
- Potential downtime costs: $50K
- Learning curve productivity loss: $75K

**Step 4: 3-Year ROI Projection**
Year 1: -$277K (migration) + $477K (savings) = $200K
Year 2: $477K (pure savings)
Year 3: $477K (pure savings)

Total 3-year benefit: $1,154K
ROI: 316% over 3 years
🧠 Explicitly request step-by-step breakdown
💡 Number each step for clarity
📌 Ask to show reasoning before conclusions

More AI tasks

Back to the full AI Prompting cheat sheet