How an AI agent helped me migrate to Content Hub
By Derk Hudepol on 10/01/2026
Migrations are rarely hard because of the technology. They are hard because of the data: thousands of rows, inconsistent naming, broken links, duplicates, and a source that several people have edited over the years and nobody fully trusts.
On a recent Sitecore Content Hub migration I used an AI agent as a working partner for exactly that part of the job. Not a chatbot whose snippets I paste in, but an agent that could call APIs, write and run small scripts, check the results and report back. This post walks through how the project went, what the agent did at each stage, where it went wrong, and the habits that kept it safe.
The starting point
The client wanted a large library of digital assets, and the product structure around it, moved into Content Hub. The source was a workbook of spreadsheets built up over time by different people:
a main sheet of roughly 1,200 assets,
a sheet of roughly 1,500 assets that belonged to products,
three small sheets of items someone had flagged: unclear categories, broken files and links, and items needing an owner's decision.
Each row described an asset: a link to the file, a title, a type, and a set of taxonomy values such as document type, audience, region and language. The target was a Content Hub with its own taxonomy, a product catalogue to be built from scratch, and an importer that is strict about order and format.
The goal was easy to state and tedious to reach: a clean dataset that could be imported in the right order, and an import I could trust afterwards.
What "agentic" meant in practice
The difference from ordinary AI assistance is that the agent did the work instead of describing it. I gave it a goal, for example "check every link in this sheet", and it:
wrote a small script,
ran it against the real data and the real platform,
read the output,
fixed its own mistakes,
came back with a result and a list of what it was unsure about.
I stayed in charge of the decisions. The agent handled the repetitive and verifiable legwork. That split worked because most of the job could be checked automatically: does this link work, does this record exist, do these two totals match. Where a decision needed business knowledge, such as which category a product belongs in, I made it.
The project in stages
1. Validating the source
The first task was to find out how good the source really was. Rather than sampling, the agent requested every link and recorded the result.
Two things came out of that which a manual review would likely have missed:
Links that looked fine but weren't. Some responses were misleading, so a simple "does the server answer" check gave false results. The agent found this by comparing two methods of checking, switched to the reliable one and re-ran everything.
One cause behind many failures. Several dozen links failed for the same reason: a bulk find-and-replace somewhere in the sheet's history had changed a word inside paths and filenames. Restoring that word repaired dozens of rows in one go. Without looking for the pattern I would have fixed them one at a time, or written them off as lost.
In the end a large majority of links worked or could be repaired automatically. A small remainder were genuinely gone, and those were documented rather than quietly dropped.
2. Cleaning up what shouldn't be migrated
Some rows turned out not to be files at all: they were folders in the old system. Others were marked for deletion by a reviewer, or had been parked for a decision. The agent separated these into clear groups so that every row ended up in exactly one place: migrate, fix, park, or drop. Each group got a reason column, which later made conversations with stakeholders much faster.
3. Designing the product structure
The platform needed categories, product families and products before the assets could be linked to anything. The source didn't contain that structure; it was implicit in titles and filenames.
The agent proposed a three-level structure from the messy source data, and for every family it attached a confidence level. High-confidence groupings I could approve quickly. The low-confidence ones, which were mostly oddly named product ranges, were the ones I reviewed properly. That is the point of confidence levels: they tell you where to spend your attention.
4. Mapping the taxonomy
Every asset needed values from the platform's controlled lists, such as document type or customer segment. The source used free-text labels that often didn't match. The agent built a mapping between the two, applied it row by row, and validated each value against the real list so that nothing invalid could reach the importer. Where a label didn't exist in the target, it flagged the row instead of guessing.
It also applied simple, explainable rules, for example deriving a document type from the file extension and filename, and listed the rows it had changed so I could audit them.
5. Generating import files and importing
The import files were generated in the exact format Sitecore Content Hub expects, and in dependency order: categories, then families, then products, then assets. Each file was checked before I ran it: every link in it reachable, every identifier it referenced present in an earlier file, no duplicates within the file.
I ran the imports myself. The agent prepared and verified; I pressed the button.
6. Reconciling after the import
This was the stage I valued most. After the import I asked: what actually arrived? The agent pulled the full asset list from the platform and compared it with the source.
The first comparison looked terrible, with only a minority of rows matching. The cause was that the importer names an asset after the file at the end of the link, not after the name in the sheet. Once the agent matched on that instead, almost everything lined up, and the handful of rows that didn't were identified one by one, each with a reason.
7. Finding and handling duplicates
Duplicates were the trickiest part. Matching on filename alone suggested far more duplicates than there really were. The agent compared the stored fingerprint of each file's content, and the picture changed:
Genuine copies, imported more than once or sitting side by side with no links to anything. These were safe to clean up.
The same file used by several products. The importer creates one asset per row, so a manual used by three products became three assets, each linked to its own product. Deleting the "extras" would have broken those links.
Different files that happened to share a name. These were not duplicates at all.
For the second group the agent first proposed a plan, then tried it on three examples and checked the links on the survivors before running it on the rest. Afterwards it ran the duplicate check again to confirm the result and verified the links one by one. Several hundred test-environment assets were affected, and the whole clean-up was logged.
What went wrong
It was not a straight line, and the mistakes are worth describing.
Wrong numbers, stated confidently. More than once the agent reported a count that was wrong, such as the number of duplicates, or the number of rows in a backup. In every case it corrected itself once I asked how it knew and it checked against the data. The numbers were fixed because I kept asking for evidence, not because the first answer was right.
Assumptions about the importer. It assumed the platform kept the filename from the sheet. It didn't. That cost a round of rework.
Overstated findings. One report called certain rows "true duplicates" before comparing every column. After a closer look only a couple really were.
A paging bug. A first pull of assets from the platform returned the same items several times and missed others. It was caught only because the total didn't match the platform's own count.
A gap I can't explain. After the clean-up the final total was two assets lower than expected. I flagged it rather than hiding it, but I haven't found the cause.
None of these were disasters, because nothing destructive happened before a check. But each would have been if I had taken the first answer at face value.
The guardrails that mattered
Read before write. Analyse and report first. Change things only after approval.
Test on a few records. Run on three, verify, then run on the rest.
Keep logs. Every change was recorded so it could be traced or undone.
No deletion without an explicit yes, and always look at exactly what is about to be deleted. This included my own clean-up scripts.
Limit access. Use credentials scoped to the task, keep them out of the conversation, and remove them when you are done.
Work in a test environment before anything near production.
Insist on evidence. Counts, samples, before and after. "How do you know?" is the most useful question you can ask.
The results
Every link and asset checked rather than sampled.
Most broken links repaired, and the remainder documented with a reason each.
A reviewed three-level product structure and import-ready files, validated against the platform's lists.
A verified duplicate clean-up that kept product links intact.
Spreadsheets for stakeholders that listed every exception with a reason.
Much less manual work, so my time went into decisions rather than checking.
In numbers, as a rough estimate: around 2,700 rows and links checked one by one rather than sampled, several dozen broken links repaired through a single root-cause fix, every exception documented with a reason, and several hundred duplicate assets cleaned up without breaking a single product link. By my estimate, doing the validation, mapping and reconciliation by hand would have taken two to four weeks. With the agent it took about a week of my time, most of it spent on decisions rather than on checking.
What I would tell someone starting out
Give the agent a clear goal and let it verify its own work.
Ask for evidence at every step, not just at the end.
Keep a human decision before anything destructive.
Prefer small, repeatable scripts over one big clever one. They are easier to check and to re-run.
Treat data quality as the real risk. Agents are very good at surfacing it, especially systematic problems.
Reconcile after every import. Compare what you meant to load with what is there.
Write down the reason for every exception. It turns stakeholder reviews from arguments into checklists.
Expect confident mistakes and design your process so they get caught early.
Closing thoughts
The agent didn't replace migration experience. It removed the drudgery so that experience could go where it matters: deciding what the data should look like and what is safe to change.
If you are planning a migration, pick one repetitive part that can be checked automatically, such as validating links or reconciling counts, and try an agent there first. That is where I saw the biggest payoff for the least risk.