---
title: "AI-assisted content extraction"
slug: "ai-assisted-content-extraction"
abstract: "Use AI to extract text from an input source, and structure its content to create a new item."
---
# AI-assisted content extraction

The AI-assisted content extraction feature in Experience Platform lets you extract text from various input sources, including files, URLs, and typed text. It then transforms the extracted content into a fully structured item based on your chosen template and optional brand kit. The new item is created automatically, with content mapped into the appropriate fields.

You can access this feature from the context menu in the [Content Editor](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/the-content-editor.html "The Content Editor"), without needing to manually format or create the item yourself.

> [!note]
> **Before you begin**
> You must have a `sitecore\Sitecore AiClient Item Create Content Extraction` role assigned to use this feature. If you are not an administrator, ask one to assign the role for you. See [Add or remove AI roles for a user](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/add-or-remove-ai-roles-for-a-user.html "Add or remove AI roles for a user").

To extract content and create a new item:

1. In the Content Editor, select the item under which you want to create the new item.
2. Right-click the item and click **Insert** > :mdiCreation: **Insert from extraction**.

    ![Right click the item under which you want to create a new one, then click Insert > Insert from extraction.](https://doc.sitecore.com/api/markdown-image/xp/en/users/105/sitecore-experience-platform/images/ai-content-extraction-1.png)

3. In the **Content Extraction** dialog, optionally, in the **Brand Kit** field, select a [brand kit](https://doc.sitecore.com/stream/en/users/sitecore-stream/en/brand-kits.html). You can only select a brand kit if your organization uses Stream Premium and has already set up a brand kit.

    ![In the Content Extraction dialog, select a brand kit, template, and provide your source content.](https://doc.sitecore.com/api/markdown-image/xp/en/users/105/sitecore-experience-platform/images/ai-content-extraction-2.png)

4. In the **Template** field, select a template you want to apply to the new item. You can only select a template that's defined in your XM/XP instance.
5. Provide your source content using one of the following tabs:
    - **File** - upload a file with one of the following extensions: .jpg, .jpeg, .png, .webp, .txt, .pdf, or .json.
    - **URL** - paste a link to file with one of the following extensions: .jpg, .jpeg, .png, .webp, .txt, .pdf, or .json.

        > [!important]
        > If the PDF contains an embedded image with text, AI might not extract it accurately. If you can highlight and copy the text in the PDF, extraction should work as expected.

    - **Text** - enter or paste typed content.
6. Click **Insert**. Stream processes your input, extracts its content, and structures it using your selected template and brand kit.

    When processing is complete:

    - A new item is created under the selected parent.
    - The item is saved automatically, and its file name is automatically generated.

        If a file with the same name already exists, the system will append the name with `-1`, `-2`, and so on to avoid duplicates.

    - Extracted content is mapped into editable fields.

    ![After processing, a new item is created under the selected parent and saved with the extracted content.](https://doc.sitecore.com/api/markdown-image/xp/en/users/105/sitecore-experience-platform/images/ai-content-extraction-3.png)

7. You can continue refining the new item in the Content Editor using any of these options:
    - Manually edit the item as needed.
    - Use [Content generation](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/ai-assisted-content-generation.html "AI-assisted content generation") to rewrite the content of any field or generate variants of it.
    - Creating language versions of your item with [Item translation](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/ai-assisted-item-translation.html "AI-assisted item translation")