> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit Preparation

> AI-powered audit readiness assessment that generates preparation recommendations for a selected upcoming audit.

This screen uses AI to generate audit readiness recommendations for a selected audit at route `/gr/ai/audit-prep`.

## Overview

The AI Audit Preparation page requires the AI Compliance Advisor to be enabled in GR settings. When disabled, it shows a blocked state with a link to settings. When enabled, users select an audit from a dropdown of all audits, then click **Run Preparation** to generate an AI readiness assessment. The prompt sent to the AI includes the audit title, type, status, and scheduled date. Previously generated preparation results are listed below the selector using `useAIAuditPrepList`. An AI chat panel is accessible via the **Ask AI Advisor** button.

## Who it's for

Access follows your organization's role and module configuration. AI Compliance must be enabled in GR settings.

## Before you start

* AI Compliance must be enabled in GR settings (`/gr/settings`).
* At least one audit must exist to select for preparation.

## Steps

<Steps>
  <Step title="Navigate to Audit Preparation">Go to `/gr/ai/audit-prep`.</Step>
  <Step title="Check feature availability">If the AI Compliance Advisor is disabled, click **Go to Settings** and enable it.</Step>
  <Step title="Select an audit">Use the audit dropdown to choose the audit you are preparing for.</Step>
  <Step title="Run preparation">Click **Run Preparation** to generate an AI readiness assessment for the selected audit.</Step>
  <Step title="Review results">Review the preparation results listed below the selector.</Step>
  <Step title="Ask the AI Advisor">Click **Ask AI Advisor** to open the compliance chat panel for follow-up questions.</Step>
</Steps>

## Key concepts

* **AI Compliance Advisor** — must be enabled in GR settings before this screen is functional.
* **Preparation prompt** — constructed from audit title, type, status, and scheduled date; passed to the AI generation function.
* **Prep results** — stored results returned by `useAIAuditPrepList`, optionally filtered by the selected audit ID.

## Related

<Columns cols={2}>
  <Card title="Governance & Compliance" icon="scale-balanced" href="/gr/overview">
    Governance & Compliance core overview.
  </Card>

  <Card title="Governance & parity" icon="clipboard-check" href="/governance/index">
    Documentation coverage and governance.
  </Card>
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/gr.tsx
  * src/cores/gr/pages/AIAuditPrep.tsx
  * src/cores/gr/hooks/useAIComplianceEnabled.ts
  * src/cores/gr/ai/index.ts
  * src/cores/gr/hooks/useAuditList.ts
</Accordion>
