Nearby lessons
21 of 49Prompt Engineering - ReAct (Reason + Act)
ReAct — Reason + Act
ReAct means Reason + Act. Thinking alone is not enough — AI should think what is needed, take an action, re-evaluate, and repeat until the goal is complete.
- AI becomes an assistant that completes tasks, not just an advisor that gives ideas.
- The loop repeats: think → act → re-evaluate → repeat until done.
In simple words: AI should think and act, not just answer. Ideas are good, execution is powerful.
| Normal AI | ReAct AI |
|---|---|
| Only answers | Thinks + acts |
| Gives ideas | Completes tasks |
| Passive | Active |
| Limited | Powerful |
Example01
ReAct Prompt — Reason / Act Steps
Notice the pattern: every step alternates between thinking (Reason) and doing (Act). This loop is the foundation of AI agents.
Example02
Real-World Use Cases
- AI agents — think, act, and stop correctly.
- Automation workflows — repeat steps with safe limits.
- API retry systems — retry a limited number of times.
- Pricing and analysis — calculate with tools, not guesses.
- Report generation — produce and validate output.
📝 Key Takeaways
- ReAct = Reason + Act, repeated until the goal is done.
- Thinking alone is not enough — AI should think and act.
- Every step alternates: Reason (think) then Act (do).
- AI becomes an assistant that completes tasks, not just an advisor.
- The Reason → Act loop is the foundation of AI agents.
- The workshop-planner prompt: ask, decide, create, improve, then output.
🧠 Test Your Knowledge
2 QuestionsProgress: 0 / 2