AI Prompt to Write User Stories From Requirements

Paste a requirements list and your user roles, and get traceable user stories with Given, When, Then criteria, an INVEST rating, and a split for every story that is too big.

Copy this prompt

Act as an experienced product owner. Convert my requirements into user stories.

Product or project: [name and goal]
User roles: [the real roles that use or benefit from the product, with a line on each]
Requirements: [paste the numbered requirements list]
Team and sprint length: [for example 5 people, 2 weeks]

For each requirement:
1. Write one or more user stories in the form "As a [specific role], I want [capability], so that [benefit]". Use a role from my list, never "user". Keep the requirement ID so I can trace it.
2. Add 2 to 4 acceptance criteria in Given, When, Then form.
3. Run the INVEST check. Rate each letter (Independent, Negotiable, Valuable, Estimable, Small, Testable) as pass or fail, with a short reason for every fail.
4. If the story fails Small or Estimable, suggest a split. Name the pattern you used: by workflow step, by business rule, by data type, by happy path versus exceptions, or by role. Each split story must still deliver value on its own.

Output a table: story ID, requirement ID, story, acceptance criteria, INVEST result, split suggestion.

Then list:
A. Requirements that are not user stories (constraints, non-functional needs, technical work) and how to handle each, for example as an acceptance criterion or a definition of done item.
B. Stories where you guessed the benefit. Mark each "BENEFIT ASSUMED".
C. Dependencies between stories.

Do not invent roles, features, or business rules. Do not estimate story points. That is the job of the team. Ask me about anything unclear before you write a story for it.

Why this prompt is useful

Most AI-written user stories are requirements with the words As a user placed in front. This prompt requires a real role and a stated benefit, tests each story against INVEST, and names a splitting pattern for the large ones. It also marks every benefit the AI guessed, which is where stories most often go wrong.

Use it when: you have a requirements list and need backlog-ready user stories to refine with the team.

How this prompt works

A user story is a short statement of who needs something and why. The "so that" clause is the part that earns its place. It tells the team what the story is for, which lets them propose a cheaper way to reach the same benefit. A requirements list rarely states the benefit, so the AI often has to infer it. That is why the prompt demands a BENEFIT ASSUMED label.

Step 1 bans the role "user". A story written for "a user" hides the fact that a warehouse clerk and a regional manager need different things from the same screen. Keeping the requirement ID gives you traceability from the backlog to what stakeholders originally asked for.

Step 3 applies INVEST, the standard quality check for stories. The prompt asks for a reason on every fail, because a bare "fail" gives you nothing to fix. Step 4 deals with the most common failure, a story too large to finish in one sprint. Naming the splitting pattern matters. The lazy split is by technical layer: database, then logic, then screen. None of those slices delivers anything a person can use. The patterns listed in the prompt all produce thinner stories that still work end to end.

List A catches a frequent mistake. Not every requirement is a story. "Pages load within 2 seconds" works better as an acceptance criterion or a definition of done item than as a story of its own.

How to adapt it

  • Job stories: replace the format with "When [situation], I want to [motivation], so I can [outcome]" if roles matter less than context.
  • Story map: ask the AI to group the stories under user activities in the order a person performs them.
  • Hybrid project: run it only on the requirements you will deliver iteratively, and keep the others as deliverables in the WBS.

What to do with the output

Treat the stories as conversation starters, which is what they are meant to be. Take them to refinement and let the team challenge the splits and the acceptance criteria. Confirm each BENEFIT ASSUMED story with the stakeholder who raised the requirement.

Refinement is also where you stop the backlog from growing unnoticed. Backlog grooming that reduces scope creep shows how to run it.

Frequently Asked Questions

Can AI write user stories?

It can write clear, correctly formatted stories quickly and suggest sensible splits. It does not know your users, so the role and benefit need a check by someone who does. The team still owns estimation and the final wording.

What does INVEST stand for?

Independent, Negotiable, Valuable, Estimable, Small, and Testable. It is a checklist for whether a story is ready to be planned into a sprint.

How do I split a user story that is too big?

Split it so each piece still delivers something a person can use. Good cuts follow workflow steps, business rules, data types, or the happy path before the exceptions.