> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/rules-and-guidelines.md). Agents can also search and read this documentation through its [MCP server](https://docs.walnutai.ai/~gitbook/mcp).

# Rules & Guidelines

Rules & Guidelines allow you to provide project-specific instructions, define AI response formats, and upload reference documents that WalnutAI uses when performing AI-powered actions within the project.

This section consists of three components: **System Instruction, Guidelines, and Documents**.

* **System Instruction:** Use System Instruction to define the overall context of your project, including its purpose, intended users, business context, and preferred terminology and tone.
  * The system instruction is applied to every AI action performed within the project, ensuring consistent and contextually relevant responses.
  * **Example:** If you are working on a healthcare project, you can provide an instruction such as: *"This project is designed for healthcare application testing. Use appropriate healthcare terminology and maintain a professional tone when generating requirements, user stories, and test cases."*

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2Fc2fpRoU9Jll83rtxWYHp%2FScreenshot%202026-11-04%20at%2012.54.46%E2%80%AFPM.png?alt=media&amp;token=d58d5d74-9831-428b-afda-4c6414da4871" alt=""><figcaption></figcaption></figure>

* **Guidelines:** Use Guidelines to define specific rules and formatting requirements that the AI should follow when generating content.
  * Each guideline can be independently enabled or disabled based on your project requirements.
  * For example, you can define guidelines for:
    * **User Story Format:** Generate user stories using the format: As a \[role], I want \[feature], so that \[benefit].
    * **Test Case Format:** Include preconditions, test steps, and expected results in every test case.
    * **Naming Conventions:** Follow predefined naming conventions when generating requirements and test cases.
    * **Documentation Standards:** Maintain a consistent structure and terminology across generated outputs.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FtRFHua2RucJ68z1whbbx%2FScreenshot%202026-11-04%20at%2012.55.36%E2%80%AFPM.png?alt=media&amp;token=9169fac5-2e03-4729-9422-8c235be45a90" alt=""><figcaption></figcaption></figure>

* **Documents:** Use Documents to upload project-related reference files that provide additional context to WalnutAI.
  * WalnutAI reads each uploaded document once and extracts relevant information, including terminology, business rules, screens, and features. This information helps guide AI-generated outputs throughout the project.
  * **Supported File Formats:** PDF, TXT, MD, JSON, DOC, and DOCX (Maximum file size: 10 MB per file).
  * **Examples of documents you can upload:** Business Requirement Documents (BRDs) or Technical Specifications.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FOFAbKmY17vP3cX3DXPfs%2FScreenshot%202026-11-04%20at%2012.56.58%E2%80%AFPM.png?alt=media&amp;token=951739a4-ca14-4254-97c1-ca0da17e787f" alt=""><figcaption></figcaption></figure>

Uploading relevant documents helps WalnutAI understand the project requirements and generate more accurate and context-aware outputs.
