Pages

30 November, 2026

AI-Assisted Sitecore Migration, Part 1: What a Site Owner Should Know

I recently worked on a large migration from Sitecore 10.1 MVC to SitecoreAI, with a Next.js Content SDK head on Vercel and Sitecore OrderCloud for commerce. Most of it was done by AI coding agents, using Claude Code.

The short version: it is possible. AI agents did roughly 85 to 90% of the hands-on work: the code, the content generation, the integrations, the debugging and the deployments. The remaining 10 to 15% was people: decisions, domain knowledge, taste and testing as a real user.

This post is for site owners and team leads weighing a migration like this. Part 2, coming next, is for developers: how we reviewed the result with community Sitecore Agent Skills, and the technical lessons.

I cannot share who the client is, so the details stay generic. Where it stands: this is a proof of concept, not a production launch. It uses the live site's real content (the pages, articles and location information visitors see), while every integration runs against non-production APIs and test credentials: sandbox commerce, test payment and fulfilment systems, and UAT test customers and saved cards. It is not a slide-ware demo either. More than 90% of the site works end to end: the pages, the content, search, the customer portal, and the shop through checkout and payment authorization.

The Project in One Paragraph

A corporate site, hundreds of location sites in two countries, a resource library with thousands of articles, a logged-in customer portal backed by several external APIs, and an e-commerce store with a fulfilment partner and a payment gateway. The client rule was simple and strict: the new site must look exactly like the old one. Later, they also asked for a second, modern version of the shop and the customer portal, side by side with the old ones, as a showcase.

Why Migrate If It Looks the Same?

An exact copy raises a fair question: what do you get for the effort? Mostly things a visitor does not see:

  • No more upgrade projects. SitecoreAI is a managed SaaS platform. The old self-hosted version needed a major upgrade project every few years; the platform now updates itself.
  • Faster pages and simpler hosting. Pages are pre-rendered and served from a cache close to the visitor, instead of being built by a server on every request.
  • A modern base to build on. Once the copy is in place, redesigning a section is a frontend change, not another migration. The modern shop and customer portal built next to the old ones show that next step.

What You Need (and What You Do Not)

You do not need a full-fledged migration product. Everything here was built with what a Sitecore team already has: the Sitecore CLI and serialization, the platform APIs, Git, and an AI coding agent that can read the old code and content and write the new. Purpose-built tools like the migration tool or Pathway still have their place, but they are not a requirement. The old site itself, its code, its content and its live pages, is the specification.

What you do need:

  • One experienced Sitecore person to direct the work. Someone who knows what "good" looks like, makes the architecture calls and reviews the results. The agents do the volume; this person keeps it on track.
  • Access to the real systems, with guardrails: non-production environments, secrets that are never printed or committed, and approval steps before anything goes live.
  • Clear rules written down once. In this project: "match the old site exactly", "publish only what you changed", "never invent medical or product claims". The agents follow written rules very consistently.
  • An independent review pass before go-live. A fresh agent with Sitecore-specific skills, different from the agents that built it, and a human who decides which findings are real. Part 2 (coming next) shows how that went.
  • People for the business side. Content owners for decisions, someone to test as a real customer, and whoever signs off on compliance topics like cookies, prescriptions or payments.

Questions You Will Probably Ask

  • "Will it really look the same?" Yes, if you make that the rule. The agents compared the new pages with the live legacy pages and fixed the differences. Where something cannot match (for example, a third-party search product that is being replaced), they report it instead of guessing.
  • "Will we lose search traffic?" Not if SEO is part of the parity rule. Page URLs stay the same, every site gets its sitemap, and each page type carries structured data. Redirects for the few URLs that do change are on the go-live checklist; plan them early, because they are the usual cause of a traffic drop after a migration.
  • "Can our editors still work in it?" Yes. Editors work in SitecoreAI's visual page editor, and the content they know came across with the migration. The independent review checked that components are editable rather than hard-coded.
  • "Does our content and code go to the AI vendor?" Yes: the agent sends what it reads to the AI provider to work on it. Check the provider's commercial data terms with your legal team before you start, and keep customer personal data out of the agents' reach. In this project the agents had no customer logins.
  • "Is our data safe?" The same rules apply as for any contractor: least-privilege access, non-production first, secrets kept out of logs and code, and human approval for anything public. Slips did happen (see below), which is exactly why the rules matter.
  • "Who is responsible when something breaks?" The team directing the agents, as always. Small changes and quick reverts made every mistake in this project cheap to undo.
  • "Does it replace our team?" No. It changes what the team spends its time on: less typing, more deciding, reviewing and testing.

How the Work Was Organised

I worked with one lead session and several agents running in parallel. In the lead session I gave the goals, made the decisions and reviewed the results. The lead agent turned the goals into focused work for the other agents, for example "build the one-page checkout", "port the remaining portal features" or "add structured data across the site", and checked what came back.

What made that work:

  • A written memory of decisions. The client's rules went into short notes every session reads: "pages must match the legacy site exactly", "publish only the items you touched", "never commit secrets". I did not have to repeat them every day.
  • Real access to real systems. The agents could run the Sitecore CLI, call the commerce APIs, read the hosting logs and open pages in a headless browser. Without that, they would only be guessing.
  • Briefs written like for a colleague. An agent starts with nothing, so every brief had the goal, the rules, what it may and may not touch, how to verify the result, and what to report back.
  • Verification, not trust. Agent reports sound confident whether things worked or not. So every change was checked with real evidence: requests against the deployed site, screenshots, timing scripts, logs and small validators.

Where the Agents Were Really Good

  • Volume work. Content generators that read the old content and recreate it in Sitecore for hundreds of sites. Catalog and price imports into OrderCloud. Migrating saved payment tokens (for UAT test users only). This is the work that usually takes weeks of careful, boring effort.
  • Parity checks. Comparing the live legacy pages with the new ones and finding exactly what was different. For example, the new cart looked empty because the legacy CSS hid the cart lines and the old JavaScript showed them at runtime.
  • Integration plumbing. Commerce setup through the API, checkout, payment authorization, and sending orders to the fulfilment partner in the background.
  • Debugging from evidence. When a deployment kept failing with a vague message, the agent reproduced the cloud build step locally, found the real error, and added a check so the next broken deploy stops in a minute instead of after a long upload.

Where It Went Wrong

AI agents make mistakes, just like people. In most cases I only noticed a symptom; the agents found the cause and fixed it.

  • An API call that "succeeded" and did nothing. The checkout saved the shipping address to the wrong commerce endpoint. The API answered "success" and saved nothing. I only saw that nothing happened after choosing an address; the agent found the cause by reading the cart data directly instead of trusting the screen.
  • Secrets in local output. Twice, a secret ended up in the agent's own tool output on my machine. Both times the agent said so itself, and both secrets were rotated. Nothing left the machine, and the scripts now strip credentials from anything they print. "Never print secrets" is a rule you have to keep enforcing, not one you write down once.

Neither was a disaster, because all the work ran against non-production systems first. That is the part to insist on when agents do the work.

Where a Human Still Mattered

Domain judgement. For the modern shop, the agent added a "Pairs well with" row on product pages. Some of those products need a professional's prescription. The client's question was short: "these are medical products, how will you come up with that?" They were right. Inventing pairings for prescription products is giving advice. The rule became: prescription products never appear in recommendations, anything invented for the demo carries a visible Sample tag, and no fake ratings ever go into search data. That rule then went into the shared notes, so every later agent followed it.

Architecture decisions. Where background jobs should run, how customer accounts are matched for a bulk migration, and which shop becomes the main one. The agents laid out the options and trade-offs. The decisions were ours.

Taste. The holiday lights on the modern shop's hero took four rounds: wrong colours, too big, still too big, then right. An agent will happily produce something. Knowing when it looks right is still your job.

Testing as a real user. The agents had no customer logins, on purpose. Signed-in flows like checkout and the customer portal were tested by a person, with test scripts the agents wrote.

Wrapping Up

A migration of this size, with AI agents doing 85 to 90% of the work, is not a future idea. This one is still a proof of concept, but a working one, with more than 90% of the site working end to end. It needs no dedicated migration product: the standard Sitecore tooling, an AI agent, and an experienced person directing it. Work that normally takes a team weeks happened in days, and the agents were good at exactly the parts people find tedious.

The last 10 to 15% is what keeps it safe: clear rules and briefs, verification with real evidence, an independent review, and people for the decisions, the domain knowledge and the final "does this look right".

Coming next, in Part 2: that independent review: what community Sitecore Agent Skills found in this migration, and where the skills themselves got it wrong.

03 November, 2026

Sitecore.MarkdownForAI: An Ask AI Button for Sitecore MVC Pages

More and more readers do not read an article to the end anymore. They copy it into ChatGPT or Claude and ask their own questions. I wanted to make that easy on Sitecore sites, so I built a small open-source module: Sitecore.MarkdownForAI. It adds an Ask AI button to your pages, and gives the AI assistant a clean copy of the page to read.

It works on Sitecore 10.1 to 10.5 with MVC renderings.

The Problem: AI Reads Your Footer Too

When an AI assistant opens an article page, it gets the full HTML: the mega menu, the search box, the cookie banner, the footer with forty links and kilobytes of script. The article is in there somewhere. The assistant has to dig it out, spends its context on the noise, and sometimes answers from the footer instead of the article.

What the Module Does

Two things:

  • An Ask AI button. Readers pick ChatGPT, Claude or Perplexity from a dropdown, and the assistant opens with the page already in the prompt.
  • A Markdown version of every page. Add .md to any URL and you get the same page as Markdown, without the header, menus or footer. This is the URL the button hands to the assistant.
https://www.example.com/articles/dental-care-for-dogs       the page, with the Ask AI button
https://www.example.com/articles/dental-care-for-dogs.md    the same page as Markdown

Here is a sample article page on Sitecore MVC, with a header, menu and search box, and the Ask AI button under the summary:

Sample article page on Sitecore MVC with the Ask AI button under the summary

The Ask AI Button

Ask AI dropdown with Open in ChatGPT, Open in Claude, Open in Copilot, Copy page as Markdown and View as Markdown

The module ships with ChatGPT, Claude and Perplexity. On my test site I added Copilot and turned Perplexity off, just by editing items, which is what you see above. The dropdown has one entry per assistant, plus two more:

  • Open in ChatGPT / Claude / Perplexity: opens the assistant in a new tab with a prompt like "Read this page so I can ask you questions about it: https://www.example.com/articles/dental-care-for-dogs.md".
  • Copy page as Markdown: copies the clean page to the clipboard, for any other AI tool.
  • View as Markdown: opens the .md version in a new tab.

Nothing about the button is hard-coded. New assistants show up every few months, and the prefill links they accept (such as https://chatgpt.com/?q=) are not documented public APIs, so they can change. Everything is a Sitecore item under /sitecore/system/Modules/Markdown For AI/Ask AI:

ItemFieldValues
Ask AI (settings)Button LabelButton text, for example "Ask AI about this page"
PromptText sent to the assistant. {url} = Markdown URL, {page} = page URL, {title} = page title
Show Copy MarkdownChecked: show Copy page as Markdown
Show View MarkdownChecked: show View as Markdown
Max Link LengthLongest assistant link before the page is copied to the clipboard instead (default 6000)
ChatGPT, Claude, Perplexity or any assistant you addAssistant NameFor example ChatGPT
Link PatternAn https link where {prompt} is replaced with the prompt, for example https://claude.ai/new?q={prompt}. Without {prompt}, the page is copied to the clipboard and the assistant opens, ready to paste
Menu LabelMenu text (empty: "Open in" and the name)
HintSecond line of the menu entry
PromptA prompt for this assistant only (empty: the Ask AI prompt)
IconA small image from the Media Library
EnabledUnchecked: hidden from the dropdown

To add an assistant, an editor inserts one item and publishes. No code, no deploy. The dropdown follows the content tree order. For a different set per site, create another Ask AI settings item and pick it as the rendering's data source. Upgrades never overwrite these items.

The button is a rendering called Ask AI. You can add it in three ways:

  • Once for every article: add it to the article template's Standard Values.
  • Per page: put an ask-ai placeholder near the article title, and editors can add the button in the Experience Editor.
  • In code: call @Html.AskAi() in a view.

The Markdown Version

For the sample article page shown earlier, this is what /articles/dental-care-for-dogs.md returns:

---
title: "Dental Care for Dogs: A Simple Home Routine"
description: "Why dental disease is so common in dogs, the signs to look for, and a five-minute daily routine."
url: "https://www.example.com/articles/dental-care-for-dogs"
language: "en"
last_updated: "2026-10-29"
---

# Dental Care for Dogs: A Simple Home Routine

## Why it matters

Most dogs show some sign of dental disease by the age of three. ...

## What else helps

| Option | How it helps | Notes |
| --- | --- | --- |
| Dental chews | Scrape plaque mechanically | Pick a size that cannot be swallowed whole |

No header, no menu, no newsletter, no footer. Headings, lists, tables and links stay. Every Markdown response also sends Link: rel="canonical" pointing to the HTML page and X-Robots-Tag: noindex, so search engines keep indexing the HTML page and not the copy.

How it decides what goes in:

  • The layout is never rendered, only its placeholders. Anything the layout file writes directly (a header partial, scripts) is gone automatically.
  • Excluded placeholders: renderings in the placeholders you list (by default header|footer|navigation|nav|breadcrumb) are skipped at any depth, before their controller or view runs. Dynamic placeholders such as footer-{GUID}-0 match too.
  • data-md-ignore on any element removes it, for example a share bar inside the article body.

The .md suffix is removed before Sitecore resolves the item, so wildcard items, custom item resolvers and language prefixes resolve the same item as for the HTML page. Only Request.RawUrl still shows the .md URL, so a custom resolver should read Request.Path instead.

Caching

Rendering a page and converting it costs CPU, so the finished Markdown is cached in memory and served early in httpRequestBegin, before Sitecore resolves the layout. On my test instance, the first request for an article took about 130 ms and the cached ones about 15 ms.

  • Cleared on publish, on every server.
  • Only successful pages are cached. Not-found and error pages are never stored.
  • Never cached: logged-in visitors, and content from the master database (local development and preview).
  • Your HTML rendering cache is not touched. A Markdown request does not read or write Sitecore's rendering cache.

How to Install

  1. Install Sitecore.MarkdownForAI-<version>.zip with the Installation Wizard. If you deploy through CI, there is also a NuGet package and the Sitecore CLI serialization.
  2. Rename App_Config/Include/MarkdownForAI/z.MarkdownForAI.Site.config.example to z.MarkdownForAI.Site.config and set your site name. Your settings live only in this file, so upgrades never touch them.
  3. Publish the Markdown For AI items.
  4. Add the Ask AI rendering to your page.

The .md pages are served on ContentDelivery and Standalone servers. All items live under Modules folders, so a Helix solution that serializes its own Foundation, Feature and Project folders never deletes them.

Settings

Most sites only change Sites and ExcludedPlaceholders. Every setting goes in z.MarkdownForAI.Site.config with the MarkdownForAI. prefix:

<setting name="MarkdownForAI.Sites" set:value="mysite" />
SettingDefaultPossible values
Enabledtruefalse turns off the .md pages
SiteswebsiteSite names, pipe separated, or * for every site except Sitecore's own. On other sites the button sends the normal page URL
Extension.mdThe suffix that asks for Markdown
ExcludedPathPrefixes/sitecore/|/-/|/api/|...Paths never treated as Markdown requests
ExcludedPlaceholdersheader|footer|navigation|nav|breadcrumbPlaceholder keys left out, at any depth
PlaceholdersemptyTop-level placeholders to render, in this order. Empty: all on the page
SkipTagsscript|style|form|nav|...HTML elements always removed
IgnoreClassesemptyCSS classes whose elements are removed
IncludeImagestruefalse drops images
TitleFieldsTitle|Page Title|HeadingFields for the title; the first non-empty one wins, then the display name
DescriptionFieldsMeta Description|...|AbstractFields for the description; the first non-empty one wins
FrontMatterFieldstitle|description|url|language|last_updatedFront matter lines to write, or none
CacheMinutes30Minutes to keep a page in memory. 0 turns the cache off
CacheSizeMB100Memory limit of the cache
CacheVaryByQueryStringfalsetrue only if components change their output based on the query string
NoCacheDatabasesmasterDatabases whose content is never cached
NoIndexHeadertruefalse stops sending X-Robots-Tag: noindex
Schemeemptyhttps to force it in generated URLs, for example behind an SSL offloader
AskAi.ScriptUrl/scripts/markdownforai/ask-ai.jsWhere the button's script is served from. Empty: load it yourself

What Is Not in This Version

I kept the first release small on purpose. These are not included:

  • WebForms pages: only MVC layouts get a .md version. On other layouts the button still works with the normal page URL.
  • llms.txt, field mappings, per-component rules and discovery headers. They are written up in the repository's docs/extending.md, so they can come back when there is a need.
  • Local and intranet sites: the assistant must be able to reach the .md URL. On a local host, use Copy page as Markdown and paste it.

Wrapping Up

  • Readers ask ChatGPT, Claude or Perplexity about your article with one click.
  • The assistant reads a clean Markdown copy of the page, not your menus and footer.
  • The assistants and the prompt are Sitecore items, so adding the next one is an editor task, not a deploy.
  • Install the package, set your site name, publish, and add the rendering.

If you are working on something similar, I would love to hear how you approached it. If you find the module useful, a star on GitHub helps with visibility.

Links

09 October, 2026

Exploring SitecoreAI Agentic Studio - And an Apply Changes Gotcha

I have been exploring SitecoreAI Agentic Studio recently. If you have not tried it yet, it is the AI workspace inside SitecoreAI where you can chat with pre-built agents, build your own, and chain them into multi-step workflows called Flows.

What Is Agentic Studio

When you open it, you see five sections: Actions (chat history), Agents (pre-built and custom agents), Flows (multi-step workflows), Signals (AI-driven trends and research), and Spaces (organized view of conversations and artifacts).

What I Tried

I started by opening a Chat and asking it to write a short blog post. That created a text artifact inside Studio. Then I created a Space from that conversation, which grouped everything together but did not change the artifact type.

Next I ran the Quote Extractor workflow against the blog content. That produced an extract artifact. Then I ran the Blog Writing Agent, which generated a content_item artifact with its originItemId pointing back to the Quote Extractor output.

The chain: Chat (text) > Space > Quote Extractor (extract) > Blog Writing Agent (content_item). None of these are real Sitecore CMS items.

The Apply Changes Issue

The Blog Writing Agent's output showed an "Apply Changes" button. That button implies you can push the content into a Sitecore page. But there is no Sitecore page behind this artifact. The originItemId points to the Quote Extractor output, which is an internal Studio artifact. The componentMap is null. When I clicked the button, it did not work.

The UI should check whether the origin is a real Sitecore item before showing the button. If the origin is another Studio artifact, "Apply Changes" should be hidden or disabled.

Wrapping Up

Agentic Studio has a lot of potential. The chat, space, and workflow pipeline feels natural. I am planning to dig deeper into custom agents and Flows, and will share more as I go.




For some reason, I was not able to submit the feedback to Sitecore. I will find another way to send it.



blockquote { margin: 0; } blockquote p { padding: 15px; background: #eee; border-radius: 5px; } blockquote p::before { content: '\201C'; } blockquote p::after { content: '\201D'; }