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.
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.
The AI provenance is not retrieved by default. Use the option that matches how you retrieve content:
WithAiProvenance in the additional query configuration. See Retrieve AI provenance.aiProvenance sub-field of the _system field. See AI content marking.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.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.
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);
}
}using CMS.ContentEngine;
public class ArticleViewModel
{
public string Text { get; init; }
// AI origin of the 'ArticleText' field
public AiProvenanceOrigin TextOrigin { get; init; }
}@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.
Keep the following in mind when you rely on the marking: