In a recent Sitecore XM Cloud project, we faced a challenge: how to use AI to assist content authors in improving their content while ensuring it aligns with the brand's tone and voice. The goal was to allow authors to click a button in Sitecore, send the serialized content to a private AI model (GPT), and receive AI-generated review comments tailored to the brand’s guidelines.
In this blog, I’ll walk you through the technical implementation of this AI-powered content review system. Let us look at the key aspects such as setting up a custom AI GPT, integrating it with Sitecore XM Cloud, managing content serialization and API communication, and displaying review comments within Sitecore.
Step 1: Setting up a private AI GPT model
Instead of using a public AI model, we set up a private GPT model trained on the brand’s tone, voice, and knowledge base. This ensures the AI-generated feedback is brand-aligned.
We used Azure OpenAI Service to host our private GPT model with a custom dataset containing:
- Brand tone and voice guidelines
- Existing well-written content for reference
- Rules for grammar, consistency, and clarity
Setting up Azure OpenAI service
1. Deploy a private OpenAI GPT Model in Azure OpenAI:
- Train the AI model with the brand's knowledge base by fine-tuning it with well-crafted content samples.
- Deploy the trained model and obtain the API endpoint and key.
Step 2: Integrating AI review button in Sitecore XM Cloud
Next, we add a “Review with AI” button in the Sitecore XM Cloud editor. When clicked, it will:
- Serialize the page content
- Send the data to the AI API
- Display AI-generated review comments
Creating a custom Sitecore command
We create a custom Sitecore Ribbon Button and command in the editor:
1. Register the custom button
Modify core database configurations to add the AI review button:

2. Implement the AI Review Command

This command fetches serialized page content, calls the AI review API, and shows the AI-generated comments in a pop-up.
Step 3: Serializing page content for AI analysis
For accurate AI recommendations, we need to serialize the page content before sending it to the AI model. We include:
- Page fields (title, body, meta descriptions)
- Content blocks
- Localization details
Serializing content in Sitecore

This ensures we send structured content to the AI API for review.
Step 4: Displaying AI review comments in Sitecore
Once the API returns review comments, we display them in Sitecore.
Enhancing UI with AI feedback panel
Modify the Sitecore command to display AI feedback elegantly:

In AIReviewPanel.aspx, display comments in a custom review panel.
.jpg)
Conclusion
AI-powered content review in Sitecore XM Cloud/XP/XM is now just one click away, offering real-time feedback that aligns with your brand voice. By leveraging private AI models, this solution ensures brand consistency while making content creation more efficient. Content authors benefit from instant feedback and AI-driven recommendations tailored to their specific needs.
Looking ahead, we’re expanding AI feedback to include inline suggestions, implementing sentiment analysis for deeper user engagement insights, and enhancing AI models with real-time content analytics. I’d love to hear your thoughts on AI-powered content optimization. Drop me a note at marketing@altudo.co, and let’s discuss.