AI prompts and agile projects: what is well conceived is clearly stated… In a world where agility and speed are essential for software development, integrating artificial intelligence (AI) into agile project management opens up fascinating new perspectives. Imagine a tool capable of refining your ‘user stories’, optimizing team collaboration, and reducing delivery lead times with remarkable precision. In this article, we explore the use of ChatGPT in our daily processes and discover how AI can transform ‘user story’ refinement in agile projects.
AI : an indispensable ally for refining your Agile User Stories ?
In agile ceremonies, and particularly in backlog refinement and user story estimation sessions, the remark has become almost systematic: “the US isn’t clear—we should have asked ChatGPT!” Indeed, on digital projects, the details of a user story often deserve to be enriched and fleshed out. Acceptance criteria are not always filled in, and the US itself often needs to be split further. Implementing the feature becomes complicated and even time-consuming for dev and QA teams, involving numerous back-and-forths with business analysts and product owners before they have everything needed to deliver a complete feature that brings the expected business value.
So we took the agile squads at their word and ran an exercise of scanning a user story with AI to see what it can—or cannot yet—deliver in terms of quality and time to market. For this test, we used a user story currently being implemented by our teams so that we could more easily identify the valuable avenues uncovered thanks to AI (as well as the gaps and gray areas left unresolved).
Essential first step : writing a good ” AI prompt “
How to help AI generate quality content
Optimizing your AI prompt to get the best results. To guide the AI’s responses, it is important to establish context. From the quality of the prompts you write comes the relevance of the answers provided by the AI. Ultimately, just as when we write a user story we state the business value (as…, I want… in order to…), we perform the same operation to specify to the AI what role it should adopt so that we obtain a relevant response.
Credits : https://asana.com/fr/resources/user-stories
Indeed, the key points to keep in mind when using AI will consistently remain the same :
- Provide as much context as possible
- Give the AI an identity, a role
- Define the target, audience, and/or distribution channel
- Do it in English (the answers provided are much more complete and relevant when prompts are written in English)
- Rephrase, ask the question again, and explain why the answer provided was not quite right
By convention, it is recommended to use the JICA framework when creating a prompt :
- J (Job) : Ask the AI to play a specific role, at a highly qualified level
- I (Identity) : Reinforce the AI’s identity by specifying what brings value
- C (Context) : Provide as many useful details as possible to specify the context. Be careful: if the prompt is long but contains too much superfluous information, it will muddy the response. You should provide as much information as possible, but only the information relevant to answering the question
- A (Ask) : Give the clearest and most precise instructions possible (a child should be able to understand them)
Using this system will yield more accurate, more relevant answers that address our needs in a more targeted way.
Using multiple agile roles to build a relevant response
The Business Analyst’s role in uncovering details
To run our test, we start by positioning ourselves as a business analyst who receives a user story from a PO and needs details. We therefore ask ChatGPT to act as a BA preparing a Q&A session with their PO and give it the details of the US to clarify. After several attempts, we can establish a few additional rules to follow in order to obtain valid answers, namely:
Add questions at each step to clarify the context and our expectations (for example, asking to specify acceptance criteria, error cases, and items that warrant investigation).
Obviously, since we are working on a real use case, we do not provide any context containing sensitive data (such as personal data in particular). When we specify a general context (for example, stating that we are in a retail, luxury, or banking context), we find that it does not add much value to the answers provided anyway.
Depending on the version/license used, it is worthwhile to go quite far in the request—namely specifying that we will need wireframes, a data model, etc. In most cases, ChatGPT is able to provide at least a basic version of these elements, which will then fuel discussion with the teams.
Repeat the exercise several times, a few days apart: by asking the exact same questions again, we sometimes got more relevant answers than on the first test.
Question asked: As a business analyst, the product owner hands you a feature that allows customers to access their personal space and upload or download documents. You must analyze this story to provide details, acceptance criteria, priorities, risks and dependencies, business value, and the data model. The user story provided by the PO is “as a customer, I want to log into my personal account in order to upload or download documents”. Prepare a list of questions for the first interview with the PO to clarify this story.
Answer obtained:
Could you detail the specific documents that the customer will upload and download in their personal space? Are there any file format restrictions or size limits?
What security measures are in place to ensure the confidentiality and integrity of downloaded documents?
Is there a preferred authentication method for customers accessing their personal space, such as username/password, two-factor authentication, or any other method?
Could you provide details on the user interface requirements for the personal space feature? Are there any design preferences or existing templates to follow?
What permissions or access levels need to be defined for customers within their personal space? Are there different roles with distinct capabilities, such as read-only or full access?
Are there any regulatory or compliance considerations that need to be taken into account when developing this feature, such as data privacy or industry-specific standards?
What backup and recovery mechanisms are in place to protect documents in case of accidental deletion or system failure?
Are there specific performance expectations for uploading and downloading documents, particularly when dealing with large files or high transaction volumes?
Are there any dependencies on external systems or APIs that the personal space feature must integrate with for a seamless user experience?
How do you plan to track user activities and interactions within the personal space? Is there a need for auditing or logging specific events?
Will there be notifications or alerts associated with the download process, such as success messages, error notifications, or version updates?
What type of reporting or analytics, if any, do you anticipate being useful to monitor the usage and effectiveness of the personal space feature?
Finally, could you clarify the overall business value and objectives behind introducing this personal space feature for customers?
Our feedback: these questions are indeed very relevant in our context. The areas of complexity and main friction points are properly identified. This is indeed a good starting point for a deeper discussion with a PO. We therefore pushed the analysis further by trying to obtain more user stories related to our initial feature.
Leveraging ChatGPT’s capabilities to generate ideas and innovations
ChatGPT’s main advantage is its ability to bring innovative suggestions. It can draw on market trends, benchmarks, customer feedback, and industry data to propose additional ideas.
It is in this context that we will deepen our test by asking it to bring additional value to the customer. Here, it is important to note that we use ” chained prompting ” (obtaining multiple outputs tied to the same query by chaining several follow-up requests to refine them).
Question asked: What additional user stories could we consider to bring more value to the user?
Answer obtained:
As a customer, I want to organize my uploaded documents into folders or categories for better management and navigation within my personal space.
As a customer, I want to receive notifications when someone shares a document with me or when there are document updates in my personal space.
As a customer, I want to be able to preview documents before downloading them to make sure they are the right files I need.
As a customer, I want to be able to search for specific documents within my personal space based on keywords or tags.
As a customer, I want to be able to set access permissions for individual documents, allowing me to share specific files with other users or teams.
As a customer, I want a version control system that tracks changes made to documents, allowing me to revert to previous versions if necessary.
As a customer, I want to be able to customize the look and layout of my personal space according to my preferences.
As a customer, I want to be able to collaborate on documents in real time with other users who have access to my personal space.
As a customer, I want to see an activity log that displays a history of actions performed in my personal space for greater transparency and accountability.
As a customer, I want to be able to integrate my personal space with third-party applications or services for a more interconnected workflow.
As a customer, I want to have the ability to set expiration dates for shared documents, ensuring that access is limited for a specified duration.
As a customer, I want a recycle bin or trash folder in my personal space to recover accidentally deleted documents.
Our feedback: while some suggestions seem far from the initially stated context (i.e., uploading and downloading documents), they are all well contextualized and at least allow us to bring up the topic with the PO to validate or rule out these needs. For example, we won’t go into much detail on the story about customizing the customer’s personal space because those aspects already exist elsewhere. On the other hand, it is worthwhile to discuss with the PO the need for notifications, search filters, or previewing (all of which are indeed expected features). As for the quality of the USs proposed by the AI, most are indeed well scoped in terms of slicing, though there were a few exceptions. In terms of best practices, it is always better to split each action into a separate US to reduce dependencies, complexity, and vague acceptance criteria. This also allows for better story point estimation and gives the ability to prioritize each US separately. It took several rephrasings/follow-up prompts to obtain a properly split list of USs. The less relevant avenues suggested, such as audit trails or collaborative editing, stem from the fact that the AI did not have an important piece of information in our first prompt: only the account owner has the right to upload/download documents. An audit trail or collaborative editing therefore makes less sense at this stage of the feature. Nevertheless, these are interesting elements to keep in mind for a v2, and to discuss with the business for an upcoming PI.
The more specific you are, the more relevant the AI’s answers become
Capitalizing on AI’s self-learning capability
In this test, we rephrased our requirement by providing this additional context along with a few other elements based on the response obtained. We saw that each time we re-tested the process, the answers became more precise. We therefore rephrased several times to obtain the following result:
Question asked: What additional user stories could we consider to bring more value to the user, taking into account that only the owner role can upload or download documents, that they can only do so one document at a time via drag and drop with tags to identify files, and that they will need notifications, previews, and validation rules on document format and size?
Answer obtained:
As an owner, I want to receive real-time notifications when a document download is complete, ensuring I stay informed of any relevant activity.
As an owner, I want to be able to preview documents directly in the application before confirming the upload or download.
As an owner, I want to set specific tags during the drag-and-drop process to categorize and organize documents effectively.
As an owner, I want the system to perform automatic document type checks during upload to ensure compatibility and avoid errors.
As an owner, I want the system to check document size during upload to avoid exceeding size limits or to receive warnings about large files.
As an owner, I want to receive notifications when an upload or download fails, providing quick feedback on any issue requiring attention.
As an owner, I want to be able to set preferences for default tags, ensuring a streamlined tagging process when managing documents.
As an owner, I want to be able to customize notification settings, choosing to receive alerts by email, in-app messages, or other preferred communication channels.
As an owner, I want a feature to easily track and view the history of document uploads and downloads, facilitating auditing and accountability.
As an owner, I want the ability to restrict document downloads based on user roles or permissions, ensuring that sensitive information is accessible only to authorized users.
As an owner, I want a dashboard summarizing document statistics, such as total uploads, downloads, and storage usage.
As an owner, I want to be able to easily update or modify document tags after the initial upload, providing flexibility in organizing and managing documents.
Our feedback: Here, after 5 or 6 successive rephrasings, we get a set of user stories that are relevant to our use case. Although it does not cover 100% of the scope we had in mind, it is relevant enough to continue our exercise to the end by now asking it to specify acceptance criteria and suggest a prioritization.
Delivering value on user stories
At this stage of the test, we will focus on areas that often still have room for improvement when writing user stories. For example, acceptance criteria are often insufficiently detailed, generating many back-and-forths during the QA phase and numerous tickets (bugs/enhancements) created. This creates a significant extra workload for the project, and it is interesting to see what AI can bring to this type of issue.
We will also ask the AI to prioritize the list of user stories that were generated. In doing so, we aim to take advantage of AI’s ability to easily identify connections, dependencies, and constraints inherent to prioritization.
Question asked: “Prioritize these stories along with the initial story to avoid dependencies and maximize business value. Write acceptance criteria for each story.”
The prioritization proposed by the AI :
1. Initial story:
As a customer, I want to access my personal space to upload or download documents.
Priority: High
2. Additional stories bringing extra business value:
As an owner, I want to receive real-time notifications when a document upload or download is complete.
Priority: High
As an owner, I want to have the ability to set preferences for default tags.
Priority: Medium
As an owner, I want to be able to preview documents directly in the application before confirming the upload or download.
Priority: Medium
As an owner, I want the system to perform automatic document type checks during upload.
Priority: Medium
As an owner, I want the system to check document size during upload.
Priority: Medium
As an owner, I want to be able to set specific tags during the drag-and-drop process.
Priority: Low
As an owner, I want to be able to customize notification settings.
Priority: Low
As an owner, I want a feature to easily track and view the history of document uploads and downloads.
Priority: Low
As an owner, I want to be able to restrict document downloads based on user roles or permissions.
Priority: Low
As an owner, I want a dashboard summarizing document statistics.
Priority: Low
As an owner, I want to be able to easily update or modify document tags after the initial upload.
Priority: Low
As an owner, I want to receive notifications when an upload or download fails.
Priority: Low
Acceptance criteria proposed by the AI
The personal space feature allows customers to log in securely using their preferred authentication method.
Customers can access their personal space where they can see a clear interface for uploading and downloading documents.
The upload feature supports drag-and-drop for individual documents.
The download feature allows customers to select and download individual documents.
The system ensures security measures for the confidentiality and integrity of documents.
The user interface complies with design preferences and existing templates.
Access permissions are implemented, distinguishing different roles with distinct capabilities.
The feature adheres to all regulatory or compliance considerations related to data privacy or industry-specific standards.
A backup and recovery mechanism is in place to protect documents in case of accidental deletion or system failure.
Performance expectations for uploading and downloading documents are met.
Integration with external systems or APIs is seamless for a user-friendly experience.
The priority level aligns with the overall product roadmap and timelines.
The feature is thoroughly tested for functionality and usability.
Acceptance criteria for the additional stories:
1. As an owner, I want to receive real-time notifications when a document download is complete.
Notifications are sent instantaneously once the document upload or download is complete.
Users can choose their preferred notification method (e.g., in-app messages, email).
Notifications include relevant details such as document name, type, and timestamp.
2. As an owner, I want to be able to set preferences for default tags.
Owners can access and modify default tag preferences in their personal settings.
The system automatically applies default tags during the drag-and-drop process if configured by the owner.
3. As an owner, I want to be able to preview documents directly in the application before confirming the upload or download.
A preview option is available for supported document types.
Owners can view the document’s content, ensuring its accuracy before confirming actions.
4. As an owner, I want the system to perform automatic document type checks during upload.
The system checks document types to prevent uploading incompatible files.
Clear error messages are displayed for unsupported file types.
5. As an owner, I want the system to check document size during upload.
The system checks document size against specified limits during the upload process.
Users receive warnings for large files and are informed of size restrictions.
6. As an owner, I want to be able to set specific tags during the drag-and-drop process.
Owners can assign tags to individual documents during the drag-and-drop upload process.
Tags are applied accurately and reflected in the document’s metadata.
7. As an owner, I want to be able to customize notification settings.
Owners can customize notification preferences, including frequency and method.
Customization options are intuitive and easily accessible in personal settings.
8. As an owner, I want a feature to easily track and view the history of document uploads and downloads.
A comprehensive history log is available, showing all upload and download activities.
Owners can filter and search the history log based on specific criteria.
9. As an owner, I want to be able to restrict document downloads based on user roles or permissions.
Owners can define download permissions for specific user roles.
Access control settings are intuitive and easily configurable.
10. As an owner, I want a dashboard summarizing document statistics.
A dashboard displays key document statistics, including total uploads, downloads, and storage usage.
The dashboard offers a clear and visually appealing overview.
11. As an owner, I want to be able to easily update or modify document tags after the initial upload.
Owners can modify or add tags to documents after upload.
Changes made to tags are reflected in the document’s metadata and organization.
12. As an owner, I want to receive notifications in the event of an upload or download failure.
Owners receive immediate notifications in the event of an upload or download failure.
Error messages provide clear information about the nature of the failure.
Our feedback: In terms of AI prompt prioritization, some choices seem questionable. For example, the notification for a new document has a high priority, whereas the notification for an upload progress status (potentially a failure) has a low priority. This seems inconsistent and will need to be reworked by a BA/PO. It would also be possible to rewrite a prompt explaining why the proposed prioritization does not seem consistent (by providing concrete details) and see what a new prioritization would generate.
As for the acceptance criteria, while the content seems relevant, some wording is not sufficient for proper collaboration with QA. For example, in the criteria for US 10, it states “ The dashboard provides a clear and visually appealing overview. ”. This criterion is too subjective to be valid. Nevertheless, these criteria provide a good foundation that can be refined before moving to QA.
Credits: https://blog.planview.com/fr/the-revolution-is-here-generative-ai-and-project-management/
After a full day of testing and experimenting with ChatGPT, we discovered that AI can be a valuable partner in refining user stories and improving agile project management. Although AI does not replace human expertise, it proves to be a remarkable assistant, capable of generating fresh ideas and uncovering unexpected perspectives. This tool can significantly enrich the way we work, helping us create more accurate and effective solutions. We look forward to exploring other areas of project management where AI could deliver significant added value. As agile professionals, we are at the dawn of an exciting era where AI and humans collaborate to reach new heights of performance and innovation.