AI agents: the content index is at /llms.txt. Every page is also available as Markdown — send the request header Accept: text/markdown, or append .md to the page URL.
Xperience Docs

Cookie consent

We use necessary cookies (opens in a new tab) to run our website and improve your experience while browsing. Additional cookies are only used with your consent. You may revoke your consent on the Cookies Policy (opens in a new tab) page or in your browser at any time.

Configure (opens in a new tab)
  • Documentation
    Administration interface basicsDevelopers and adminsBusiness usersChangelogGlossary
  • Guides
    Welcome to Xperience by KenticoAdministration interface basicsCustomer journeysDigital marketingConfigurationDevelopmentArchitectureUpgrade to Xperience by Kentico
  • Training
    For AdminsFor Business usersFor DevelopersFor Solution architects
  • API Examples
    ConfigurationContent managementDevelopmentDigital marketing
  • Changelog
    Documentation updatesSecurity advisories
  1. Home
  2. Developers and admins
  3. Configuration
  4. AIRA configuration
  5. Display AI content labels

Display AI content labels


Was this page helpful?

Send us feedback Go back to top
  • Community Questions & Answers (opens in a new tab)
  • Contact support (opens in a new tab)

Xperience records which fields of pages, emails, content items, and headless items contain content generated or modified by AI. Xperience sets the marking automatically when AIRA generates or refines content, editors can set or remove it in the administration, and AI agents can set it through the Management MCP server. The marking is the same regardless of its source. See AI content marking.

Xperience can't recognize AI-generated text by itself. Text that editors create with AI tools outside Xperience and then add to a field stays unmarked until someone marks the field.

The marking is stored as machine-readable data with the content. Visitors of your website or users of your other channels don't see it unless your implementation displays it. This page describes how to retrieve the marking and use it to display labels.

Disclosing AI content is your responsibility
Xperience provides the marking, but it doesn't display AI labels to your audience or decide whether your content needs them. Regulations such as the EU AI Act, or other laws that apply in your region, may require you to disclose AI-generated or AI-modified content to the people who read it. Assess which requirements apply to your project and implement the labels accordingly.

AI provenance data

Xperience stores the marking, also called AI provenance, separately for each field and language variant of an item. Each marked field has one of the following origins, represented by the AiProvenanceOrigin enumeration from the CMS.ContentEngine namespace:

  • AiGenerated – the field's content was generated by AI.
  • AiModified – content written by a person was modified by AI.

Fields without a marking have the None origin.

Retrieve the marking

The AI provenance is not retrieved by default. Use the option that matches how you retrieve content:

  • Content item query – call WithAiProvenance in the subquery parameters, and read the result using the AI provenance extension methods.
  • ContentRetriever API – call WithAiProvenance in the additional query configuration. See Retrieve AI provenance.
  • Headless channels – query the aiProvenance sub-field of the _system field. See AI content marking.
  • Page Builder and Email Builder widgets – call GetAiProvenanceOrigin on the widget's property model. The widget needs to have the marking enabled. See Enable AI content marking for Page Builder and AI content marking for widget properties for Email Builder.

Display AI labels

The following example retrieves an article page with its AI provenance and passes the origin of the article's text to the view. The view displays a label above the text if the text is marked.

C#ArticleController.cs
using System.Threading.Tasks;

using CMS.ContentEngine;
using Kentico.Content.Web.Mvc;
using Microsoft.AspNetCore.Mvc;

public class ArticleController(IContentRetriever contentRetriever) : Controller
{
    public async Task<IActionResult> Index()
    {
        var article = await contentRetriever.RetrieveCurrentPage<ArticlePage>(
            parameters: RetrieveCurrentPageParameters.Default,
            // Includes the AI provenance of the page's fields
            additionalQueryConfiguration: query => query.WithAiProvenance(),
            cacheSettings: new RetrievalCacheSettings(
                cacheItemNameSuffix: nameof(RetrieveCurrentPageQueryParameters.WithAiProvenance)));

        var model = new ArticleViewModel
        {
            Text = article.ArticleText,
            TextOrigin = article.GetAiProvenanceOrigin(nameof(ArticlePage.ArticleText))
        };

        return View(model);
    }
}
C#ArticleViewModel.cs
using CMS.ContentEngine;

public class ArticleViewModel
{
    public string Text { get; init; }

    // AI origin of the 'ArticleText' field
    public AiProvenanceOrigin TextOrigin { get; init; }
}
cshtmlIndex.cshtml
@using CMS.ContentEngine
@model ArticleViewModel

@if (Model.TextOrigin != AiProvenanceOrigin.None)
{
    <p class="ai-label">
        @(Model.TextOrigin == AiProvenanceOrigin.AiGenerated ? "AI generated" : "AI modified")
    </p>
}
<div class="article-text">
    @Html.Raw(Model.Text)
</div>

The marking applies to the whole field, so place the label where it clearly relates to the field's content, for example, directly above or below it.

Limitations

Keep the following in mind when you rely on the marking:

  • Field-level marking – the marking applies to the whole field, even if AI generated or modified only part of its content.
  • Supported fields – the marking is available for fields that use the Text input, Text area, or Rich text editor form component, or a custom form component with the marking enabled. See Enable AI content marking.
  • No marking in the text itself – Xperience doesn't embed watermarks or other markers into the text. If the text is copied or exported without the provenance data, for example, as plain text, the AI origin can't be detected from the text alone.
  • Downstream systems – systems that receive your content, such as external search indexes or integrations, keep the marking only if they retrieve and store the provenance data.
  • Manual markings – Xperience can't verify the origin of content that editors mark manually, and doesn't record whether a marking was set by AIRA or by a person.
  • External AI tools – Xperience can't recognize AI-generated text. Content created with AI tools outside Xperience is marked only if an editor marks it manually, if the AI agent that writes it through the Management MCP server declares it, or if your own code sets the marking when it creates or updates content items or pages.

On this page

  • AI provenance data
  • Retrieve the marking
  • Display AI labels
  • Limitations

Related pages

  • AIRA
  • AIRA configuration
  • Use the Management MCP