> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allgoodhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Layout Optimization

Mary intelligently adjusts templates based on your content:

* **3-column layout → 2-column**: Automatically switches when you have fewer speakers or content blocks

* **Module Selection**: Picks the right combination of text, image, and CTA modules

Let’s remove token values in Feature 3 in [the sample campaign brief](https://docs.google.com/document/d/1B1DLehVMdtlGfqVqnzq8836Cs7b0wfLZui_wN-7buAs/edit?tab=t.0).

<Frame caption="Removed tokens in Feature 3">
  <img src="https://mintcdn.com/allgoodtechnologyinc/288g9iAAi6PnQz-I/images/use-cases/email-builder/feature-email-layout-optimization/media/image3.png?fit=max&auto=format&n=288g9iAAi6PnQz-I&q=85&s=1fd2bfc9ef12bff6fd3b3e39ba587c16" alt="Image3" width="563" height="510" data-path="images/use-cases/email-builder/feature-email-layout-optimization/media/image3.png" />
</Frame>

<Frame caption="Mary suggests original 3-column template being adapted to 2-column layout">
  <img src="https://mintcdn.com/allgoodtechnologyinc/Ch_ZZInnFMnauFYj/images/use-cases/email-builder/feature-email-layout-optimization/media/image1.png?fit=max&auto=format&n=Ch_ZZInnFMnauFYj&q=85&s=e32ecbeca2924dcbff4c7292c371da62" alt="Image1" width="665" height="406" data-path="images/use-cases/email-builder/feature-email-layout-optimization/media/image1.png" />
</Frame>

#### (Recommended) You can also add more explicit instructions on [Mary Instructions](./feature-add-mary-instructions) section.

<Frame caption="Add explicit instructions for Update Email Layout">
  <img src="https://mintcdn.com/allgoodtechnologyinc/288g9iAAi6PnQz-I/images/use-cases/email-builder/feature-email-layout-optimization/media/image2.png?fit=max&auto=format&n=288g9iAAi6PnQz-I&q=85&s=81b1798c0bc79e60cd4156f1dd320a78" alt="Image2" width="765" height="208" data-path="images/use-cases/email-builder/feature-email-layout-optimization/media/image2.png" />
</Frame>

This way, Mary has a more specific way to replace the modules, and will update the layout more reliably.
