User Story Template with Acceptance Criteria (and AI Prompt)
Copy a user story template with acceptance criteria in Given/When/Then, see a worked example, and use an AI prompt to draft stories your whole team can test.
For Product Management and Engineering

What is a user story template with acceptance criteria?
A user story template with acceptance criteria is a fixed layout for describing one piece of work from the user's point of view ("As a [who], I want [what], so that [why]") plus a list of specific, testable conditions that must be true before the work counts as done. The story explains the need. The acceptance criteria define the finish line. Product, engineering and QA all read the same page, so each condition has to be clear enough that three people reach the same yes or no.
TL;DR
- A user story says who needs what and why, in one sentence. Acceptance criteria say how anyone can verify it works, in a handful of pass/fail statements.
- The template below is ready to copy. It adds the fields that prevent most rework: out of scope, open questions and non-functional needs.
- Write acceptance criteria as Given / When / Then scenarios for behavior, and as a plain checklist for rules and constraints.
- AI is good at drafting scenarios and spotting missing edge cases from your notes. It is bad at knowing your business rules, so you supply those and check every line.
- Paste the prompt in this post, replace the bracketed parts with your own material, and treat the output as a first draft for the team to argue over.
- A story is ready when a tester could write test cases from it without asking the author a question.
What does the full template look like?
Copy this block into your ticketing tool, a doc, or a wiki page. Delete fields you do not need, but keep "Out of scope" and "Open questions". Those two prevent the most arguments later.
STORY ID / TITLE:
[Short title in verb + object form, e.g. "Approve expense report"]
OWNER: [Product owner or PM] STATUS: [Draft / Ready / In progress / Done]
USER STORY
As a [specific type of user],
I want [an action or capability],
so that [the outcome or value I get].
CONTEXT / BACKGROUND
[2-4 sentences: why this matters now, what exists today,
links to research, design files, or related tickets.]
ACCEPTANCE CRITERIA
Scenario 1: [Happy path name]
Given [starting state or precondition]
When [the user does something]
Then [the observable result]
Scenario 2: [Edge case or alternate path]
Given ...
When ...
Then ...
Scenario 3: [Error or failure case]
Given ...
When ...
Then ...
Rules and constraints (checklist)
[ ] [Business rule, e.g. a limit, a format, a permission]
[ ] [Business rule]
NON-FUNCTIONAL NEEDS
Performance: [e.g. page loads within X seconds, or "no change"]
Accessibility: [e.g. keyboard operable, screen reader labels]
Security / permissions: [who can see or do this]
Data / audit: [what must be logged or retained]
OUT OF SCOPE
- [Things someone might assume are included but are not]
DEPENDENCIES
- [Other teams, systems, tickets, approvals]
OPEN QUESTIONS
- [Question] (owner: [name], needed by: [date])
DESIGN / REFERENCES
- [Links to mockups, policies, specs]
SIGN-OFF
Product: [ ] Engineering: [ ] QA: [ ]
The three sign-off boxes are the point of the page. A story that only the PM understands is a note, not a shared agreement.
How do you fill it in? A worked example
Say a finance operations team wants managers to approve expense reports inside the company's internal tool instead of by email. Here is the template filled in.
Title: Approve expense report
User story: As a people manager, I want to approve or reject my direct reports' expense reports from one screen, so that employees get reimbursed without me chasing email threads.
Context: Approvals currently happen by email reply, and finance often cannot tell which reports are approved. This story covers the manager's approve and reject actions only. Submission by employees already exists.
Acceptance criteria:
Scenario 1: Manager approves a report within their limit
- Given I am a manager with a pending expense report from a direct report, and the total is within my approval limit
- When I open the report and select "Approve"
- Then the report status changes to "Approved," the employee is notified, and the report appears in finance's payment queue
Scenario 2: Manager rejects with a reason
- Given I am viewing a pending report
- When I select "Reject" and enter a reason
- Then the status changes to "Rejected," the reason is visible to the employee, and the report does not enter the payment queue
Scenario 3: Reject without a reason is blocked
- Given I am viewing a pending report
- When I select "Reject" and leave the reason empty
- Then I see a message that a reason is required and the status does not change
Scenario 4: Total exceeds the manager's limit
- Given a pending report whose total is above my approval limit
- When I open the report
- Then the "Approve" button is unavailable, and I see who the report will be escalated to
Scenario 5: Someone else's report
- Given a report from an employee who does not report to me
- When I try to open it by direct link
- Then I see an "access denied" message and nothing about the report's contents
Rules and constraints:
- A report can be approved or rejected only once; later changes require a new submission
- Approval records the approver's name and a timestamp
- Reports older than the policy window are flagged but can still be approved
Out of scope: Editing line items, delegating approval to another person, mobile push notifications.
Open questions: What is the approval limit for each manager level? (owner: Finance, needed before build starts.)
Notice what makes this work. Each Then clause is something a tester can see on screen. The permission case and the empty-reason case are written down instead of discovered in QA. And the open question names a person.
How do you write good acceptance criteria?
Use the format that fits the kind of requirement. Most stories need both.
| Requirement type | Best format | Example |
|---|---|---|
| A flow with steps and outcomes | Given / When / Then | "Given a pending report, when I approve, then the status is Approved" |
| A rule, limit or format | Checklist | "Reject reason is required, up to 500 characters" |
| A quality or constraint | Non-functional line | "All buttons usable by keyboard" |
| A screen layout | Link to the design, plus a short note | "Matches mockup v3; empty state shows the text in the file" |
A few habits make the difference between criteria people can test and criteria people argue about.
- One behavior per scenario. If a Then clause has "and" three times, split it.
- Write what the user sees, not how the system does it. "The status reads Approved" is testable. "The database row is updated" is an implementation detail.
- Avoid vague words. "Fast," "easy," "intuitive," "appropriate" and "user-friendly" cannot be passed or failed. Replace them with a number, a state or a visible result.
- Cover the unhappy paths. For every action, ask what happens with empty input, no permission, a duplicate, a timeout, and a retry.
- Use real values. "A total of $2,500 against a $2,000 limit" is clearer than "an amount over the limit."
- Keep each criterion independent. A tester should be able to run scenario 4 without having run scenarios 1 to 3 first.
What AI prompt writes user stories and acceptance criteria?
Give the AI your raw material (meeting notes, a request email, a policy excerpt) and the template. Ask it to flag what it does not know instead of filling gaps with guesses. That last instruction matters most.
Paste this into your AI assistant and replace the brackets:
You are helping a product team write a user story with acceptance
criteria. Use ONLY the information I provide. If something needed
for a testable criterion is missing, do not invent it. List it
under "Open questions" instead.
My raw notes:
[paste meeting notes, request email, policy text, or a rough idea]
Who the users are: [roles]
Systems or constraints I already know: [e.g. existing screens,
permissions model, regulatory rules]
Produce the following, in this order:
1. A user story in the form "As a [specific user], I want [action],
so that [outcome]." If my notes contain more than one story,
say so and propose how to split them. Do not combine them.
2. Acceptance criteria as Given / When / Then scenarios: one happy
path, then edge cases, then error and permission cases. Each
Then must be something a tester can observe. No vague words like
"fast" or "easy."
3. A checklist of business rules and constraints, only those stated
in my notes.
4. Non-functional needs (performance, accessibility, security,
audit), marked "assumed" if I did not state them.
5. Out of scope: things a reader might wrongly assume are included.
6. Open questions: everything you had to guess, each phrased as a
question a named role could answer.
Keep each scenario to one behavior. Use plain language a product
manager, an engineer and a tester would all read the same way.
Two follow-up prompts earn their keep:
- "Act as a QA tester. For each acceptance criterion, write the test steps and tell me which criteria you could not test without asking me something." This finds ambiguity fast.
- "Act as a skeptical engineer. List the edge cases, failure modes and dependencies this story does not cover." This finds the missing scenarios.
What should you check in the AI's answer?
Read the draft with a pen. Work through this list:
- Invented rules. Did it add a limit, a role name, a time window or a policy you never mentioned? Move it to open questions or delete it.
- Scope creep. AI likes to add "nice to have" features such as notifications, exports and dashboards. If it is not in your notes, it belongs in out of scope.
- Untestable Then clauses. Look for "the system handles it gracefully" or "the user is informed appropriately." Replace with the exact message or state.
- Duplicate scenarios. Models often write three versions of the happy path with minor wording changes.
- Wrong user. "As a user" is a warning sign. Name the role.
- Missing permission and empty-state cases. These are the ones AI skips most often when your notes do not mention them.
- Contradictions. Check that no two scenarios give different outcomes for the same starting state.
Where should you not trust AI?
AI does not know your company. It cannot tell you your approval thresholds, your data retention rules, how your legacy system behaves, or what legal and compliance require. It will write confident, plausible text about all of them if you let it.
Keep these human:
- Business rules and numbers. Limits, fees, thresholds and deadlines come from the owner of the policy.
- Compliance, privacy and security requirements. Have the right reviewer read them. Do not paste confidential customer data or unreleased strategy into a tool your company has not approved. Follow your company's AI policy.
- Prioritization and trade-offs. Deciding what is out of scope is a product decision, not a drafting task.
- Final sign-off. The three boxes at the bottom of the template are for people.
Treat the output as a junior colleague's first draft: fast, useful and in need of review.
How do PMs, engineers and QA each use the same story?
One page, three readings.
| Role | What they look for | Questions they should be able to answer from the page |
|---|---|---|
| Product manager | Is the value clear? Is scope controlled? | Why are we doing this? What is deliberately left out? |
| Engineer | Is it buildable and unambiguous? | What are the rules? What are the dependencies? What happens when it fails? |
| QA / tester | Can I turn each line into a test? | What is the expected result for each case? Which cases are missing? |
A practical routine: the PM drafts with AI, then the three roles review the story together for 15 to 20 minutes before it enters a sprint. Engineers add technical constraints, QA adds cases, and the open questions get owners. When all three sign off, the story is ready. This is often called a "three amigos" conversation, and the template gives it a shape.
How do you split a story that is too big?
If a story has more than six or seven scenarios, or the engineers cannot size it, split it. Common ways:
- By workflow step. Submit, then review, then pay, instead of "manage expenses."
- By user type. Manager approval first, finance approval later.
- By happy path versus variations. Ship the main flow, then add rejection, then escalation.
- By rule. Start with one limit, then add tiered limits.
Each piece should still deliver something a user can notice. "Build the database table" is a task, not a story.
You can ask the AI to help: "Here is my story and scenarios. Propose three ways to split it into smaller stories that each deliver user-visible value. For each, list which scenarios go where."
What are the most common mistakes?
- Writing the solution into the story. "I want a dropdown" locks in a design. "I want to choose a reason" leaves room.
- Using "As a user" for everything. The permission and data differences between roles are where defects live.
- Treating acceptance criteria as a to-do list for developers. They describe what is true when the work is done, not the steps to build it.
- Skipping "so that." Without the outcome, nobody can judge whether an alternative approach would satisfy the need.
- Letting criteria change silently. If a criterion changes mid-sprint, update the page and tell all three roles.
- Accepting AI output unreviewed. The fastest way to ship the wrong thing is a polished story nobody questioned.
Do you need another tool to keep your stories in?
Most teams already have a ticketing system, and the template works fine pasted into it. The friction usually shows up around it: sign-off status living in comments, open questions lost in chat, and no single view of which stories are waiting on which person. If that is your problem, you can describe a small internal tool in plain English to Remy, which builds and deploys a full-stack app with sign-in and a database. A story tracker could hold these exact fields, give each role its own sign-off button, and list every open question by owner and due date. You own the result instead of renting a pile of separate business tools, though Remy itself costs a flat $99/month for the cloud that runs what you build, plus AI usage at cost, and you should check what your company allows before putting work data in a new tool.
Frequently Asked Questions
What is the difference between a user story and acceptance criteria?
The user story is a one-sentence statement of who needs something and why. Acceptance criteria are the specific, testable conditions that prove the story is delivered. The story explains the need, and the criteria let the team agree when it is done.
Should I use Given/When/Then or a checklist?
Use Given/When/Then for behavior that unfolds in steps, such as a user taking an action and seeing a result. Use a checklist for flat rules like limits, formats and permissions. Many good stories use both, and mixing them is fine as long as every line can be passed or failed.
How many acceptance criteria should a story have?
Most well-sized stories have between three and eight. If you need many more, the story is probably too large and should be split. If you have only one, check that you have covered error, empty and permission cases.
Can AI write acceptance criteria for me?
It can draft them well, especially edge cases you forgot, when you give it real notes and tell it not to invent rules. It cannot know your business policies, so a person who owns those rules must review every criterion before the team relies on it.
Who is responsible for writing acceptance criteria?
Usually the product manager or product owner drafts them, but the best versions are reviewed by engineering and QA before work starts. Responsibility for the content sits with the product owner, while all three roles share responsibility for making it clear.
How we source, write, and correct our articles. Editorial standards
Related articles

What Is Octar? AI for Enterprise Software Implementations

Should You Rewrite Your Codebase With AI? Octar's Lessons

Release Notes Template (Plus an AI Prompt to Write Them)
