---
title: "Perform a content audit"
slug: "perform-a-content-audit"
abstract: "Guide to migrating an XM/XP site to SitecoreAI using the SitecoreAI Pathway app."
---

# Perform a content audit

On the **Content Audit** page of the wizard, group and map content in the **SitecoreAI Pathway** app.

![Group and map content in the source site to the target site](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/pathway/migration-app-content-audit-page14.png)

To perform a content audit:

1. On the **Content Audit** page, in the **Grouping** section, click :mdiTriangleOutline{class="rotate-90"}: **Run Grouping** to start the AI-powered audit and group pages by structure.

2. To view details about a page, such as the title and path, in the **Page templates identified** list, click a page template and, in the **Action** column, click **View** :mdiEyeOutline:.

3. In the **Template Mapping** section, click **AI Instructions** and review the system prompt provided.

4. Add additional instructions if required. Keep them simple and concise. Avoid unnecessary words. Here are some examples to help you write instructions:
   - _Always map "HomePage" to the "SubhomePage" template._
   - _Ignore any source templates prefixed with "old-" or "legacy-". Do not map these to any target template._
   - _All blog-related page types (BlogPost, BlogListing, BlogCategory) should map to the "ArticleDetail" template._
   - _Landing pages that contain "Hero" in their name should always map to the "HeroLandingPage" template._

5. When you are happy with the prompt, click **Save**.

   ![Page template discovered](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/pathway/map-content.png)

6. Click :mdiTriangleOutline{class="rotate-90"}: **Run Mapping** to map source site templates to the target SitecoreAI site templates.

7. To view details about the template mapping including the target fields, source fields, and reasoning, click **View template mapping details**.

   ![Template match details button, which displays the template name, ID, and details](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/pathway/view-template-match-details14.png)

8. Review the details in the **Template mapping details** dialog and click :mdiClose: to close the dialog when you have finished your review. To refine template mapping results, you can add additional details to the AI instructions and rerun template mapping.

9. Click [**Next**](https://doc.sitecore.com/sai/en/developers/sitecoreai/migrate-a-site-to-sitecoreai/map-content.html).

> [!NOTE]
> If, after reviewing the details of the content audit, you decide to change the AI instructions, existing mapping results are retained until you confirm you want them to be cleared.
