---
title: Ex6: Migrate your site
slug: saga-hol/ex6-migrate-your-site
createdAt: 2026-08-16T13:40:29.252Z
---

*We will now use **AEM Coder**, also known as the **Experience Modernization Agent**, to create an AEM Edge Delivery Services implementation of the **NatWest homepage.***

*The target implementation should reproduce the homepage’s **general structure, responsive layout, component patterns, and interaction model** while using lab-safe placeholder content and assets.*

## Step 1 — Check the already migrated site

To prepare the author lab, **we have created a NatWest EDS Site, using only the Experience Modernization Agent!**

Take a look at the result here: [https://main--natwest-da--skiper76.aem.page/](https://main--natwest-da--skiper76.aem.page/)

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/brkQMD4Yt63TZs7-KEkOE_image.png)

:::hint{type="info"}
Of course, there have been a few adjustments and prompt iterations, but thanks to EMA, **this demo site creation took only about \~2hours.&#x20;**
:::



## Step 2 — Migrate your Page with one prompt

1. Go back to [aemcoder.adobe.io](https://aemcoder.adobe.io) tab, and in the chat, **paste this prompt:&#x20;**`Migrate this site to AEM, only the Homepage: https://www.natwest.com/`

   ```none
   Migrate a page to AEM.
   Migrate only the homepage of NatWest Bank: https://www.natwest.com/
   Rebuild all blocks to match NatWest styling, and don't reuse blocks from wknd.
   ```
2. If prompted, provide the following answers:

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/qtDKjp5WsNm4TNKENO51S_image.png" size="50" isUploading="false" width="868" height="1554" darkWidth="868" darkHeight="1554" showCaption="false"}

:::hint{type="info" indent="1"}
Notice that if not enough context is provided in our prompt, the agent will ask questions to prepare the best answer possible.&#x20;
:::

3. **The Agent will first craft a plan** on how to do this task, when finished, validate the plan and switch to **Execute Plan:**

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/ckODeoETBdaR34N4BeRLk_image.png" size="70" isUploading="false" width="870" height="402" darkWidth="870" darkHeight="402" showCaption="false" indent="1"}

4. **The Agent will now execute the plan;&#x20;**&#x69;t will take quite some time as it is a huge task (5-10 minutes).&#x20;
5. Take a coffee break, or enjoy inspecting the Agent thinking. You can reveal more of the AI thinking on the top "**Task Progress":**

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/q-NOfMmqsKlopG2l-7-uz_image.png" size="70" isUploading="false" width="884" height="894" darkWidth="884" darkHeight="894" showCaption="false" indent="1"}

:::hint{type="info" indent="1"}
While you take a coffee, **the agent will:**

- Normalize the NatWest homepage URL.
- Scrape the homepage content and structure.
- Analyze the page layout and section hierarchy.
- Identify existing AEM blocks that can be reused.
- Create a page-template skeleton.
- Generate parsers for the detected page blocks.
- Generate transformers to convert source content into AEM-compatible content.
- Bundle the import script and supporting logic.
- Run a single-page import for the homepage.
- Verify content completeness and confirm the generated output path.
- Extract design tokens such as colors, typography, spacing, and layout values.
- Apply the design tokens within the homepage scope.
- Implement or adjust block-level CSS and JavaScript for visual fidelity.
- Preview the imported homepage.
- Compare the AEM preview with the source homepage.
- Run lint checks on the generated implementation.
- Confirm that no WKND project regressions were introduced.
- ...and many more...
:::

:::hint{type="success" indent="1"}
While the Agent is working, you can also **take a look at a few tips in&#x20;**[Tips for working with the agent](https://tvdocs.adobe.com/saga-hol/bonus-free-exploration#tips-for-working-with-the-agent)&#x20;
:::

6. When the agent is done, **take a look at the result:&#x20;**

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/HgNa229yHaxPxIm8lAgy6_image.png" size="100" isUploading="false" width="1472" height="1252" darkWidth="1472" darkHeight="1252" showCaption="false" indent="1"}

7. Click here top-right to see the **preview**:

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/x-YCHcVy1UEJYdtPjRuIX_image.png" size="60" isUploading="false" width="377" height="67" darkWidth="377" darkHeight="67" showCaption="false" indent="1"}

8. This will open a preview in full page, feel free to navigate through the website:&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/9RVGpID5BJqwfsFUWxV3W_image.png" size="100" isUploading="false" width="1477" height="1342" darkWidth="1477" darkHeight="1342" showCaption="false" indent="1"}

:::hint{type="info"}
**Some elements don't feel right?** Don't start from scratch again, just select the element and ask the Agent to correct it.&#x20;
:::

:::hint{type="info"}
**Having some time to try more?&#x20;**&#x41;sk the agent to also migrate header and footer, to have the full page migrated.&#x20;
:::

:::hint{type="info"}
**Buttons are not working on the site?&#x20;**&#x54;hat's normal, as we don't have other pages migrated; the Agent may not have added hyperlinks.&#x20;
:::



:::hint{type="success"}
## Congratulations!

You just migrated a full website page in a couple of minutes.&#x20;
:::







