# Generate Acceptance Criteria using AI

SimplifyQA leverages AI to automatically generate acceptance criteria based on the user story description. This feature ensures that acceptance criteria are well-structured, precise, and aligned with the intended functionality, reducing manual effort and improving consistency across teams.

### What is Acceptance Criteria?

Acceptance criteria define the conditions that a user story must meet to be considered complete. They serve as a guideline for developers, testers, and stakeholders to validate whether a feature works as expected.

### Example of a User Story & AI-Generated Acceptance Criteria in SimplifyQA

**User Story Description:**

*"As a customer, I want to reset my password so that I can regain access to my account."*

**AI-Generated Acceptance Criteria:**

* The customer must be able to access the "Forgot Password" option from the login page.
* The system must prompt the customer to enter their registered email address or username to initiate the password reset process.
* The system must validate the entered email address or username to ensure it exists in the database.
* If the provided email address or username is invalid, a clear error message must be displayed (e.g., "Email address not found").
* Upon valid input, the system must send a password reset link or OTP to the customer's registered email address or phone number.
* The password reset link or OTP must expire after a predefined duration (e.g., 15 minutes).
* The customer must be able to access the password reset page via the reset link or enter OTP to proceed with resetting their password.
* The password reset page must enforce security requirements for new passwords (e.g., minimum length, mix of uppercase/lowercase/special characters, no reuse of old passwords).
* A confirmation message must be displayed upon successful password reset (e.g., "Your password has been reset successfully").
* The customer must be able to log in with the newly reset password.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FmlPdhaKNvWTRXhgd7L41%2Fai.png?alt=media&#x26;token=7b597728-0cf5-4477-8ae6-dde780eae400" alt=""><figcaption></figcaption></figure>

### How AI-Generated Acceptance Criteria Helps

* **Saves Time:** Eliminates the need to manually write acceptance criteria for every user story.
* **Ensures Clarity:** Generates well-structured, testable conditions that align with project goals.
* **Reduces Errors:** Minimises ambiguity and ensures all key scenarios are considered.
* **Enhances Collaboration:** Provides a clear reference for developers, testers, and stakeholders.

### How to Use AI-Generated Acceptance Criteria in SimplifyQA

* **Write a User Story** – Enter the user story description in SimplifyQA.
* **AI Processing** – Click on '**Ask AI'**, the AI engine analyses the story and suggests acceptance criteria.
* **Review & Edit** – Users can refine the AI-generated criteria to fit specific requirements.

### Frequently Asked Questions (FAQs)

<details>

<summary>Can I edit the AI-generated acceptance criteria?</summary>

Yes, you can review, refine, or modify the AI-generated criteria to better align with your project requirements.

</details>

<details>

<summary>Can I disable AI-generated acceptance criteria if I prefer to write them manually?</summary>

Yes, you can choose to manually define acceptance criteria instead of using AI-generated suggestions.

</details>

<details>

<summary>What happens if the AI-generated acceptance criteria are not relevant to my user story?</summary>

You can edit or remove irrelevant criteria and provide feedback to improve future AI suggestions.

</details>

<details>

<summary>How do I ensure that AI-generated acceptance criteria align with my business requirements?</summary>

To get the most relevant criteria, ensure your user story descriptions are clear, specific, and well-structured. You can also customise the suggested criteria as needed.

</details>
