PromptForge
Prompt library

The ReAct Pattern (Reason + Act)

ChatGPT / Agent toolsAutomation From a course

ReAct loops interleave reasoning ("what should I do next?") with actions (calling a tool, searching, running code), then feed the result back in before reasoning again.

The prompt

You have access to a "search" tool and a "calculator" tool. For the question below, reason about which tool (if any) you need, state the tool call, wait for the result, then reason again before giving a final answer. Question: [your question]

What to replace

Swap these placeholders for your own details before running the prompt:

  • [your question]your own value

Pro tip: Always give the agent an explicit stopping condition ("stop once you have a final answer" or a max of N tool calls) — open-ended loops are the #1 cause of runaway automation costs.

How to use this prompt

  1. Copy the prompt using the button above.
  2. Replace [your question] with your own details — the more specific you are, the better the output.
  3. Paste it into ChatGPT / Agent tools and run it.
  4. If the answer feels generic, add constraints: audience, length, tone, and what to avoid. That single change fixes most weak output.

Learn the technique

The ReAct Pattern (Reason + Act)

Module 2 — Building Agent Loops · Loop & Agentic Engineering

Related prompts