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

# Add Word Template

> Add a Word template for letter or document output

Add a Word template from **Template Management**. After you choose organisation, template type, and optional clinic, you design the HTML layout and select **variables** so the right **patient and letter details** are inserted **dynamically** into each exported PDF.

<Steps>
  <Step title="Add New Template button">
    In the templates or documents area, click **Add New Template** to start adding a Word template.

    <Frame caption="Add New Template button.">
      <img src="https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-2.jpeg?fit=max&auto=format&n=5wp1zTLvuLiTjDfk&q=85&s=510bd868df82c46a6831e54c04c8a7a5" alt="Add New Template button" style={{ borderRadius: '0.5rem', maxWidth: '100%' }} lightAlt="Add New Template button" darkAlt="Add New Template button" className="dark:hidden" width="2491" height="1060" data-path="images/Screenshot_4-5-2026_151935_dev.medwrite.ai-2.jpeg" />

      <img src="https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-3.jpeg?fit=max&auto=format&n=5wp1zTLvuLiTjDfk&q=85&s=03b2a01664adc77b3aa96947d3a5317e" alt="Add New Template button" style={{ borderRadius: '0.5rem', maxWidth: '100%' }} lightAlt="Add New Template button" darkAlt="Add New Template button" className="hidden dark:block" width="2491" height="1060" data-path="images/Screenshot_4-5-2026_151935_dev.medwrite.ai-3.jpeg" />
    </Frame>
  </Step>

  <Step title="Select Organisation and Template Type">
    Select **Organisation** and **Template type**. Under **Clinic (optional)**, choose **Organisation template** or a specific clinic.

    <Frame caption="Popup: select Organisation and Template Type.">
      <img src="https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai.jpeg?fit=max&auto=format&n=5wp1zTLvuLiTjDfk&q=85&s=5ded9693f2cb88a6a0b3ae811f8558e0" alt="Select Organisation and Template Type in popup" style={{ borderRadius: '0.5rem', maxWidth: '100%' }} lightAlt="Select Organisation and Template Type in popup" darkAlt="Select Organisation and Template Type in popup" className="dark:hidden" width="2541" height="835" data-path="images/Screenshot_4-5-2026_152136_dev.medwrite.ai.jpeg" />

      <img src="https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-1.jpeg?fit=max&auto=format&n=5wp1zTLvuLiTjDfk&q=85&s=9ee9495135686b5a7e19173ef45d1c83" alt="Select Organisation and Template Type in popup" style={{ borderRadius: '0.5rem', maxWidth: '100%' }} lightAlt="Select Organisation and Template Type in popup" darkAlt="Select Organisation and Template Type in popup" className="hidden dark:block" width="2541" height="835" data-path="images/Screenshot_4-5-2026_152136_dev.medwrite.ai-1.jpeg" />
    </Frame>
  </Step>

  <Step title="Edit the Word template design in the HTML editor">
    After you select organisation, template type, and optional clinic, the **HTML Content Editor** opens. Use the HTML to control **layout and styling** (headings, tables, branding). Add **placeholders** in the markup for any **dynamic** details you want in the final PDF (patient name, dates, letter text, and other fields). Open **Variables**, tick the **dynamic fields** you want MedWrite to merge for this template, and keep them aligned with your HTML. Use **Run** to preview (you can add sample **context data** for testing). When the design is correct, **Publish Template** to save it for live letters.

    <Frame caption="HTML editor for Word template design.">
      <img src="https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addDOCX-template/templateHtmlEditorDocx.jpeg?fit=max&auto=format&n=R5Bs1ncwatpjoUpI&q=85&s=927e178f8976b4430509ecdda14552b1" alt="HTML editor for Word template design" style={{ borderRadius: '0.5rem', maxWidth: '100%' }} width="2518" height="1166" data-path="images/addDOCX-template/templateHtmlEditorDocx.jpeg" />
    </Frame>
  </Step>
</Steps>

## Next steps

<Columns cols={2}>
  <Card title="Manage Templates" icon="table-layout" href="/essentials/manage-templates">
    Create and manage letter and document templates.
  </Card>

  <Card title="Create Assistant" icon="robot" href="/essentials/create-assistant">
    Create an AI assistant that uses your templates.
  </Card>
</Columns>
