Skip to content

Guide · Equip

How to write a PRD for an AI agent, starting from real work

What goes in a PRD for an AI agent: evidence, evals, guardrails, hand-back rules, cost and rollout. With a template, a worked example and a checklist.

The short answer

A PRD for an AI agent defines what the agent will do, how you will know it is right, and where it must stop. Write it from a map of how the work really runs, and define “correct” as an eval: real cases, a rubric and pass thresholds set against your people’s current results. Then set the limits: what the agent must never do, when it hands back to a person, what it may cost, and how it earns more autonomy, starting in shadow mode.

By Nadi Haque, Founder, NolliUpdated 13 min read

Key takeaways

  1. Start from the mapped workflow, not a wish list. The PRD covers only the steps that need an agent, and every requirement links to the evidence behind it.
  2. An agent’s output varies from run to run, so define “correct” as an eval: real cases, a rubric of yes-or-no checks, and pass thresholds set against your people’s results.
  3. Write the limits into the scope: what the agent must never do, when it hands back to a person, what needs approval, what it may cost, and how it earns more autonomy.

What is a PRD for an AI agent, and how is it different?

A PRD for an AI agent, sometimes called an agent spec, does what any product requirements document does: it says what to build, for whom and why. It also says how you will know the agent is right, what it must never do, and when it must hand the work back to a person.

Those extra parts exist because an agent doesn’t behave like ordinary software. Its output varies: the same case can come out differently on different runs, which is why Anthropic’s engineers test each task more than once. So the PRD defines “correct” with test cases, a rubric and a pass rate. And an agent acts on its own, so the PRD has to say where it must stop. OpenAI’s guide to building agents lists stopping as a core trait: when an agent fails, it can halt and hand control back to the user.

An agent also goes live in steps, from shadow mode to acting with spot checks, and it is never finished, because a new model, prompt or policy can change how it behaves.

Part of the PRDA typical PRDAn agent PRD
Starts fromThe problem and what people ask forThe mapped workflow: steps, exceptions, volumes and past cases
BehaviorSame input, same outputOutput can vary between runs and between models
“Correct” meansIt works as specifiedIt passes evals: real cases, a rubric and thresholds set against people’s results
ScopeWhat the product does and doesn’t doAlso what the agent must never do, and when it hands back to a person
ReleaseShip to users, often in stagesShadow, then suggest, then act, as the evidence allows
After launchFix bugs as people report themMonitor quality, and re-run evals when the model, prompts or process change
Figure 1. A typical PRD and an agent PRD, compared. An agent PRD keeps what a typical PRD covers, and adds tests, limits and a staged launch.

Why start an agent PRD from real work, not a wish list?

Because the agent will meet the work as it really runs. Ask a team what an agent should do and you get a wish list, built from the process document and from memory. The real work has more steps, more exceptions and rules nobody wrote down.

Daniel Kornum of Varick Agents describes the usual failure: a company scopes an agent from the SOP, ships it, and the agent collides with the actual workflow. He calls the gap between the documented process and the real one the conformance gap, and puts it at 30% or more in Varick’s typical engagements. Build for the document, he writes, and you automate 70% of the volume and break on the other 30%.

OpenAI’s guide suggests building an agent’s instructions from existing procedures and policy documents. That works only when the documents match the work. So before you write the PRD:

  1. Map the workflow from the people who do it, the systems they use and the documents they follow, exceptions included. See how to map a process for AI.
  2. Sort every step into the four buckets: delete it, run it as plain code, give it to an agent, or keep a person on it. The PRD covers the agent’s steps and the handoffs around them. Plain-code steps need an ordinary spec, and deleted steps need nothing.

The map also supplies the PRD’s evidence: how often the work happens, how long it takes, where it goes wrong, and the past cases you will test on. In our revenue review example, the process document lists five steps, four observed Mondays show 20, and only four of those need an agent.

What goes in a PRD for an AI agent?

Thirteen sections, grouped by the five questions they answer. Most need only a few lines, and the eval cases can go in an appendix.

  1. Why build it?

    1. Problem, with evidence

      The volume, time and cost today, each number linked to where it came from.

    2. Owner and users

      One person who answers for results and limits, plus who uses the output and who reviews it.

  2. What will it do?

    1. Workflow and agent steps

      The mapped workflow, each step’s bucket, and the steps the agent takes.

    2. Inputs and data sources

      Every source the agent reads, and its access: read, draft or write.

    3. Tools and permissions

      Each tool, its risk, and why the work needs it. Nothing extra.

  3. How will you know it works?

    1. Success criteria as evals

      Real cases, a rubric of yes-or-no checks, and thresholds set against people’s results.

    2. Cost per task budget

      The most a correct result may cost, review and fixes included, and a cap on retries.

  4. Where must it stop?

    1. Never

      Actions it must never take, each enforced by permissions or code.

    2. Hand back when

      Each condition that stops the agent, its threshold, and who gets the case.

    3. Approvals

      What a person signs off before it takes effect, and who signs.

    4. Out of scope

      What the agent won’t do, and who does it instead.

  5. How will it go live?

    1. Rollout plan

      Shadow, suggest, act: the evidence each step needs, and what moves it back.

    2. Monitoring

      What you track after launch, who reviews it, and when the evals run again.

Figure 2. The agent PRD template. Thirteen sections in five groups. Each line says what its section should contain.

Four of the early sections need extra care:

  • Problem, with evidence. State the volume, the time and the cost today, and link each number to where it came from. If the map can’t fill this section, everything after it is guesswork.
  • Owner and users. Name one person who answers for the agent’s results and approves its limits, usually whoever owns the workflow. Then name who uses the output and who reviews it.
  • Inputs and data sources. List every source the agent reads, with the access it needs: read, draft or write. Start everything at read-only, and add access only where a requirement calls for it.
  • Tools and permissions. Give the agent only the tools the work needs. The OWASP Gen AI Security Project lists excessive functionality, permissions and autonomy as the root causes of “excessive agency,” one of its 2025 Top 10 risks for applications built on large language models. OpenAI suggests rating each tool’s risk as low, medium or high, based on whether it writes, whether its effects can be undone, the permissions it needs and its financial impact. The rating then decides when the agent pauses for checks or escalates to a person.

How do you define success for an AI agent?

Define it as an eval the agent must pass before it acts on real work: real cases, a rubric that says what correct means, and pass thresholds set against how your people do the same work today. Write it before the first run, so the goalposts can’t move.

“Early on, evals force product teams to specify what success means for the agent.”

— Anthropic, “Demystifying evals for AI agents,” January 2026
  • Cases. Take them from the mapped work, awkward ones included: the late renewal, the missing purchase order, the figures that conflict. Anthropic’s engineers say 20 to 50 simple tasks drawn from real failures is a great start. Include cases where the agent should hand the work back and cases where it shouldn’t, so you test both sides of every rule.
  • Rubric. Turn “good” into yes-or-no checks, such as the right total, every conflict flagged and nothing sent. That is a rubric. Anthropic’s test for a well-written task is that two experts would reach the same verdict on their own, and it advises grading what the agent produced rather than the exact path it took.
  • Thresholds. Set the pass rate against your people’s results on the same cases, not against perfection. A human baseline gives you that number; see how to benchmark AI on your own work. Count serious errors on their own, with a bar of zero. Because results vary, run each case several times, and count the critical checks as passed only when they pass on every run.
  • Budget. Set a ceiling on cost per task: model usage across every attempt, plus review time and fixing mistakes. Cap retries too. OpenAI suggests limits on retries and actions, with a person taking over when the agent goes past them.

How do you write guardrails and escalation rules for an agent?

Write three kinds of limit, and make each one testable:

  • Never. These are the agent’s guardrails: actions it must not take in any case, such as messaging customers, moving money or editing a system of record. Enforce each one with permissions or code, in the agent’s harness and in the systems it touches, because a model can be wrong, or be manipulated by something it reads. OWASP advises checking authorization in those systems rather than letting the model decide what is allowed.
  • Hand back when. These escalation rules stop the agent and send the case to a named person. OpenAI’s guide names two triggers: going past failure limits, such as too many retries, and high-risk actions, which should stay under human oversight until confidence in the agent grows. Add the triggers your map turned up, such as conflicting figures or an amount over a set limit. Each rule needs a condition, a threshold and a recipient.
  • Approvals. These say which outputs a person signs off before they take effect, and who signs. OpenAI’s agent documentation calls this human review: the run pauses until a person approves or rejects the action. Make each approval specific: show the reviewer what the agent checked, what it is unsure of and which decision is theirs. See human-in-the-loop.

The rollout plan says how those limits loosen. In a staged rollout, the agent starts in shadow mode, working real cases and sending nothing. Then it suggests work that a person approves, and then it acts with spot checks. Write down the evidence each step needs, and what moves the agent back down, such as one serious error.

The monitoring plan says what you track after launch: the eval pass rate, hand-backs, outputs people changed, and cost per task. Re-run the evals whenever the model, a prompt, a tool or the process changes. Anthropic’s engineers note that monitoring live work catches drift and real-world failures that tests miss, and they suggest reading a sample of transcripts every week. See AI agent observability and governance.

How do you write requirements an agent and an eval can both use?

Write each requirement so the agent can follow it and a test can check it. When GitHub introduced its open-source Spec Kit, it gave the reason: language models are “exceptional at pattern completion, but not at mind reading.” A vague requirement leaves the agent to guess what you meant, and leaves the eval nothing to check. Four rules help:

  1. Be specific. Name the sources, the output, the deadline and the threshold.
  2. Make it checkable. A person or an automated grader can mark it pass or fail from the output alone.
  3. Link it to evidence. Each requirement cites where it came from: the observed weeks, the volumes, the past exceptions. When the evidence changes, you know which requirement to revisit.
  4. Test both sides of every limit. Write cases just inside and just outside each threshold.
VagueCheckable, with its evidenceHow the eval checks it
“Prepare the weekly review.”Have the deck ready for a person to check by 09:30 every Monday. Evidence: Deck sent at 10:50 on averageOn every test Monday, the deck is ready by 09:30.
“Catch problems in the numbers.”Match closed-won deals to the forecast workbook. Flag any conflict for a person to resolve. Evidence: 3 conflicts last monthEach of last month’s three conflicts is flagged on every run, and no matching deal is.
“Escalate big changes.”Hand back when figures conflict, or a renewal moves the total by more than 5%. Evidence: 3 conflicts last monthA renewal that moves the total by 4.9% stays with the agent. One that moves it by 5.1% goes to the lead.
“Be careful with the forecast.”Never edit the forecast. Access to the workbook is read-only. Decision: Set by the Revenue Ops leadAfter every run, the workbook is unchanged, and an attempted edit is blocked.
Figure 3. Four requirements, rewritten so a test can check them. From the illustrative revenue review example below. Each checkable version names its evidence and the test that checks it.

If you can’t write the test, rewrite the requirement. Anthropic’s engineers call defining eval tasks one of the best ways to find out whether requirements are concrete enough to start building.

Worked example: a PRD for a revenue review agent

Here is a shortened PRD for the weekly revenue review at the illustrative company from Nolli’s product demo. Six people on Revenue Ops spend about 14 hours each week assembling it from five apps. That is 56 hours a month, worth about $44,000 a year at $66 an hour. Three figure conflicts came up last month. After sorting its steps, four went to an agent, and the final recommendation stayed with the Revenue Ops lead.

PRD · Weekly revenue review prep

Illustrative

Built from 4 observed Mondays · 6 people on Revenue Ops · 5 apps · 3 figure conflicts last month

Problem

  • Six people spend about 14 hours each week assembling the Monday revenue review from five apps.Evidence: Observed 4 MondaysEvidence: 6 people

Owner

  • The Revenue Ops lead, who already owns the weekly review.Evidence: From the work map

Goal

  • Have the deck ready for a person to check by 09:30 every Monday.Evidence: Deck sent at 10:50 on average

Requirements

  1. Gather account updates from email threads, #revenue-updates and Salesforce stage changes.Evidence: 14 threads a week
  2. Match closed-won deals to the forecast workbook. Flag any conflict for a person to resolve.Evidence: 3 conflicts last month
  3. Draft slides 2–4 from the workbook’s summary tab.Evidence: Same layout 4 weeks running

Can use

  • Account threads, #revenue-updates, Salesforce reports and the forecast workbook, read-only.Evidence: 5 sources observed

Success criteria

  • Tested on the four observed Mondays, including the two with late renewals.Evidence: Late renewals: 2 of the last 4 weeks
  • Every conflict flagged on every run, and the team’s figures matched on at least 97% of lines.Decision: Agreed with the lead

Hand back when

  • Figures conflict, or a renewal moves the total by more than 5%.Evidence: 3 conflicts last month

Never

  • Sends anything to leadership or edits the forecast.Decision: Set by the Revenue Ops lead

Out of scope

  • The final recommendation stays with the Revenue Ops lead.Evidence: Always written by hand

Rollout

  • Four Mondays in shadow mode, then live, with the lead checking every deck before it is sent.Decision: Agreed with the lead
  • ObservedSeen in the work: steps, volumes and exceptions
  • DecidedSet by the workflow’s owner
Figure 4. A PRD where every line shows its evidence. An illustrative, shortened PRD for the weekly revenue review in Nolli’s product demo. Blue chips mark what was observed in the work; gray chips mark what the owner decided.

Three things make it work. Every requirement can be tested: a 09:30 deadline, a 5% threshold, read-only access. Every line shows where it came from, so a reviewer can see why it is there. And the limits come from the person who owns the work: the Revenue Ops lead set the never rule, and the recommendation, always written by hand, stays out of scope.

The eval cases come from the same evidence: the four observed Mondays, last month’s three conflicts and the two weeks when late renewals were missing from the deck. The same lines also give you the agent brief, the short version the agent works from: its goal, what it can use, when it hands back and what it must never do.

What are the most common mistakes in agent PRDs?

Watch for six mistakes:

  • Writing from the SOP. The agent meets the real process, so map it first.
  • Defining success in words. “Accurate” and “timely” can’t be tested. Anthropic warns that teams can waste weeks on AI features that seem to work in early testing but miss expectations nobody wrote down.
  • Testing only the easy cases. If the eval set has no conflicts, late arrivals or cases near a threshold, the hand-back rules have never been tested.
  • Putting limits only in the prompt. If the agent could still break a never rule, the rule is only a request. Back it with permissions.
  • Giving the agent too much. Steps that plain code can do, or that shouldn’t exist, don’t belong to the agent. Anthropic recommends the simplest solution that works, which sometimes means no agent at all.
  • Treating the PRD as finished. Add every correction as a new eval case, and update the PRD when the model, the tools or the process change.
  • The workflow is mapped from real work, and every step is sorted into a bucket.
  • Every number in the problem statement links to its source.
  • One owner answers for the agent’s results and signs off its limits.
  • Every data source and tool is listed with its access, read-only by default.
  • The eval set holds real cases, exceptions included, with answers two experts agree on.
  • Pass thresholds are set against people’s current results, before the first run.
  • Every never rule is enforced by permissions or code, not only the prompt.
  • Every hand-back rule names a condition, a threshold and who gets the case.
  • The cost per task budget counts review time and fixing mistakes.
  • The rollout says what evidence moves the agent up a step, and what moves it back.
Figure 5. Ready to build? Ten checks to run before anyone starts building the agent.

Questions people ask

What is the difference between a PRD, an SOP and an agent brief?

A PRD tells the people building an agent what to build, why, and how success will be judged. An SOP tells people how to do the work, step by step. An agent brief is the short version the agent works from: its goal, what it can use, when to hand back to a person and what it must never do. All three should come from the same map of the real work.

Is an agent PRD the same as the agent’s prompt?

No. The PRD is for the people who build, approve and run the agent. Parts of it become the agent’s instructions, such as its steps, its hand-back rules and its never list, and its eval cases become the agent’s tests. Hard limits also belong in permissions and code, because instructions alone can fail.

How many test cases does an agent PRD need?

Enough to cover the work and its exceptions. Anthropic’s engineers suggest that 20 to 50 simple tasks drawn from real failures is a great start. Include cases on both sides of every hand-back rule, and after launch, add each correction as a new case.

Who should write a PRD for an AI agent?

The workflow’s owner, with whoever will build the agent. The people who do the work check the steps and the test cases, IT or security approves the access and the tools, and the owner signs off the never list and the hand-back rules.

Do you need a PRD if you buy an agent instead of building one?

Yes, a shorter one. The problem, the success criteria, the eval cases and the limits tell you what to test before you sign. Run the vendor’s agent on your own cases, ideally in shadow mode, and check that its permissions and hand-back rules can match yours.

What is spec-driven development, and does it apply to business agents?

Spec-driven development starts a software project from a written spec, which AI coding agents then use to generate, test and validate code. GitHub’s open-source Spec Kit is one toolkit for it. The same idea works for business agents: the PRD is the source of truth that both the agent’s instructions and its evals come from.

Sources

  1. Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares and Jiri De Jonghe. “Demystifying evals for AI agents.” Anthropic, January 9, 2026.
  2. “A practical guide to building agents.” OpenAI.
  3. Daniel Kornum. “If AI is so great, why isn’t it working?” Varick Agents.
  4. “LLM06:2025 Excessive Agency.” OWASP Gen AI Security Project, accessed October 4, 2026.
  5. “Guardrails and human review.” OpenAI API documentation, accessed October 4, 2026.
  6. Den Delimarsky. “Spec-driven development with AI: Get started with a new open source toolkit.” The GitHub Blog, September 2, 2025.
  7. Erik S. and Barry Zhang. “Building effective agents.” Anthropic, December 19, 2024.